xref: /freebsd/sys/modules/pf/Makefile (revision 397c2693fa66508cb5e6b173650a1f3bc6c4dd4f)
1.PATH: ${SRCTOP}/sys/netpfil/pf
2
3KMOD=	pf
4SRCS=	pf.c pf_if.c pf_lb.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \
5	pf_ruleset.c pf_nl.c pf_nv.c pf_syncookies.c in4_cksum.c \
6	bus_if.h device_if.h \
7	opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h opt_sctp.h opt_global.h \
8	opt_kern_tls.h
9
10.if !defined(KERNBUILDDIR)
11# pflog can be loaded as a module, have the additional checks turned on
12# pfsync can be loaded as a module, have the additional checks turned on
13opt_pf.h:
14	echo "#define DEV_PF 1" > ${.TARGET}
15	echo "#define DEV_PFLOG 1" >> ${.TARGET}
16	echo "#define DEV_PFSYNC 1" >> ${.TARGET}
17
18.if defined(VIMAGE)
19opt_global.h:
20	echo "#define VIMAGE 1" >> ${.TARGET}
21.endif
22.endif
23
24EXPORT_SYMS=	YES
25
26.include <bsd.kmod.mk>
27