adding install target for public header

To develop something libcoap related people need the public header files
to include the function definitions into their projects.
The public libcoap headers will be installed into the system by the
current order like

.
└── include
   └── coap
       ├── address.h
       ├── async.h
       ├── bits.h
       ├── block.h
       ├── coap.h
       ├── coap_io.h
       ├── coap_time.h
       ├── debug.h
       ├── encode.h
       ├── hashkey.h
       ├── mem.h
       ├── net.h
       ├── option.h
       ├── pdu.h
       ├── prng.h
       ├── resource.h
       ├── str.h
       ├── subscribe.h
       ├── t_list.h
       ├── uri.h
       ├── uthash.h
       └── utlist.h

That's not final! Currently the public header files include the locally
by the autoconf generated coap_config.h header file. These includes have
to be removed before we can call the header really public headers!
This commit is contained in:
Carsten Schoenert authored and Olaf Bergmann committed 2015-03-03 19:21:43 +01:00
1 parent d20c658e2f
commit c7299d9c86
3 files changed
+38 -2

No files matched your search

+32
View File
@@ -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