1# $FreeBSD: releng/10.3/sys/modules/ipfilter/Makefile 260274 2014-01-04 18:33:28Z dim $ 2 3.include <bsd.own.mk> 4 5.PATH: ${.CURDIR}/../../contrib/ipfilter/netinet 6 7KMOD= ipl 8SRCS= mlfk_ipl.c ip_nat.c ip_frag.c ip_state.c ip_proxy.c ip_auth.c \ 9 ip_log.c ip_fil_freebsd.c fil.c ip_lookup.c ip_pool.c ip_htable.c \ 10 ip_sync.c \ 11 ip_nat6.c ip_rules.c ip_scan.c ip_dstlist.c radix_ipf.c 12SRCS+= opt_bpf.h opt_inet6.h 13 14.if !defined(KERNBUILDDIR) 15opt_bpf.h: 16 echo "#define DEV_BPF 1" > ${.TARGET} 17 18.if ${MK_INET6_SUPPORT} != "no" 19opt_inet6.h: 20 echo "#define INET6 1" > ${.TARGET} 21.endif 22.endif 23CFLAGS+= -I${.CURDIR}/../../contrib/ipfilter 24CFLAGS+= -DIPFILTER=1 -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP 25# 26# If you don't want log functionality remove -DIPFILTER_LOG 27# 28 29.include <bsd.kmod.mk> 30 31CWARNFLAGS.fil.c= ${NO_WSELF_ASSIGN} -Wno-unused 32CWARNFLAGS.ip_auth.c= -Wno-unused 33CWARNFLAGS.ip_fil_freebsd.c= -Wno-unused 34CWARNFLAGS.ip_frag.c= -Wno-unused 35CWARNFLAGS.ip_htable.c= -Wno-unused 36CWARNFLAGS.ip_dstlist.c= -Wno-unused 37CWARNFLAGS.ip_lookup.c= ${NO_WSELF_ASSIGN} -Wno-unused 38CWARNFLAGS.ip_nat.c= -Wno-unused 39CWARNFLAGS.ip_nat6.c= -Wno-unused 40CWARNFLAGS.ip_pool.c= -Wno-unused 41CWARNFLAGS.ip_proxy.c= ${NO_WSELF_ASSIGN} -Wno-unused 42CWARNFLAGS.ip_scan.c= -Wno-unused 43CWARNFLAGS.ip_state.c= -Wno-unused 44CWARNFLAGS.ip_sync.c= -Wno-unused 45CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} 46