opnsense-src/sys/modules/dtrace/dtrace/Makefile
Nick Hibma 999d258466 Fix a few problems related to building modules in /sys/modules (not
checked whether this applies to builds in /sys/*/compile/* as well):

- Create empty opt_*.h files were missing
- Hook up svr4 to the build. It compiles fine here, so no reason to
  disconnect it in the Makefile. were missing
  - Hook up svr4 to the build. It compiles fine here, so no reason to
    disconnect it in the Makefile.
2009-02-12 14:44:15 +00:00

44 lines
1 KiB
Makefile

# $FreeBSD$
ARCHDIR= ${MACHINE_ARCH}
.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common/dtrace
.PATH: ${.CURDIR}/../../../cddl/kern
.PATH: ${.CURDIR}/../../../cddl/dev/dtrace
.PATH: ${.CURDIR}/../../../cddl/dev/dtrace/${ARCHDIR}
KMOD= dtrace
SRCS= dtrace.c \
dtrace_asm.S \
dtrace_subr.c
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
SRCS+= dis_tables.c \
instr_size.c
.endif
SRCS+= bus_if.h device_if.h vnode_if.h
# Needed for dtrace_asm.S
SRCS+= assym.s
# These are needed for assym.s
SRCS+= opt_compat.h opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h
.if ${MACHINE_ARCH} == "i386"
SRCS+= opt_apic.h
.endif
CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \
-I${.CURDIR}/../../../cddl/dev/dtrace \
-I${.CURDIR}/../../../cddl/dev/dtrace/${ARCHDIR} \
-I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \
-I${.CURDIR}/../../.. -DDIS_MEM
CFLAGS+= -DSMP -DDEBUG
EXPORT_SYMS= dtrace_register \
dtrace_unregister \
dtrace_probe_lookup
.include <bsd.kmod.mk>