diff --git a/Makefile.am b/Makefile.am index 2a8bc4bb..a331fabf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,6 +6,8 @@ # This file is part of the CoAP C library libcoap. Please see README and # COPYING for terms of use. +SUBDIRS = include + ## Place generated object files (.o) into the same directory as their source ## files, in order to avoid collisions when non-recursive make is used. AUTOMAKE_OPTIONS = subdir-objects diff --git a/configure.ac b/configure.ac index 179e1c11..4fac3b55 100644 --- a/configure.ac +++ b/configure.ac @@ -37,8 +37,10 @@ AC_FUNC_MALLOC AC_CHECK_FUNCS([memset select socket strcasecmp strrchr getaddrinfo \ strnlen]) -# Override the various template files, currently just one makefile. -AC_CONFIG_FILES([Makefile]) +# Override the various template files, currently just makefiles. +AC_CONFIG_FILES([ +Makefile +include/Makefile]) AC_OUTPUT diff --git a/include/Makefile.am b/include/Makefile.am new file mode 100644 index 00000000..29ae624d --- /dev/null +++ b/include/Makefile.am @@ -0,0 +1,32 @@ +## Makefile.am for include/ + +## Define the list of public header files and their install location. The +## nobase_ prefix instructs Automake to not strip the directory part from each +## filename, in order to avoid the need to define separate file lists for each +## installation directory. This only works if the directory hierarchy in the +## source tree matches the hierarchy at the install location, however. +libcoap_includedir = $(includedir) +nobase_libcoap_include_HEADERS = \ + coap/address.h \ + coap/async.h \ + coap/bits.h \ + coap/block.h \ + coap/coap.h \ + coap/coap_io.h \ + coap/coap_time.h \ + coap/debug.h \ + coap/encode.h \ + coap/hashkey.h \ + coap/mem.h \ + coap/net.h \ + coap/option.h \ + coap/pdu.h \ + coap/prng.h \ + coap/resource.h \ + coap/str.h \ + coap/subscribe.h \ + coap/t_list.h \ + coap/uri.h \ + coap/uthash.h \ + coap/utlist.h +# lwipppools.h