mirror of
https://github.com/opnsense/src.git
synced 2026-02-16 17:19:56 -05:00
This simplifies make output/logic Tested with: `cd sys/modules; make ALL_MODULES=` on amd64 MFC after: 1 month Sponsored by: Dell EMC Isilon
26 lines
617 B
Makefile
26 lines
617 B
Makefile
# $FreeBSD$
|
|
|
|
SYSDIR?= ${SRCTOP}/sys
|
|
|
|
.PATH: ${SYSDIR}/cddl/dev/fbt
|
|
|
|
KMOD= fbt
|
|
SRCS= fbt.c fbt_isa.c
|
|
SRCS+= vnode_if.h
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
|
CFLAGS+= -I${SYSDIR}/cddl/dev/fbt/x86
|
|
.PATH: ${SYSDIR}/cddl/dev/fbt/x86
|
|
.else
|
|
CFLAGS+= -I${SYSDIR}/cddl/dev/fbt/${MACHINE_CPUARCH}
|
|
.PATH: ${SYSDIR}/cddl/dev/fbt/${MACHINE_CPUARCH}
|
|
.endif
|
|
|
|
CFLAGS+= -I${SYSDIR}/cddl/dev/fbt \
|
|
-I${SYSDIR}/cddl/compat/opensolaris \
|
|
-I${SYSDIR}/cddl/contrib/opensolaris/uts/common \
|
|
-I${SYSDIR}
|
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
|