50dd852b28
relative to .CURDIR if not already defined. This makes the makefiles more readable but also more re-usable and adaptable. Obtained from: Juniper Networks, Inc.
20 lines
356 B
Makefile
20 lines
356 B
Makefile
# $FreeBSD$
|
|
|
|
SYSDIR?= ${.CURDIR}/../../..
|
|
|
|
KMOD= dtraceall
|
|
SRCS= dtraceall.c opt_compat.h opt_nfs.h
|
|
|
|
CFLAGS+= -I${SYSDIR}
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
.if ${MACHINE_ARCH} == "amd64"
|
|
opt_compat.h:
|
|
echo "#define COMPAT_FREEBSD32 1" >> ${.TARGET}
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
|