mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-30 14:35:48 +03:00
coap.h: Remove need for different coap.h files for different OS
./autogen.sh and ./configure no longer need to be run prior to running make for Contiki, LwIP or RIOT from the appropriate examples sub-directory. scripts/fix_version.sh now handles updating coap.h for the different LIBCOAP_ and PACKAGE_ definitions.
This commit is contained in:
1 parent
8899063a4a
commit
e220c371be
15 files changed
+37
-211
No files matched your search
+25
-10
@@ -15,21 +15,36 @@ err=$?
|
||||
echo $ARCHIVE
|
||||
if test $err = 0 -a "x$ARCHIVE" != "x"; then
|
||||
DIR=`pwd`/`tar taf $ARCHIVE |cut -d/ -f1|head -1`
|
||||
tar xaf $ARCHIVE && cd $DIR && \
|
||||
$DIR/configure $PREFIX --enable-tests --enable-silent-rules --enable-documentation --enable-examples --disable-dtls && \
|
||||
make EXTRA_CFLAGS=-Werror && make install EXTRA_CFLAGS=-Werror
|
||||
err=$?
|
||||
tar xaf $ARCHIVE && cd $DIR
|
||||
err=$terr
|
||||
|
||||
# LwIP
|
||||
make -C $DIR/examples/lwip EXTRA_CFLAGS=-Werror
|
||||
terr=$?
|
||||
if [ $err = 0 ] ; then
|
||||
make -C $DIR/examples/lwip EXTRA_CFLAGS=-Werror
|
||||
err=$?
|
||||
err=$terr
|
||||
fi
|
||||
|
||||
# Contiki
|
||||
make -C $DIR/examples/contiki
|
||||
terr=$?
|
||||
if [ $err = 0 ] ; then
|
||||
make -C $DIR/examples/contiki
|
||||
err=$?
|
||||
err=$terr
|
||||
fi
|
||||
|
||||
# RIOT
|
||||
make -C $DIR/examples/riot
|
||||
terr=$?
|
||||
if [ $err = 0 ] ; then
|
||||
make -C $DIR/examples/riot
|
||||
err=$?
|
||||
err=$terr
|
||||
fi
|
||||
|
||||
# Standard build
|
||||
$DIR/configure $PREFIX --enable-tests --enable-silent-rules --enable-documentation --enable-examples --disable-dtls && \
|
||||
make EXTRA_CFLAGS=-Werror && make install EXTRA_CFLAGS=-Werror
|
||||
terr=$?
|
||||
if [ $err = 0 ] ; then
|
||||
err=$terr
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user