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