summaryrefslogtreecommitdiff
path: root/sbin/pfctl/Makefile
blob: 52763fde6789cfc27c9783a700b80488d754bcd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#	$OpenBSD: Makefile,v 1.17 2004/07/16 23:44:24 frantzen Exp $

PROG=	pfctl
SRCS=	pfctl.c parse.y pfctl_parser.c pf_print_state.c pfctl_altq.c
SRCS+=	pfctl_osfp.c pfctl_radix.c pfctl_table.c pfctl_qstats.c
SRCS+=	pfctl_optimize.c
CFLAGS+= -Wall -Wmissing-prototypes -Wno-uninitialized
CFLAGS+= -Wstrict-prototypes -I${.CURDIR}
YFLAGS=
MAN=	pfctl.8

LDADD+=	-lm
DPADD+=	${LIBM}

.include <bsd.prog.mk>

# XXX
.if (${MACHINE_ARCH} == "m88k")
parse.o: parse.y
	${YACC.y} ${.IMPSRC}
	${COMPILE.c} -fno-schedule-insns2 -o ${.TARGET} y.tab.c
	rm -f y.tab.c
.endif