Commit Graph
8 Commits
Author SHA1 Message Date
Carsten Schoenert d01e1cad2e expand i/c/coap.h to include additional information
The header coap.h should be the only header file a user has to include
to get functions from the libcoap available. Bu we have to provide not
only the header interface to the user, the user needs also some extra
information like the libcoap version or upstream related infos.

To get these automated in to a shipped coap.h header file we simple can
use some autotool magic and expand some macros while configure is
running and pasing i/c/coap.h.in. By this we can currently add the
following macro variables:

 LIBCOAP_PACKAGE_BUGREPORT -> upstream email contact
 LIBCOAP_PACKAGE_NAME      -> the used package name (libcoap)
 LIBCOAP_PACKAGE_STRING    -> package name + version
 LIBCOAP_PACKAGE_URL       -> upstream homepage
 LIBCOAP_PACKAGE_VERSION   -> the current used version

All these macros variables are expanded from the respective macro names
from the configure run. The variables are prefixed because this with
LIBCOAP_ to not get name clashing on the user side while running the
autotools of the users project.

There are probably more predefined macros needed, but they can be easily
added later into include/coap/coap.h.in.
2015-06-02 20:41:37 +02:00
Carsten Schoenert 98e701dd06 configure.ac: create package.tar.bz2 by default
bzip2 creates archives that are better compressed than the default gzip
format. So running 'make dist' is creating a libcoap-VER.tar.bz2, you
can create a *.tar.gz by running 'make dist-gzip' if you prefer.

The created bzip2 archive is currently 27% smaller than the respective
gzip archive.

   $ ls -sh libcoap-4.1.2.tar.*
   372K libcoap-4.1.2.tar.bz2
   476K libcoap-4.1.2.tar.gz
2015-03-22 14:38:36 +01:00
Carsten Schoenert 1f286c4cac .gitignore: adding the examples/ folder 2015-03-12 17:04:36 +01:00
Carsten Schoenert d01ea0afd9 .gitignore: sorting entrys in more alphabetical order 2015-03-12 17:04:02 +01:00
Olaf Bergmann 8ba8d2a288 Exclude m4/ax_* from .gitignore 2015-03-04 13:48:11 +01:00
Carsten Schoenert c9c1a80271 adding the tests/ folder to the build environment
To let the previous added configure option '--enable-tests' really build
the testdriver binary adding the needed changes to the files in the main
folder.
Finally adding a new Makefile.am within the tests/ folder.
2015-03-03 19:21:43 +01:00
Carsten Schoenert e11842e033 .gitignore: adding some more file to ignore 2015-03-03 19:21:43 +01:00
Carsten Schoenert d20c658e2f adding a .gitignore file
To be not confused by the auto generated autoreconf files putting these
into a .gitignore file.
2015-03-03 19:21:43 +01:00