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