1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../fs/procfs 4 5KMOD= procfs 6SRCS= 7SRCS+= opt_compat.h 8SRCS+= vnode_if.h 9SRCS+= procfs_ctl.c 10SRCS+= procfs_dbregs.c 11SRCS+= procfs_fpregs.c 12SRCS+= procfs_ioctl.c 13SRCS+= procfs_map.c 14SRCS+= procfs_mem.c 15SRCS+= procfs_note.c 16SRCS+= procfs_osrel.c 17SRCS+= procfs_regs.c 18SRCS+= procfs_rlimit.c 19SRCS+= procfs_status.c 20SRCS+= procfs_type.c 21SRCS+= procfs.c 22 23EXPORT_SYMS= 24EXPORT_SYMS+= procfs_attr 25EXPORT_SYMS+= procfs_candebug 26EXPORT_SYMS+= procfs_docurproc 27EXPORT_SYMS+= procfs_doprocfile 28EXPORT_SYMS+= procfs_doprocmem 29EXPORT_SYMS+= procfs_notsystem 30 31.if !defined(KERNBUILDDIR) 32opt_compat.h: 33 echo "#define COMPAT_43 1" > ${.TARGET} 34 echo "#define COMPAT_FREEBSD4 1" >> ${.TARGET} 35 echo "#define COMPAT_FREEBSD5 1" >> ${.TARGET} 36 echo "#define COMPAT_FREEBSD6 1" >> ${.TARGET} 37.if ${MACHINE_CPUARCH} == "amd64" 38 echo "#define COMPAT_FREEBSD32 1" >> ${.TARGET} 39 echo "#define COMPAT_LINUX32 1" >> ${.TARGET} 40.endif 41.endif 42 43.include <bsd.kmod.mk> 44