mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-30 20:35:03 +01:00
r314651: sys/modules: normalize .CURDIR-relative paths to SRCTOP This simplifies make output/logic Tested with: `cd sys/modules; make ALL_MODULES=` on amd64 r318439: Normalize .PATH on SRCTOP This will help Jenkins dedupe 9 warnings between the static build and the module build of ipsec(4). Missed in SRCTOP conversion in r314651. MFC with: r314651 r318440: Normalize SYSDIR on SRCTOP instead of .CURDIR This is being done to simplify pathing for CFLAGS and source files.
26 lines
652 B
Makefile
26 lines
652 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${SRCTOP}/sys/netpfil/pf
|
|
|
|
KMOD= pf
|
|
SRCS= pf.c pf_if.c pf_lb.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \
|
|
pf_ruleset.c in4_cksum.c \
|
|
bus_if.h device_if.h \
|
|
opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h opt_global.h
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
# pflog can be loaded as a module, have the additional checks turned on
|
|
# pfsync can be loaded as a module, have the additional checks turned on
|
|
opt_pf.h:
|
|
echo "#define DEV_PF 1" > ${.TARGET}
|
|
echo "#define DEV_PFLOG 1" >> ${.TARGET}
|
|
echo "#define DEV_PFSYNC 1" >> ${.TARGET}
|
|
|
|
.if defined(VIMAGE)
|
|
opt_global.h:
|
|
echo "#define VIMAGE 1" >> ${.TARGET}
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|