1 2.include <src.opts.mk> 3 4LIB= procstat 5 6SRCS= cd9660.c \ 7 common_kvm.c \ 8 core.c \ 9 libprocstat.c \ 10 libprocstat_compat.c \ 11 msdosfs.c \ 12 smbfs.c \ 13 udf.c 14 15VERSION_DEF= ${LIBCSRCDIR}/Versions.def 16SYMBOL_MAPS= ${.CURDIR}/Symbol.map 17 18INCS= libprocstat.h 19CFLAGS+= -I. -I${.CURDIR} -D_KVM_VNODE 20SHLIB_MAJOR= 1 21 22LIBADD= elf kvm util 23 24MAN= libprocstat.3 25MLINKS+=libprocstat.3 procstat_close.3 \ 26 libprocstat.3 procstat_freeargv.3 \ 27 libprocstat.3 procstat_freeauxv.3 \ 28 libprocstat.3 procstat_freeenvv.3 \ 29 libprocstat.3 procstat_freefiles.3 \ 30 libprocstat.3 procstat_freegroups.3 \ 31 libprocstat.3 procstat_freekstack.3 \ 32 libprocstat.3 procstat_freeprocs.3 \ 33 libprocstat.3 procstat_freevmmap.3 \ 34 libprocstat.3 procstat_get_pipe_info.3 \ 35 libprocstat.3 procstat_get_pts_info.3 \ 36 libprocstat.3 procstat_get_sem_info.3 \ 37 libprocstat.3 procstat_get_shm_info.3 \ 38 libprocstat.3 procstat_get_socket_info.3 \ 39 libprocstat.3 procstat_get_vnode_info.3 \ 40 libprocstat.3 procstat_getargv.3 \ 41 libprocstat.3 procstat_getauxv.3 \ 42 libprocstat.3 procstat_getenvv.3 \ 43 libprocstat.3 procstat_getfiles.3 \ 44 libprocstat.3 procstat_getgroups.3 \ 45 libprocstat.3 procstat_getkstack.3 \ 46 libprocstat.3 procstat_getosrel.3 \ 47 libprocstat.3 procstat_getpathname.3 \ 48 libprocstat.3 procstat_getprocs.3 \ 49 libprocstat.3 procstat_getrlimit.3 \ 50 libprocstat.3 procstat_getumask.3 \ 51 libprocstat.3 procstat_getvmmap.3 \ 52 libprocstat.3 procstat_open_core.3 \ 53 libprocstat.3 procstat_open_kvm.3 \ 54 libprocstat.3 procstat_open_sysctl.3 55 56# XXX This is a hack. 57.if ${MK_CDDL} != "no" 58CFLAGS+= -DLIBPROCSTAT_ZFS 59SRCS+= zfs.c 60OBJS+= zfs/zfs_defs.o 61SUBDIR= zfs 62zfs/zfs_defs.o: .PHONY 63 @cd ${.CURDIR}/zfs && ${MAKE} zfs_defs.o 64zfs/zfs_defs.pico: .PHONY 65 @cd ${.CURDIR}/zfs && ${MAKE} zfs_defs.pico 66zfs/zfs_defs.pieo: .PHONY 67 @cd ${.CURDIR}/zfs && ${MAKE} zfs_defs.pieo 68zfs/zfs_defs.po: .PHONY 69 @cd ${.CURDIR}/zfs && ${MAKE} zfs_defs.po 70.endif 71 72.include <bsd.lib.mk> 73