xref: /freebsd/sys/modules/pf/Makefile (revision a335f76f2a40a248df01e22422b84d707bfcc4a9)
1cc5934f5SMax Laier# $FreeBSD$
2cc5934f5SMax Laier
3193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/netpfil/pf
4cc5934f5SMax Laier
5cc5934f5SMax LaierKMOD=	pf
6e0bfbfceSBjoern A. ZeebSRCS=	pf.c pf_if.c pf_lb.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \
78e1864edSKristof Provost	pf_ruleset.c pf_nv.c pf_syncookies.c in4_cksum.c \
8d6d3f01eSGleb Smirnoff	bus_if.h device_if.h \
9*a335f76fSKyle Evans	opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h opt_sctp.h opt_global.h \
10*a335f76fSKyle Evans	opt_kern_tls.h
11cc5934f5SMax Laier
1282292344SYaroslav Tykhiy.if !defined(KERNBUILDDIR)
1360ee3847SMax Laier# pflog can be loaded as a module, have the additional checks turned on
14e0bfbfceSBjoern A. Zeeb# pfsync can be loaded as a module, have the additional checks turned on
1560ee3847SMax Laieropt_pf.h:
169e51595cSWarner Losh	echo "#define DEV_PF 1" > ${.TARGET}
17200b5660SErmal Luçi	echo "#define DEV_PFLOG 1" >> ${.TARGET}
18e0bfbfceSBjoern A. Zeeb	echo "#define DEV_PFSYNC 1" >> ${.TARGET}
19e0bfbfceSBjoern A. Zeeb
20e0bfbfceSBjoern A. Zeeb.if defined(VIMAGE)
21e0bfbfceSBjoern A. Zeebopt_global.h:
22e0bfbfceSBjoern A. Zeeb	echo "#define VIMAGE 1" >> ${.TARGET}
23e0bfbfceSBjoern A. Zeeb.endif
2482292344SYaroslav Tykhiy.endif
25cc5934f5SMax Laier
26cc5934f5SMax Laier.include <bsd.kmod.mk>
27