4733f21ffe
pflog and pfsync's module Makefile fails to include opt_global.h to SRCS leading to build error for VIMAGE case. Reproduced with: cd /usr/src/sys/modules/pflog && make VIMAGE=yes PR: 229404 Submitted by: eugen@ MFC after: 1 week
19 lines
331 B
Makefile
19 lines
331 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${SRCTOP}/sys/netpfil/pf
|
|
|
|
KMOD= pflog
|
|
SRCS= if_pflog.c \
|
|
opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h opt_global.h
|
|
SRCS+= bus_if.h device_if.h
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
.if defined(VIMAGE)
|
|
opt_global.h:
|
|
echo "#define VIMAGE 1" >> ${.TARGET}
|
|
CFLAGS+= -include opt_global.h
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|