1 # -*- Makefile -*- 2 3 AM_CFLAGS = ${regular_CFLAGS} 4 AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include -I${top_srcdir}/iptables ${kinclude_CPPFLAGS} 5 6 lib_LTLIBRARIES = libxtables.la 7 libxtables_la_SOURCES = xtables.c xtoptions.c 8 libxtables_la_LDFLAGS = -version-info ${libxtables_vcurrent}:0:${libxtables_vage} 9 libxtables_la_LIBADD = 10 if ENABLE_STATIC 11 # With --enable-static, shipped extensions are linked into the main executable, 12 # so we need all the LIBADDs here too 13 libxtables_la_LIBADD += -lm ${libnetfilter_conntrack_LIBS} 14 endif 15 if ENABLE_SHARED 16 libxtables_la_CFLAGS = ${AM_CFLAGS} 17 libxtables_la_LIBADD += -ldl 18 else 19 libxtables_la_CFLAGS = ${AM_CFLAGS} -DNO_SHARED_LIBS=1 20 endif 21