freebsd-dev/sys/modules/procfs/Makefile
Yaroslav Tykhiy 252b6fe8b2 Define the target for opt_compat.h only if KERNBUILDDIR
is not defined, so that the module will get the
compatibility options from the current kernel configuration
if built with the latter, not with the world.
[Some other modules seem in need of fixing WRT this, too.]

Add more compatibility options found in GENERIC to the default
opt_compat.h.  While not all of them are used in the procfs code,
we can't tell for sure if the system .h files don't need them either,
so let's stay on the safe side.

Submitted by:	kensmith
Reviewed by:	ru
2005-08-18 14:50:08 +00:00

42 lines
907 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_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}
.if ${MACHINE_ARCH} == "amd64"
echo "#define COMPAT_IA32 1" >> ${.TARGET}
echo "#define COMPAT_LINUX32 1" >> ${.TARGET}
.endif
.endif
.include <bsd.kmod.mk>