From 9ed5ff2dace70b5235682d336a90faaf28377e6e Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org" Date: Mon, 14 Nov 2005 16:37:04 +0000 Subject: - get rid of KERNELDIR - use Make_global.am --- Make_global.am | 1 + Makefile.am | 5 +++-- extensions/Makefile.am | 3 +-- src/Makefile.am | 5 ++--- 4 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 Make_global.am 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 -- cgit v1.2.3