c09808d0d6
Use MACHINE_CPUARCH in preference to MACHINE_ARCH. The former is the source code location of the machine, the latter the binary output. In general, we want to use MACHINE_CPUARCH instead of MACHINE_ARCH unless we're tesitng for a specific target. The isn't even moot for i386/amd64 where there's momemntum towards a MACHINE_CPUARCH == x86, although a specific cleanup for that likely would be needed...
44 lines
986 B
Makefile
44 lines
986 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../fs/procfs
|
|
|
|
KMOD= procfs
|
|
SRCS=
|
|
SRCS+= opt_compat.h
|
|
SRCS+= vnode_if.h
|
|
SRCS+= procfs_ctl.c
|
|
SRCS+= procfs_dbregs.c
|
|
SRCS+= procfs_fpregs.c
|
|
SRCS+= procfs_ioctl.c
|
|
SRCS+= procfs_map.c
|
|
SRCS+= procfs_mem.c
|
|
SRCS+= procfs_note.c
|
|
SRCS+= procfs_osrel.c
|
|
SRCS+= procfs_regs.c
|
|
SRCS+= procfs_rlimit.c
|
|
SRCS+= procfs_status.c
|
|
SRCS+= procfs_type.c
|
|
SRCS+= procfs.c
|
|
|
|
EXPORT_SYMS=
|
|
EXPORT_SYMS+= procfs_attr
|
|
EXPORT_SYMS+= procfs_candebug
|
|
EXPORT_SYMS+= procfs_docurproc
|
|
EXPORT_SYMS+= procfs_doprocfile
|
|
EXPORT_SYMS+= procfs_doprocmem
|
|
EXPORT_SYMS+= procfs_notsystem
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
opt_compat.h:
|
|
echo "#define COMPAT_43 1" > ${.TARGET}
|
|
echo "#define COMPAT_FREEBSD4 1" >> ${.TARGET}
|
|
echo "#define COMPAT_FREEBSD5 1" >> ${.TARGET}
|
|
echo "#define COMPAT_FREEBSD6 1" >> ${.TARGET}
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
echo "#define COMPAT_FREEBSD32 1" >> ${.TARGET}
|
|
echo "#define COMPAT_LINUX32 1" >> ${.TARGET}
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|