diff options
author | laforge <laforge> | 2002-02-13 16:19:55 +0000 |
---|---|---|
committer | laforge <laforge> | 2002-02-13 16:19:55 +0000 |
commit | 7bb1d7f3999c92cb90ea3788d865dbb21d7963e7 (patch) | |
tree | 7926ece3e04f0a80c9e165581e304e1549339c81 /Makefile | |
parent | 8a3b559ceeb2694c3f40217d2183a33bb2a956e5 (diff) |
- don't need -DNDEBUG anymore. Instead, use -DIPTC_DEBUG to enable
libiptc debugging. This is to make people at RedHat and Mandrake
happy.
- add debugging code for mangle5hooks table (will break debugging
of iptables >= 1.2.6 on old kernels <= 2.4.18-pre6. *sigh*
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -29,8 +29,8 @@ ifeq ($(shell [ -f /usr/include/netinet/ip6.h ] && echo YES), YES) DO_IPV6=1 endif -COPT_FLAGS:=-O2 -DNDEBUG -CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include -Iinclude/ -DNETFILTER_VERSION=\"$(NETFILTER_VERSION)\" #-g #-pg +COPT_FLAGS:=-O2 +CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include -Iinclude/ -DNETFILTER_VERSION=\"$(NETFILTER_VERSION)\" #-g #-pg # -DIPTC_DEBUG ifdef NO_SHARED_LIBS CFLAGS += -DNO_SHARED_LIBS=1 @@ -187,12 +187,10 @@ most-of-pom: distrib: check distclean delrelease $(RELEASE_DIR)/iptables-$(NETFILTER_VERSION).tar.bz2 diff md5sums # nowhitespace # Makefile must not define: -# -g -pg -# And must define -NDEBUG +# -g -pg -DIPTC_DEBUG .PHONY: check check: - @if echo $(CFLAGS) | egrep -e '-g|-pg' >/dev/null; then echo Remove debugging flags; exit 1; else exit 0; fi - @if echo $(CFLAGS) | egrep -e NDEBUG >/dev/null; then exit 0; else echo Define -DNDEBUG; exit 1; fi + @if echo $(CFLAGS) | egrep -e '-g|-pg|IPTC_DEBUG' >/dev/null; then echo Remove debugging flags; exit 1; else exit 0; fi .PHONY: nowhitespace nowhitespace: |