2017-11-14 08:34:53 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2021-09-30 11:34:02 +00:00
|
|
|
TOPDIR?=${CURDIR}/../..
|
|
|
|
include ${TOPDIR}/tools/opts.mk
|
2017-11-14 08:34:53 +00:00
|
|
|
|
|
|
|
PACKAGE=ipfw
|
|
|
|
PROG= ipfw
|
2021-09-30 11:34:02 +00:00
|
|
|
SRCS= ipfw2.c ipv6.c main.c nat.c tables.c compat.c
|
2021-08-31 11:00:09 +00:00
|
|
|
SRCS+= nat64clat.c nat64lsn.c nat64stl.c nptv6.c
|
2017-11-14 08:34:53 +00:00
|
|
|
|
2021-09-30 11:34:02 +00:00
|
|
|
ifneq (${MK_DUMMYNET},"no")
|
|
|
|
SRCS+= dummynet.c
|
|
|
|
CFLAGS+= -DDUMMYNET
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (${MK_PF},"no")
|
|
|
|
SRCS+= altq.c
|
2017-11-14 08:34:53 +00:00
|
|
|
CFLAGS+=-DPF
|
2021-09-30 11:34:02 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (${MK_INET6_SUPPORT},"no")
|
|
|
|
CFLAGS+= -DINET6
|
|
|
|
endif
|
2020-06-15 09:48:46 +00:00
|
|
|
|
2021-09-30 11:34:02 +00:00
|
|
|
LIBADD= util
|
2017-11-14 08:34:53 +00:00
|
|
|
MAN= ipfw.8
|
|
|
|
|
2021-09-30 11:34:02 +00:00
|
|
|
include ${TOPDIR}/tools/prog.mk
|
2017-11-14 08:34:53 +00:00
|
|
|
|
2021-08-31 11:00:09 +00:00
|
|
|
CWARNFLAGS+= -Wno-cast-align
|