# $(MOD)-y for each $MOD in obj-m, the list of objects
# obj-y same as above, for openwrt
# O_TARGET the link target, for openwrt
-# EXTRA_CFLAGS as the name says... in openwrt
-# EXTRA_CFLAGS are used in 2.6.22 module kernel compilation too
+# EXTRA_CFLAGS as the name says... in openwrt
+# EXTRA_CFLAGS is used in 2.6.22 module kernel compilation too
#---
$(warning including dummynet/Makefile)
WARN += -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.4/include
#WARN = -Wp,-MD,/home/luigi/ports-luigi/dummynet-branches/ipfw_mod/dummynet/.ipfw2_mod.o.d
#WARN += -Iinclude -include include/linux/autoconf.h
+
WARN += -Wall -Wundef
WARN += -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
WARN += -fno-common -Werror-implicit-function-declaration
$(MAKE) -C $(KERNELDIR) V=1 M=`pwd` modules
endif
-# the list of object use to build the module
+#-- back to the common section of code
+
+# the list of objects used to build the module
ipfw_mod-y = $(IPFW_SRCS:%.c=%.o)
-# Original ipfw + dummynet + FreeBSD stuff,
+# Original ipfw and dummynet sources + FreeBSD stuff,
IPFW_SRCS = ip_fw2.c ip_dummynet.c ip_fw_pfil.c in_cksum.c
-# module glue and functions missing in linux
+# Module glue and functions missing in linux
IPFW_SRCS += ipfw2_mod.c bsd_compat.c
distclean: clean
-rm -f .*cmd modules.order opt_*
-rm -rf .tmp_versions include_e
+ -rm -rf .ip_dummynet.o.d
# support to create empty dirs and files in include_e/
# EDIRS is the list of directories, EFILES is the list of files.