xref: /dragonfly/sys/net/ipfw3_basic/Makefile (revision 7bcb6caf)
1KMOD=	ipfw3_basic
2SRCS=	ip_fw3_basic.c ip_fw3_basic.h
3SRCS+=	ip_fw3_log.c ip_fw3_log.h
4SRCS+=  ip_fw3_state.c ip_fw3_state.h
5SRCS+=  ip_fw3_table.c ip_fw3_table.h
6SRCS+=  ip_fw3_sync.c ip_fw3_sync.h
7SRCS+=	opt_ipfw.h opt_inet.h
8
9.ifndef BUILDING_WITH_KERNEL
10opt_inet.h:
11	echo '#define INET 1' > ${.OBJDIR}/${.TARGET}
12
13opt_ipfw.h:
14	echo '#define IPFIREWALL3 1' > ${.OBJDIR}/${.TARGET}
15	# Debug prints
16	#echo '#define IPFIREWALL_DEBUG 1' >> ${.OBJDIR}/${.TARGET}
17	#
18	# If you want it verbose
19	#echo '#define IPFIREWALL_VERBOSE 1' >> ${.OBJDIR}/${.TARGET}
20	#
21	# If you want it to pass all packets by default
22	#echo '#define IPFIREWALL_DEFAULT_TO_ACCEPT 1' >> ${.OBJDIR}/${.TARGET}
23.endif
24
25.include <bsd.kmod.mk>