blob: 3d7d7b3f14374343c641b6da59f8f1b7da9edae9 [file] [log] [blame]
Harald Welte3efb6ea2001-08-06 18:50:21 +00001# uncomment this to get a fully statically linked version
2# NO_SHARED_LIBS = 1
3
Harald Welte2354d922003-03-04 23:15:42 +00004# uncomment this to disable IPv6 support
5# DO_IPV6 = 0
6
Harald Welte3a5026f2001-09-02 16:07:33 +00007######################################################################
8# YOU SHOULD NOT NEED TO TOUCH ANYTHING BELOW THIS LINE
9######################################################################
10
11# Standard part of Makefile for topdir.
12TOPLEVEL_INCLUDED=YES
13
Marc Bouchere6869a82000-03-20 06:03:29 +000014ifndef KERNEL_DIR
Patrick McHardy25122292006-11-14 06:39:24 +000015KERNEL_DIR="/lib/modules/$(shell uname -r)/build"
Marc Bouchere6869a82000-03-20 06:03:29 +000016endif
Patrick McHardy72f79622006-12-04 14:11:42 +000017IPTABLES_VERSION:=1.3.7
18OLD_IPTABLES_VERSION:=1.3.6
Marc Bouchere6869a82000-03-20 06:03:29 +000019
Pablo Neira AyusoMaurice van der Pot44fc5e12007-04-16 17:15:22 +000020PREFIX:=/usr/local
Harald Welteba6d0122002-02-17 19:49:26 +000021LIBDIR:=$(PREFIX)/lib
22BINDIR:=$(PREFIX)/sbin
23MANDIR:=$(PREFIX)/man
24INCDIR:=$(PREFIX)/include
Marc Bouchere6869a82000-03-20 06:03:29 +000025
Harald Welte3a5026f2001-09-02 16:07:33 +000026# directory for new iptables releases
27RELEASE_DIR:=/tmp
28
Rusty Russell209820b2001-01-08 08:14:33 +000029# Need libc6 for this. FIXME: Should covert to autoconf.
Rusty Russell4d2afbf2001-05-01 02:06:08 +000030ifeq ($(shell [ -f /usr/include/netinet/ip6.h ] && echo YES), YES)
Harald Welte2354d922003-03-04 23:15:42 +000031DO_IPV6:=1
Rusty Russell8e07bd72000-12-19 03:11:00 +000032endif
33
James Morrisc81a3f32006-05-24 16:11:58 +000034# Enable linking to libselinux via enviornment 'DO_SELINUX=1'
35ifndef DO_SELINUX
36DO_SELINUX=0
37endif
38
Harald Welte380ba5f2002-02-13 16:19:55 +000039COPT_FLAGS:=-O2
Harald Welte80fe35d2002-05-29 13:08:15 +000040CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include -Iinclude/ -DIPTABLES_VERSION=\"$(IPTABLES_VERSION)\" #-g -DDEBUG #-pg # -DIPTC_DEBUG
Marc Bouchere6869a82000-03-20 06:03:29 +000041
Harald Welte3efb6ea2001-08-06 18:50:21 +000042ifdef NO_SHARED_LIBS
43CFLAGS += -DNO_SHARED_LIBS=1
44endif
45
Henrik Nordstromc2794132004-01-22 15:04:24 +000046EXTRAS+=iptables iptables.o iptables.8
Rusty Russell01c45202001-01-07 06:50:31 +000047EXTRA_INSTALLS+=$(DESTDIR)$(BINDIR)/iptables $(DESTDIR)$(MANDIR)/man8/iptables.8
48
Harald Welteeba774d2001-10-16 08:22:40 +000049# No longer experimental.
Bastiaan Bakker4e3771f2004-06-25 11:18:57 +000050ifneq ($(DO_MULTI), 1)
Amin Azez8d3eccb2006-11-13 20:23:36 +000051EXTRAS+=iptables-save iptables-restore iptables-xml
Bastiaan Bakker4e3771f2004-06-25 11:18:57 +000052endif
Amin Azez8d3eccb2006-11-13 20:23:36 +000053EXTRA_INSTALLS+=$(DESTDIR)$(BINDIR)/iptables-save $(DESTDIR)$(BINDIR)/iptables-restore $(DESTDIR)$(BINDIR)/iptables-xml $(DESTDIR)$(MANDIR)/man8/iptables-restore.8 $(DESTDIR)$(MANDIR)/man8/iptables-save.8
Rusty Russell8e07bd72000-12-19 03:11:00 +000054
Harald Welte2354d922003-03-04 23:15:42 +000055ifeq ($(DO_IPV6), 1)
Henrik Nordstromc2794132004-01-22 15:04:24 +000056EXTRAS+=ip6tables ip6tables.o ip6tables.8
András Kis-Szabó06129432001-10-14 13:27:03 +000057EXTRA_INSTALLS+=$(DESTDIR)$(BINDIR)/ip6tables $(DESTDIR)$(MANDIR)/man8/ip6tables.8
Harald Welte8a6831a2001-03-15 15:33:56 +000058EXTRAS_EXP+=ip6tables-save ip6tables-restore
Harald Welte46d4d0a2001-03-16 15:48:56 +000059EXTRA_INSTALLS_EXP+=$(DESTDIR)$(BINDIR)/ip6tables-save $(DESTDIR)$(BINDIR)/ip6tables-restore # $(DESTDIR)$(MANDIR)/man8/iptables-restore.8 $(DESTDIR)$(MANDIR)/man8/iptables-save.8 $(DESTDIR)$(MANDIR)/man8/ip6tables-save.8 $(DESTDIR)$(MANDIR)/man8/ip6tables-restore.8
Rusty Russell8e07bd72000-12-19 03:11:00 +000060endif
Marc Bouchere6869a82000-03-20 06:03:29 +000061
Rusty Russell09b9a412000-04-27 10:16:47 +000062# Sparc64 hack
63ifeq ($(shell uname -m),sparc64)
Martin Josefssondc93fce2004-05-26 15:46:27 +000064 POINTERTEST:=1
65 32bituser := $(shell echo -e "\#include <stdio.h>\n\#if !defined(__sparcv9) && !defined(__arch64__) && !defined(_LP64)\nuserspace_is_32bit\n\#endif" | $(CC) $(CFLAGS) -E - | grep userspace_is_32bit)
66 ifdef 32bituser
67 # The kernel is 64-bit, even though userspace is 32.
68 CFLAGS+=-DIPT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32
69 else
Phil Oester7f5be622006-07-20 16:59:04 +000070 EXT_LDFLAGS+=-Wl,-m,elf64_sparc
Martin Josefssondc93fce2004-05-26 15:46:27 +000071 endif
Rusty Russell09b9a412000-04-27 10:16:47 +000072endif
73
Martin Josefssondc93fce2004-05-26 15:46:27 +000074# Alpha only has 64bit userspace and fails the test below
75ifeq ($(shell uname -m), alpha)
76 POINTERTEST:=1
77endif
78
79# Generic test if arch wasn't found above
80ifneq ($(POINTERTEST),1)
81 # Try to determine if kernel is 64bit and we are compiling for 32bit
82 ifeq ($(shell [ -a $(KERNEL_DIR)/include/asm ] && echo YES), YES)
83 64bitkernel := $(shell echo -e "\#include <asm/types.h>\n\#if BITS_PER_LONG == 64\nkernel_is_64bits\n\#endif" | $(CC) $(CFLAGS) -D__KERNEL__ -E - | grep kernel_is_64bits)
84 ifdef 64bitkernel
85 32bituser := $(shell echo -e "\#include <stdio.h>\n\#if !defined(__arch64__) && !defined(_LP64)\nuserspace_is_32bit\n\#endif" | $(CC) $(CFLAGS) -E - | grep userspace_is_32bit)
86 ifdef 32bituser
87 CFLAGS+=-DIPT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32
88 endif
89 endif
90 else
91 CFLAGS+=-D_UNKNOWN_KERNEL_POINTER_SIZE
92 endif
Rusty Russellda707152001-04-21 04:25:09 +000093endif
94
Marc Bouchere6869a82000-03-20 06:03:29 +000095ifndef IPT_LIBDIR
96IPT_LIBDIR:=$(LIBDIR)/iptables
97endif
98
Martin Josefssondc93fce2004-05-26 15:46:27 +000099ifndef NO_SHARED_LIBS
100DEPFILES = $(SHARED_LIBS:%.so=%.d)
James Morrisc81a3f32006-05-24 16:11:58 +0000101DEPFILES += $(SHARED_SE_LIBS:%.so=%.d)
Martin Josefssondc93fce2004-05-26 15:46:27 +0000102SH_CFLAGS:=$(CFLAGS) -fPIC
103STATIC_LIBS =
104STATIC6_LIBS =
105LDFLAGS = -rdynamic
Patrick McHardy51d84a12007-04-18 12:41:09 +0000106LDLIBS = -ldl
James Morrisc81a3f32006-05-24 16:11:58 +0000107ifeq ($(DO_SELINUX), 1)
108LDLIBS += -lselinux
109endif
Martin Josefssondc93fce2004-05-26 15:46:27 +0000110else
111DEPFILES = $(EXT_OBJS:%.o=%.d)
112STATIC_LIBS = extensions/libext.a
113STATIC6_LIBS = extensions/libext6.a
114LDFLAGS = -static
James Morrisc81a3f32006-05-24 16:11:58 +0000115LDLIBS =
116ifeq ($(DO_SELINUX), 1)
117LDLIBS += -lselinux
118endif
Martin Josefssondc93fce2004-05-26 15:46:27 +0000119endif
120
Harald Welte7505d612001-07-31 13:06:17 +0000121.PHONY: default
Rusty Russell52451822000-08-27 07:47:46 +0000122default: print-extensions all
123
Harald Welte7505d612001-07-31 13:06:17 +0000124.PHONY: print-extensions
Rusty Russell52451822000-08-27 07:47:46 +0000125print-extensions:
Rusty Russellc8d7d892000-09-19 07:01:00 +0000126 @[ -n "$(OPTIONALS)" ] && echo Extensions found: $(OPTIONALS)
Marc Bouchere6869a82000-03-20 06:03:29 +0000127
128iptables.o: iptables.c
129 $(CC) $(CFLAGS) -DIPT_LIB_DIR=\"$(IPT_LIBDIR)\" -c -o $@ $<
130
Bastiaan Bakker4e3771f2004-06-25 11:18:57 +0000131ifeq ($(DO_MULTI), 1)
Amin Azez8d3eccb2006-11-13 20:23:36 +0000132iptables: iptables-multi.c iptables-save.c iptables-restore.c iptables-xml.c iptables-standalone.c iptables.o $(STATIC_LIBS) libiptc/libiptc.a
Bastiaan Bakker4e3771f2004-06-25 11:18:57 +0000133 $(CC) $(CFLAGS) -DIPTABLES_MULTI -DIPT_LIB_DIR=\"$(IPT_LIBDIR)\" $(LDFLAGS) -o $@ $^ $(LDLIBS)
134else
Harald Welte3efb6ea2001-08-06 18:50:21 +0000135iptables: iptables-standalone.c iptables.o $(STATIC_LIBS) libiptc/libiptc.a
136 $(CC) $(CFLAGS) -DIPT_LIB_DIR=\"$(IPT_LIBDIR)\" $(LDFLAGS) -o $@ $^ $(LDLIBS)
Bastiaan Bakker4e3771f2004-06-25 11:18:57 +0000137endif
Marc Bouchere6869a82000-03-20 06:03:29 +0000138
139$(DESTDIR)$(BINDIR)/iptables: iptables
140 @[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
141 cp $< $@
142
Harald Welte3efb6ea2001-08-06 18:50:21 +0000143iptables-save: iptables-save.c iptables.o $(STATIC_LIBS) libiptc/libiptc.a
144 $(CC) $(CFLAGS) -DIPT_LIB_DIR=\"$(IPT_LIBDIR)\" $(LDFLAGS) -o $@ $^ $(LDLIBS)
Marc Bouchere6869a82000-03-20 06:03:29 +0000145
Bastiaan Bakker4e3771f2004-06-25 11:18:57 +0000146ifeq ($(DO_MULTI), 1)
147$(DESTDIR)$(BINDIR)/iptables-save: iptables
148 @[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
149 ln -sf $< $@
150else
Marc Bouchere6869a82000-03-20 06:03:29 +0000151$(DESTDIR)$(BINDIR)/iptables-save: iptables-save
152 @[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
153 cp $< $@
Bastiaan Bakker4e3771f2004-06-25 11:18:57 +0000154endif
Marc Bouchere6869a82000-03-20 06:03:29 +0000155
Harald Welte3efb6ea2001-08-06 18:50:21 +0000156iptables-restore: iptables-restore.c iptables.o $(STATIC_LIBS) libiptc/libiptc.a
157 $(CC) $(CFLAGS) -DIPT_LIB_DIR=\"$(IPT_LIBDIR)\" $(LDFLAGS) -o $@ $^ $(LDLIBS)
Marc Bouchere6869a82000-03-20 06:03:29 +0000158
Bastiaan Bakker4e3771f2004-06-25 11:18:57 +0000159ifeq ($(DO_MULTI), 1)
160$(DESTDIR)$(BINDIR)/iptables-restore: iptables
161 @[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
162 ln -sf $< $@
163else
Marc Bouchere6869a82000-03-20 06:03:29 +0000164$(DESTDIR)$(BINDIR)/iptables-restore: iptables-restore
165 @[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
166 cp $< $@
Bastiaan Bakker4e3771f2004-06-25 11:18:57 +0000167endif
Marc Bouchere6869a82000-03-20 06:03:29 +0000168
Amin Azez8d3eccb2006-11-13 20:23:36 +0000169iptables-xml: iptables-xml.c #iptables.o # $(STATIC_LIBS) libiptc/libiptc.a
170 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
171
172ifeq ($(DO_MULTI), 1)
Lutz Jaenickee78c69c2006-12-09 13:06:04 +0000173$(DESTDIR)$(BINDIR)/iptables-xml: iptables
Amin Azez8d3eccb2006-11-13 20:23:36 +0000174 @[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
175 ln -sf $< $@
176else
177$(DESTDIR)$(BINDIR)/iptables-xml: iptables-xml
178 @[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
179 cp $< $@
180endif
181
Philip Blundell8c700902000-05-15 02:17:52 +0000182ip6tables.o: ip6tables.c
Harald Welte0aefbd32001-05-11 21:41:47 +0000183 $(CC) $(CFLAGS) -DIP6T_LIB_DIR=\"$(IPT_LIBDIR)\" -c -o $@ $<
Philip Blundell8c700902000-05-15 02:17:52 +0000184
Harald Welte3efb6ea2001-08-06 18:50:21 +0000185ip6tables: ip6tables-standalone.c ip6tables.o $(STATIC6_LIBS) libiptc/libiptc.a
Harald Welte2a7116e2002-08-26 13:09:40 +0000186 $(CC) $(CFLAGS) -DIP6T_LIB_DIR=\"$(IPT_LIBDIR)\" $(LDFLAGS) -o $@ $^ $(LDLIBS)
Philip Blundell8c700902000-05-15 02:17:52 +0000187
188$(DESTDIR)$(BINDIR)/ip6tables: ip6tables
189 @[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
190 cp $< $@
191
Harald Welte3efb6ea2001-08-06 18:50:21 +0000192ip6tables-save: ip6tables-save.c ip6tables.o $(STATIC6_LIBS) libiptc/libiptc.a
Harald Welte2a7116e2002-08-26 13:09:40 +0000193 $(CC) $(CFLAGS) -DIP6T_LIB_DIR=\"$(IPT_LIBDIR)\" $(LDFLAGS) -o $@ $^ $(LDLIBS)
Philip Blundell8c700902000-05-15 02:17:52 +0000194
195$(DESTDIR)$(BINDIR)/ip6tables-save: ip6tables-save
196 @[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
197 cp $< $@
198
Harald Welte3efb6ea2001-08-06 18:50:21 +0000199ip6tables-restore: ip6tables-restore.c ip6tables.o $(STATIC6_LIBS) libiptc/libiptc.a
Harald Welte2a7116e2002-08-26 13:09:40 +0000200 $(CC) $(CFLAGS) -DIP6T_LIB_DIR=\"$(IPT_LIBDIR)\" $(LDFLAGS) -o $@ $^ $(LDLIBS)
Philip Blundell8c700902000-05-15 02:17:52 +0000201
202$(DESTDIR)$(BINDIR)/ip6tables-restore: ip6tables-restore
203 @[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
204 cp $< $@
205
Rusty Russell01c45202001-01-07 06:50:31 +0000206$(DESTDIR)$(MANDIR)/man8/%.8: %.8
Marc Bouchere6869a82000-03-20 06:03:29 +0000207 @[ -d $(DESTDIR)$(MANDIR)/man8 ] || mkdir -p $(DESTDIR)$(MANDIR)/man8
208 cp $< $@
209
210EXTRA_DEPENDS+=iptables-standalone.d iptables.d
211
212iptables-standalone.d iptables.d: %.d: %.c
213 @-$(CC) -M -MG $(CFLAGS) $< | sed -e 's@^.*\.o:@$*.d $*.o:@' > $@
214
Henrik Nordstromc2794132004-01-22 15:04:24 +0000215iptables.8: iptables.8.in extensions/libipt_matches.man extensions/libipt_targets.man
216 sed -e '/@MATCH@/ r extensions/libipt_matches.man' -e '/@TARGET@/ r extensions/libipt_targets.man' iptables.8.in >iptables.8
217
218ip6tables.8: ip6tables.8.in extensions/libip6t_matches.man extensions/libip6t_targets.man
Phil Oesterde8ae512004-09-09 09:57:11 +0000219 sed -e '/@MATCH@/ r extensions/libip6t_matches.man' -e '/@TARGET@/ r extensions/libip6t_targets.man' ip6tables.8.in >ip6tables.8
James Morrisc82e9ac2000-11-24 14:34:02 +0000220
221# Development Targets
Harald Welte7505d612001-07-31 13:06:17 +0000222.PHONY: install-devel-man3
James Morrisc82e9ac2000-11-24 14:34:02 +0000223install-devel-man3: $(DEVEL_MAN3)
224 @[ -d $(DESTDIR)$(MANDIR)/man3 ] || mkdir -p $(DESTDIR)$(MANDIR)/man3
225 @cp -v $(DEVEL_MAN3) $(DESTDIR)$(MANDIR)/man3
226
Harald Welte7505d612001-07-31 13:06:17 +0000227.PHONY: install-devel-headers
James Morrisc82e9ac2000-11-24 14:34:02 +0000228install-devel-headers: $(DEVEL_HEADERS)
229 @[ -d $(DESTDIR)$(INCDIR) ] || mkdir -p $(DESTDIR)$(INCDIR)
230 @cp -v $(DEVEL_HEADERS) $(DESTDIR)$(INCDIR)
231
Harald Welte7505d612001-07-31 13:06:17 +0000232.PHONY: install-devel-libs
James Morrisc82e9ac2000-11-24 14:34:02 +0000233install-devel-libs: $(DEVEL_LIBS)
234 @[ -d $(DESTDIR)$(LIBDIR) ] || mkdir -p $(DESTDIR)$(LIBDIR)
235 @cp -v $(DEVEL_LIBS) $(DESTDIR)$(LIBDIR)
236
Harald Welte7505d612001-07-31 13:06:17 +0000237.PHONY: install-devel
James Morrisc82e9ac2000-11-24 14:34:02 +0000238install-devel: all install-devel-man3 install-devel-headers install-devel-libs
239
Harald Welte7505d612001-07-31 13:06:17 +0000240.PHONY: distclean
Rusty Russell905795c2000-04-19 11:22:03 +0000241distclean: clean
Rusty Russella470f332000-11-07 04:08:34 +0000242 @rm -f TAGS `find . -name '*~' -o -name '.*~'` `find . -name '*.rej'` `find . -name '*.d'` .makefirst
Rusty Russell175f6412000-03-24 09:32:20 +0000243
244# Rusty's distro magic.
Harald Welte7505d612001-07-31 13:06:17 +0000245.PHONY: distrib
Harald Welte80fe35d2002-05-29 13:08:15 +0000246distrib: check distclean delrelease $(RELEASE_DIR)/iptables-$(IPTABLES_VERSION).tar.bz2 diff md5sums # nowhitespace
Rusty Russell175f6412000-03-24 09:32:20 +0000247
248# Makefile must not define:
Harald Welte380ba5f2002-02-13 16:19:55 +0000249# -g -pg -DIPTC_DEBUG
Harald Welte7505d612001-07-31 13:06:17 +0000250.PHONY: check
Rusty Russell175f6412000-03-24 09:32:20 +0000251check:
Patrick McHardy83321c02007-01-10 13:56:05 +0000252 @if echo $(CFLAGS) | egrep -e '(^|[[:space:]])(-g|-pg|-DIPTC_DEBUG)([[:space:]]|$)' >/dev/null; then echo Remove debugging flags; exit 1; else exit 0; fi
Rusty Russell175f6412000-03-24 09:32:20 +0000253
Harald Welte7505d612001-07-31 13:06:17 +0000254.PHONY: nowhitespace
Rusty Russell175f6412000-03-24 09:32:20 +0000255nowhitespace:
Rusty Russell2e5f9532001-01-07 09:37:02 +0000256 @if grep -n '[ ]$$' `find . -name 'Makefile' -o -name '*.[ch]'`; then exit 1; else exit 0; fi
Rusty Russell175f6412000-03-24 09:32:20 +0000257
Harald Welte7505d612001-07-31 13:06:17 +0000258.PHONY: delrelease
Rusty Russell175f6412000-03-24 09:32:20 +0000259delrelease:
Harald Welte80fe35d2002-05-29 13:08:15 +0000260 rm -f $(RELEASE_DIR)/iptables-$(IPTABLES_VERSION).tar.bz2
Rusty Russell175f6412000-03-24 09:32:20 +0000261
Harald Welte80fe35d2002-05-29 13:08:15 +0000262$(RELEASE_DIR)/iptables-$(IPTABLES_VERSION).tar.bz2:
Harald Welte59746832005-02-01 16:47:35 +0000263 cd .. && ln -sf iptables iptables-$(IPTABLES_VERSION) && tar cvf - --exclude .svn iptables-$(IPTABLES_VERSION)/. | bzip2 -9 > $@ && rm iptables-$(IPTABLES_VERSION)
Rusty Russell175f6412000-03-24 09:32:20 +0000264
Harald Welte7505d612001-07-31 13:06:17 +0000265.PHONY: diff
Harald Welte80fe35d2002-05-29 13:08:15 +0000266diff: $(RELEASE_DIR)/iptables-$(IPTABLES_VERSION).tar.bz2
Rusty Russell175f6412000-03-24 09:32:20 +0000267 @mkdir /tmp/diffdir
Harald Welte80fe35d2002-05-29 13:08:15 +0000268 @cd /tmp/diffdir && tar -x --bzip2 -f $(RELEASE_DIR)/iptables-$(IPTABLES_VERSION).tar.bz2
269 @set -e; cd /tmp/diffdir; tar -x --bzip2 -f $(RELEASE_DIR)/iptables-$(OLD_IPTABLES_VERSION).tar.bz2; echo Creating patch-iptables-$(OLD_IPTABLES_VERSION)-$(IPTABLES_VERSION).bz2; diff -urN iptables-$(OLD_IPTABLES_VERSION) iptables-$(IPTABLES_VERSION) | bzip2 -9 > $(RELEASE_DIR)/patch-iptables-$(OLD_IPTABLES_VERSION)-$(IPTABLES_VERSION).bz2
Rusty Russell175f6412000-03-24 09:32:20 +0000270 @rm -rf /tmp/diffdir
271
Harald Welte7505d612001-07-31 13:06:17 +0000272.PHONY: md5sums
Rusty Russell175f6412000-03-24 09:32:20 +0000273md5sums:
Harald Welte80fe35d2002-05-29 13:08:15 +0000274 cd $(RELEASE_DIR)/ && md5sum patch-iptables-*-$(IPTABLES_VERSION).bz2 iptables-$(IPTABLES_VERSION).tar.bz2
Rusty Russell175f6412000-03-24 09:32:20 +0000275
Marc Bouchere6869a82000-03-20 06:03:29 +0000276# $(wildcard) fails wierdly with make v.3.78.1.
277include $(shell echo */Makefile)
278include Rules.make