xref: /freebsd/sys/modules/pflog/Makefile (revision 2357939bc239bd5334a169b62313806178dd8f30)
1# $FreeBSD$
2
3.PATH: ${.CURDIR}/../../contrib/pf/net
4
5KMOD=	pflog
6SRCS = 	if_pflog.c \
7	opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h
8
9CFLAGS+=  -Wall -I${.CURDIR}/../../contrib/pf
10
11opt_pf.h:
12	echo "#define DEV_PF 1" > opt_pf.h
13	echo "#define DEV_PFLOG 1" >> opt_pf.h
14	echo "#define DEV_PFSYNC 1" >> opt_pf.h
15
16opt_inet.h:
17	echo "#define INET 1" > opt_inet.h
18
19opt_inet6.h:
20.if defined(NOINET6)
21	echo > opt_inet6.h
22.else
23	echo "#define INET6 1" > opt_inet6.h
24.endif
25
26opt_bpf.h:
27	echo "#define DEV_BPF 1" > opt_bpf.h
28
29.include <bsd.kmod.mk>
30