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