Jan Engelhardt | 8816e91 | 2011-09-18 15:06:05 +0200 | [diff] [blame] | 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 |
Phil Sutter | 31f1434 | 2018-09-19 15:16:44 +0200 | [diff] [blame] | 7 | libxtables_la_SOURCES = xtables.c xtoptions.c getethertype.c |
Jan Engelhardt | 8816e91 | 2011-09-18 15:06:05 +0200 | [diff] [blame] | 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 |
Jan Engelhardt | 76e230e | 2013-08-13 21:02:06 +0200 | [diff] [blame] | 13 | libxtables_la_LIBADD += -lm ${libnetfilter_conntrack_LIBS} |
Jan Engelhardt | 8816e91 | 2011-09-18 15:06:05 +0200 | [diff] [blame] | 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 |