blob: 8ff6b0cad285065bea6cb20afe1f808fc67e253b [file] [log] [blame]
Jan Engelhardt8816e912011-09-18 15:06:05 +02001# -*- Makefile -*-
2
3AM_CFLAGS = ${regular_CFLAGS}
4AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include -I${top_srcdir}/iptables ${kinclude_CPPFLAGS}
5
6lib_LTLIBRARIES = libxtables.la
Phil Sutter31f14342018-09-19 15:16:44 +02007libxtables_la_SOURCES = xtables.c xtoptions.c getethertype.c
Jan Engelhardt8816e912011-09-18 15:06:05 +02008libxtables_la_LDFLAGS = -version-info ${libxtables_vcurrent}:0:${libxtables_vage}
9libxtables_la_LIBADD =
10if ENABLE_STATIC
11# With --enable-static, shipped extensions are linked into the main executable,
12# so we need all the LIBADDs here too
Jan Engelhardt76e230e2013-08-13 21:02:06 +020013libxtables_la_LIBADD += -lm ${libnetfilter_conntrack_LIBS}
Jan Engelhardt8816e912011-09-18 15:06:05 +020014endif
15if ENABLE_SHARED
16libxtables_la_CFLAGS = ${AM_CFLAGS}
17libxtables_la_LIBADD += -ldl
18else
19libxtables_la_CFLAGS = ${AM_CFLAGS} -DNO_SHARED_LIBS=1
20endif