freebsd-dev/sys/modules/pflog/Makefile
Kristof Provost 4733f21ffe pflog/pfsync: Fix module build with VIMAGE=yes
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
2018-07-01 18:09:16 +00:00

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>