diff options
author | mlaier <mlaier@FreeBSD.org> | 2004-02-26 03:53:54 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2004-02-26 03:53:54 +0000 |
commit | 428f1c9a0fbaac94f9cce57cd846b2b6f82e17d1 (patch) | |
tree | aa20382749ac1e97a0e00869aaa3a69abbc95a34 /sys/modules/pflog | |
parent | 94f1c2c12e72d156571a8216199086ba2d775312 (diff) | |
download | FreeBSD-src-428f1c9a0fbaac94f9cce57cd846b2b6f82e17d1.zip FreeBSD-src-428f1c9a0fbaac94f9cce57cd846b2b6f82e17d1.tar.gz |
Tweak existing header and other build infrastructure to be able to build
pf/pflog/pfsync as modules. Do not list them in NOTES or modules/Makefile
(i.e. do not connect it to any (automatic) builds - yet).
Approved by: bms(mentor)
Diffstat (limited to 'sys/modules/pflog')
-rw-r--r-- | sys/modules/pflog/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/modules/pflog/Makefile b/sys/modules/pflog/Makefile new file mode 100644 index 0000000..f500846 --- /dev/null +++ b/sys/modules/pflog/Makefile @@ -0,0 +1,25 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../contrib/pf/net + +KMOD= pflog +SRCS = if_pflog.c \ + opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h + +CFLAGS+= -Wall -I${.CURDIR}/../../contrib/pf + +opt_pf.h: + echo "#define DEV_PF 1" > opt_pf.h + echo "#define DEV_PFLOG 1" >> opt_pf.h + echo "#define DEV_PFSYNC 1" >> opt_pf.h + +opt_inet.h: + echo "#define INET 1" > opt_inet.h + +opt_inet6.h: + echo "#define INET6 1" > opt_inet6.h + +opt_bpf.h: + echo "#define DEV_BPF 1" > opt_bpf.h + +.include <bsd.kmod.mk> |