1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5LIB= procstat 6 7SRCS= cd9660.c \ 8 common_kvm.c \ 9 core.c \ 10 libprocstat.c \ 11 msdosfs.c \ 12 smbfs.c \ 13 udf.c 14 15VERSION_DEF= ${.CURDIR}/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 59OBJS+= zfs/zfs.o 60SOBJS+= zfs/zfs.So 61POBJS+= zfs/zfs.po 62SUBDIR= zfs 63zfs/zfs.o: .PHONY 64 @cd ${.CURDIR}/zfs && ${MAKE} zfs.o 65zfs/zfs.So: .PHONY 66 @cd ${.CURDIR}/zfs && ${MAKE} zfs.So 67zfs/zfs.po: .PHONY 68 @cd ${.CURDIR}/zfs && ${MAKE} zfs.po 69.endif 70 71.include <bsd.lib.mk> 72