diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-09-18 15:06:05 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-09-19 13:42:32 +0200 |
commit | 8816e91cddef785c78b3598c7c41a1f88be08f5a (patch) | |
tree | d15e6d27f9c39c1d9a4004c40803bb67ccb72a9c /libxtables/Makefile.am | |
parent | 1e4965232d77ab752c9c781afcf854f4b173c7b1 (diff) |
build: restore build order of modules
iptables(exe) requires libext.a, but extensions/ require libxtables.la
(in iptables/). This circular dependency does not work out, so
separate libxtables into its own directory and put it in front.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'libxtables/Makefile.am')
-rw-r--r-- | libxtables/Makefile.am | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libxtables/Makefile.am b/libxtables/Makefile.am new file mode 100644 index 00000000..c5795fef --- /dev/null +++ b/libxtables/Makefile.am @@ -0,0 +1,20 @@ +# -*- Makefile -*- + +AM_CFLAGS = ${regular_CFLAGS} +AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include -I${top_srcdir}/iptables ${kinclude_CPPFLAGS} + +lib_LTLIBRARIES = libxtables.la +libxtables_la_SOURCES = xtables.c xtoptions.c +libxtables_la_LDFLAGS = -version-info ${libxtables_vcurrent}:0:${libxtables_vage} +libxtables_la_LIBADD = +if ENABLE_STATIC +# With --enable-static, shipped extensions are linked into the main executable, +# so we need all the LIBADDs here too +libxtables_la_LIBADD += -lm +endif +if ENABLE_SHARED +libxtables_la_CFLAGS = ${AM_CFLAGS} +libxtables_la_LIBADD += -ldl +else +libxtables_la_CFLAGS = ${AM_CFLAGS} -DNO_SHARED_LIBS=1 +endif |