Commit f53b6861 authored by Amin Ben Ramdhane's avatar Amin Ben Ramdhane

add macros to compile each sub-package according to the configuration

parent db1b0fc8
Pipeline #545 passed with stage
in 25 seconds
......@@ -124,6 +124,7 @@ icwmp_tr098d_CFLAGS+=-DCWMP_BKP_FILE=\"$(CWMP_BKP_FILE)\"
icwmp_tr098d_CFLAGS+=-I../inc
endif
if ICWMP_STUN
bin_PROGRAMS += icwmp_stund
icwmp_stund_SOURCES = \
......@@ -157,7 +158,9 @@ icwmp_stund_LDADD = \
$(LBLOBMSG_LIBS) \
$(LIBUBUS_LIBS) \
$(LCRYPTO_LIBS)
endif
if ICWMP_XMPP
bin_PROGRAMS += icwmp_xmppd
icwmp_xmppd_SOURCES = \
......@@ -184,7 +187,9 @@ icwmp_xmppd_LDADD = \
$(AM_LIBS) \
$(LIBUCI_LIBS) \
$(LIBSTROPHE_LIBS)
endif
if ICWMP_UDPECHOSERVER
bin_PROGRAMS += icwmp_udpechoserverd
icwmp_udpechoserverd_SOURCES = \
......@@ -206,7 +211,9 @@ icwmp_udpechoserverd_LDFLAGS = \
icwmp_udpechoserverd_LDADD = \
$(AM_LIBS) \
$(LIBUCI_LIBS)
endif
if ICWMP_TWAMP
bin_PROGRAMS += icwmp_twampd
icwmp_twampd_SOURCES = \
......@@ -229,7 +236,9 @@ icwmp_twampd_LDFLAGS = \
icwmp_twampd_LDADD = \
$(AM_LIBS) \
$(LIBUCI_LIBS)
endif
if ICWMP_BULKDATA
bin_PROGRAMS += icwmp_bulkdatad
icwmp_bulkdatad_SOURCES = \
......@@ -274,4 +283,5 @@ icwmp_bulkdatad_LDADD = \
$(LIBUBUS_LIBS) \
$(LCRYPTO_LIBS) \
$(LIBCURL_LIBS) \
-lbbfdm
\ No newline at end of file
-lbbfdm
endif
......@@ -29,6 +29,21 @@ AC_ARG_ENABLE(dummy_mode, [AS_HELP_STRING([--enable-dummy-mode], [enable dummy m
AC_ARG_ENABLE(icwmp_tr098, [AS_HELP_STRING([--enable-icwmp_tr098], [enable icwmp tr098])], AC_DEFINE(ICWMP_TR098),)
AM_CONDITIONAL([ICWMP_TR098],[test "x$enable_icwmp_tr098" = "xyes"])
AC_ARG_ENABLE(icwmp_xmpp, [AS_HELP_STRING([--enable-icwmp_xmpp], [enable icwmp xmpp])], AC_DEFINE(ICWMP_XMPP),)
AM_CONDITIONAL([ICWMP_XMPP],[test "x$enable_icwmp_xmpp" = "xyes"])
AC_ARG_ENABLE(icwmp_stun, [AS_HELP_STRING([--enable-icwmp_stun], [enable icwmp stun])], AC_DEFINE(ICWMP_STUN),)
AM_CONDITIONAL([ICWMP_STUN],[test "x$enable_icwmp_stun" = "xyes"])
AC_ARG_ENABLE(icwmp_udpechoserver, [AS_HELP_STRING([--enable-icwmp_udpechoserver], [enable icwmp udpechoserver])], AC_DEFINE(ICWMP_UDPECHOSERVER),)
AM_CONDITIONAL([ICWMP_UDPECHOSERVER],[test "x$enable_icwmp_udpechoserver" = "xyes"])
AC_ARG_ENABLE(icwmp_twamp, [AS_HELP_STRING([--enable-icwmp_twamp], [enable icwmp twamp])], AC_DEFINE(ICWMP_TWAMP),)
AM_CONDITIONAL([ICWMP_TWAMP],[test "x$enable_icwmp_twamp" = "xyes"])
AC_ARG_ENABLE(icwmp_bulkdata, [AS_HELP_STRING([--enable-icwmp_bulkdata], [enable icwmp bulkdata])], AC_DEFINE(ICWMP_BULKDATA),)
AM_CONDITIONAL([ICWMP_BULKDATA],[test "x$enable_icwmp_bulkdata" = "xyes"])
# checks for programs
AC_PROG_CC
AM_PROG_CC_C_O
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment