1AM_CPPFLAGS = -I./../inc \ 2 -I$(top_srcdir)/ipanat/inc \ 3 ${LIBXML_CFLAGS} 4AM_CPPFLAGS += -Wall -Wundef -Wno-trigraphs 5AM_CPPFLAGS += -DDEBUG -g -DFEATURE_ETH_BRIDGE_LE 6AM_CPPFLAGS += -DFEATURE_IPA_V3 7 8ipacm_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 29bin_PROGRAMS = ipacm 30 31requiredlibs = ${LIBXML_LIB} -lxml2 -lpthread -lnetfilter_conntrack -lnfnetlink\ 32 ../../ipanat/src/libipanat.la 33 34AM_CPPFLAGS += "-std=c++0x" 35 36if USE_GLIB 37ipacm_CFLAGS = $(AM_CFLAGS) -DUSE_GLIB @GLIB_CFLAGS@ 38ipacm_LDFLAGS = -lpthread @GLIB_LIBS@ 39ipacm_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ 40else 41ipacm_CFLAGS = $(AM_CFLAGS) 42ipacm_LDFLAGS = -lpthread 43ipacm_CPPFLAGS = $(AM_CPPFLAGS) 44endif 45ipacm_LDADD = $(requiredlibs) 46 47LOCAL_MODULE := libipanat 48LOCAL_PRELINK_MODULE := false 49include $(BUILD_SHARED_LIBRARY) 50 51etcdir = ${sysconfdir} 52etc_SCRIPTS = IPACM_cfg.xml 53 54init_ddir = ${sysconfdir}/init.d 55init_d_SCRIPTS = start_ipacm_le 56