# O_TARGET the link target, for openwrt
# EXTRA_CFLAGS as the name says... in openwrt
# EXTRA_CFLAGS is used in 2.6.22 module kernel compilation too
# O_TARGET the link target, for openwrt
# EXTRA_CFLAGS as the name says... in openwrt
# EXTRA_CFLAGS is used in 2.6.22 module kernel compilation too
#
# Not sure about this (the name might be reserved)
# ipfw-cflags our flags for building the module
#
# Other variables are only private and can be renamed. They include:
#
#
# Not sure about this (the name might be reserved)
# ipfw-cflags our flags for building the module
#
# Other variables are only private and can be renamed. They include:
#
ipfw-cflags += -DIPFIREWALL_DEFAULT_TO_ACCEPT -DTRACE
# _BSD_SOURCE enables __FAVOR_BSD (udp/tcp bsd structs instead of posix)
ipfw-cflags += -D_BSD_SOURCE
ipfw-cflags += -DIPFIREWALL_DEFAULT_TO_ACCEPT -DTRACE
# _BSD_SOURCE enables __FAVOR_BSD (udp/tcp bsd structs instead of posix)
ipfw-cflags += -D_BSD_SOURCE
$(warning "---- Building dummynet kernel module for Version $(VER)")
# We have three sections for OpenWrt, Linux 2.4 and Linux 2.6
$(warning "---- Building dummynet kernel module for Version $(VER)")
# We have three sections for OpenWrt, Linux 2.4 and Linux 2.6
# Original ipfw and dummynet sources + FreeBSD stuff,
IPFW_SRCS = ip_fw2.c ip_dummynet.c ip_fw_pfil.c in_cksum.c
# Original ipfw and dummynet sources + FreeBSD stuff,
IPFW_SRCS = ip_fw2.c ip_dummynet.c ip_fw_pfil.c in_cksum.c
# support to create empty dirs and files in include_e/
# EDIRS is the list of directories, EFILES is the list of files.
EDIRS= altq arpa machine net netinet netinet6 sys
# support to create empty dirs and files in include_e/
# EDIRS is the list of directories, EFILES is the list of files.
EDIRS= altq arpa machine net netinet netinet6 sys
EFILES += netinet/ether.h netinet/icmp6.h netinet/if_ether.h
EFILES += netinet/in.h netinet/in_pcb.h netinet/in_var.h
EFILES += netinet/ether.h netinet/icmp6.h netinet/if_ether.h
EFILES += netinet/in.h netinet/in_pcb.h netinet/in_var.h
EFILES += sys/limits.h sys/lock.h sys/mutex.h sys/priv.h
EFILES += sys/proc.h sys/rwlock.h sys/socket.h sys/socketvar.h
EFILES += sys/sysctl.h sys/time.h sys/ucred.h
EFILES += sys/limits.h sys/lock.h sys/mutex.h sys/priv.h
EFILES += sys/proc.h sys/rwlock.h sys/socket.h sys/socketvar.h
EFILES += sys/sysctl.h sys/time.h sys/ucred.h