Merge from vendor branch SENDMAIL:
[dragonfly.git] / sys / net / ipfilter / Makefile
1 # $FreeBSD: src/sys/modules/ipfilter/Makefile,v 1.2.2.2 2001/06/07 05:11:44 jlemon Exp $ 
2 # $DragonFly: src/sys/net/ipfilter/Makefile,v 1.4 2006/12/18 23:26:36 pavalos Exp $ 
3
4 .PATH: ${.CURDIR}/../../contrib/ipfilter/netinet
5 KMOD=   ipl
6 SRCS=   mlfk_ipl.c ip_nat.c ip_frag.c ip_state.c ip_proxy.c ip_auth.c \
7         ip_log.c ip_fil.c fil.c opt_inet6.h
8 NOMAN=
9
10 # XXX:  Building this outside of a buildkernel with a kernel that does not have
11 # INET6 is not supported since the module will complain about undefined symbols
12 # when loaded.
13 .if !defined(BUILDING_WITH_KERNEL)
14 opt_inet6.h:
15         ${ECHO} "#define INET6   1" > ${.TARGET}
16 .endif
17
18 CFLAGS+= -include ipf_inet6.h
19 CFLAGS+= -DIPFILTER_LKM -DIPFILTER_LOG
20 CFLAGS+= -I${.CURDIR}/../../contrib/ipfilter -I${.CURDIR}
21 #
22 # If you don't want log functionality remove -DIPFILTER_LOG
23 #
24
25 .include <bsd.kmod.mk>