Home | History | Annotate | Download | only in src
      1 AM_CPPFLAGS = -I./../inc \
      2 	      -I$(top_srcdir)/ipanat/inc \
      3 	      ${LIBXML_CFLAGS}
      4 AM_CPPFLAGS += -Wall -Wundef -Wno-trigraphs
      5 AM_CPPFLAGS	+= -DDEBUG -g -DFEATURE_ETH_BRIDGE_LE
      6 AM_CPPFLAGS += -DFEATURE_IPA_V3
      7 
      8 ipacm_SOURCES =	IPACM_Main.cpp \
      9 		IPACM_Conntrack_NATApp.cpp\
     10 		IPACM_ConntrackClient.cpp \
     11 		IPACM_ConntrackListener.cpp \
     12 		IPACM_EvtDispatcher.cpp \
     13 		IPACM_Config.cpp \
     14 		IPACM_CmdQueue.cpp \
     15 		IPACM_Log.cpp \
     16 		IPACM_Filtering.cpp \
     17 		IPACM_Routing.cpp \
     18 		IPACM_Header.cpp \
     19 		IPACM_Lan.cpp \
     20 		IPACM_Iface.cpp \
     21 		IPACM_Wlan.cpp \
     22 		IPACM_Wan.cpp \
     23 		IPACM_IfaceManager.cpp \
     24 		IPACM_Neighbor.cpp \
     25 		IPACM_Netlink.cpp \
     26 		IPACM_Xml.cpp \
     27 		IPACM_LanToLan.cpp
     28 
     29 bin_PROGRAMS  =  ipacm
     30 
     31 requiredlibs =  ${LIBXML_LIB} -lxml2 -lpthread -lnetfilter_conntrack -lnfnetlink\
     32                ../../ipanat/src/libipanat.la
     33 
     34 AM_CPPFLAGS += "-std=c++0x"
     35 
     36 if USE_GLIB
     37 ipacm_CFLAGS  = $(AM_CFLAGS) -DUSE_GLIB @GLIB_CFLAGS@
     38 ipacm_LDFLAGS = -lpthread @GLIB_LIBS@
     39 ipacm_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
     40 else
     41 ipacm_CFLAGS = $(AM_CFLAGS)
     42 ipacm_LDFLAGS = -lpthread
     43 ipacm_CPPFLAGS = $(AM_CPPFLAGS)
     44 endif
     45 ipacm_LDADD =  $(requiredlibs)
     46 
     47 LOCAL_MODULE := libipanat
     48 LOCAL_PRELINK_MODULE := false
     49 include $(BUILD_SHARED_LIBRARY)
     50 
     51 etcdir = ${sysconfdir}
     52 etc_SCRIPTS = IPACM_cfg.xml
     53 
     54 init_ddir = ${sysconfdir}/init.d
     55 init_d_SCRIPTS = start_ipacm_le
     56