summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Make_global.am1
-rw-r--r--Makefile.am5
-rw-r--r--extensions/Makefile.am3
-rw-r--r--src/Makefile.am5
4 files changed, 7 insertions, 7 deletions
diff --git a/Make_global.am b/Make_global.am
new file mode 100644
index 0000000..685add7
--- /dev/null
+++ b/Make_global.am
@@ -0,0 +1 @@
+INCLUDES=$(all_includes) -I$(top_srcdir)/include
diff --git a/Makefile.am b/Makefile.am
index 46a9220..4962fb4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,12 +1,13 @@
+include Make_global.am
+
# not a GNU package. You can remove this line, if
# have all needed files, that a GNU package needs
AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
man_MANS = conntrack.8
-EXTRA_DIST = $(man_MANS)
+EXTRA_DIST = $(man_MANS) Make_global.am
-INCLUDES = $(all_includes) -I$(top_srcdir)/include -I${KERNELDIR}
SUBDIRS = src extensions
DIST_SUBDIRS = include src extensions
LINKOPTS = -ldl -lnetfilter_conntrack
diff --git a/extensions/Makefile.am b/extensions/Makefile.am
index c1f9cb6..1eaf230 100644
--- a/extensions/Makefile.am
+++ b/extensions/Makefile.am
@@ -1,6 +1,5 @@
-# AUTOMAKE_OPTIONS = no-dependencies foreign
+include $(top_srcdir)/Make_global.am
-INCLUDES=-I../include -I${KERNELDIR}
CFLAGS=-fPIC -Wall
LIBS=
diff --git a/src/Makefile.am b/src/Makefile.am
index 0116de2..fb1410a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,8 +1,7 @@
+include $(top_srcdir)/Make_global.am
+
sbin_PROGRAMS = conntrack
conntrack_SOURCES = conntrack.c
-INCLUDES= $(all_includes) -I$(top_srcdir)/include -I${KERNELDIR}
conntrack_LDFLAGS = $(all_libraries) -rdynamic
-#AM_CFLAGS = -g
-#LINKOPTS=-ldl -lnfnetlink -lctnetlink -rdynamic