mirror of
https://github.com/opnsense/src.git
synced 2026-02-11 23:06:12 -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
34 lines
949 B
Makefile
34 lines
949 B
Makefile
# $FreeBSD$
|
|
|
|
SYSDIR?= ${SRCTOP}/sys
|
|
|
|
.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/common/dtrace
|
|
|
|
KMOD= fasttrap
|
|
SRCS= fasttrap.c fasttrap_isa.c opt_compat.h
|
|
SRCS+= vnode_if.h
|
|
|
|
CFLAGS+= -I${SYSDIR}/cddl/compat/opensolaris \
|
|
-I${SYSDIR}/cddl/contrib/opensolaris/uts/common \
|
|
-I${SYSDIR}/cddl/contrib/opensolaris/uts/common/dtrace \
|
|
-I${SYSDIR}
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
|
CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/intel
|
|
.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/intel/dtrace
|
|
.elif ${MACHINE_CPUARCH} == "powerpc"
|
|
CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/powerpc
|
|
.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/powerpc/dtrace
|
|
.endif
|
|
|
|
.PATH: ${SYSDIR}/cddl/contrib/opensolaris/common/unicode
|
|
SRCS+= u8_textprep.c
|
|
|
|
CFLAGS+= -DSMP
|
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
|
|
|
|
CWARNFLAGS+= -Wno-cast-qual
|
|
CWARNFLAGS+= -Wno-unused
|