Emulate __FreeBSD__ till 3rd party applications later add in DragonFly
[dragonfly.git] / usr.sbin / ipftest / Makefile
1 # $FreeBSD: src/usr.sbin/ipftest/Makefile,v 1.4.2.5 2002/04/27 18:19:04 darrenr Exp $
2 # $DragonFly: src/usr.sbin/ipftest/Makefile,v 1.7 2004/07/23 18:15:08 drhodus Exp $
3
4 .PATH:  ${.CURDIR}/../../sys/netinet \
5         ${.CURDIR}/../../contrib/ipfilter ${.CURDIR}/../../contrib/ipfilter/man
6
7 PROG=   ipftest
8 SRCS=   opt_ipfilter.h \
9         ipt.c parse.c fil.c ipft_sn.c ipft_ef.c ipft_td.c ipft_pc.c opt.c \
10         ipft_tx.c misc.c ip_frag.c ip_state.c ip_nat.c ip_proxy.c ip_log.c \
11         ip_auth.c ipft_hx.c ip_fil.c natparse.c facpri.c common.c \
12         printstate.c printnat.c
13
14 CFLAGS+=-DUSE_INET6 -DIPL_NAME=\"/dev/ipl\" -DIPFILTER_LOG
15 CFLAGS+= -I${.OBJDIR}
16 CFLAGS+=-I${.CURDIR}/../../sys/contrib/ipfilter
17 CFLAGS+=-I${.CURDIR}/../../sys
18 CFLAGS+=-I${.CURDIR}/../../contrib/ipfilter
19
20 #Define __FreeBSD__ as is needed when building with gcc3.
21 CFLAGS+=-D__FreeBSD__
22
23 CLEANFILES+=    opt_ipfilter.h
24
25 opt_ipfilter.h: Makefile
26         echo "#define IPFILTER 1" > opt_ipfilter.h
27
28 .include <bsd.prog.mk>