1221807Sstas# $FreeBSD: releng/11.0/lib/libprocstat/Makefile 298107 2016-04-16 07:45:30Z gjb $ 2221807Sstas 3265420Simp.include <src.opts.mk> 4221807Sstas 5298107SgjbPACKAGE=lib${LIB} 6221807SstasLIB= procstat 7221807Sstas 8221807SstasSRCS= cd9660.c \ 9221807Sstas common_kvm.c \ 10249666Strociny core.c \ 11221807Sstas libprocstat.c \ 12221807Sstas msdosfs.c \ 13252356Sdavide smbfs.c \ 14221807Sstas udf.c 15221807Sstas 16221931SstasVERSION_DEF= ${.CURDIR}/Versions.def 17221931SstasSYMBOL_MAPS= ${.CURDIR}/Symbol.map 18221931Sstas 19223953SpluknetINCS= libprocstat.h 20221807SstasCFLAGS+= -I. -I${.CURDIR} -D_KVM_VNODE 21221807SstasSHLIB_MAJOR= 1 22223953Spluknet 23275024SbaptLIBADD= elf kvm util 24221807Sstas 25223953SpluknetMAN= libprocstat.3 26283167SallanjudeMLINKS+=libprocstat.3 procstat_close.3 \ 27283167Sallanjude libprocstat.3 procstat_freeargv.3 \ 28283167Sallanjude libprocstat.3 procstat_freeauxv.3 \ 29283167Sallanjude libprocstat.3 procstat_freeenvv.3 \ 30283167Sallanjude libprocstat.3 procstat_freefiles.3 \ 31283167Sallanjude libprocstat.3 procstat_freegroups.3 \ 32283167Sallanjude libprocstat.3 procstat_freekstack.3 \ 33283167Sallanjude libprocstat.3 procstat_freeprocs.3 \ 34283167Sallanjude libprocstat.3 procstat_freevmmap.3 \ 35283167Sallanjude libprocstat.3 procstat_get_pipe_info.3 \ 36283167Sallanjude libprocstat.3 procstat_get_pts_info.3 \ 37283167Sallanjude libprocstat.3 procstat_get_sem_info.3 \ 38283167Sallanjude libprocstat.3 procstat_get_shm_info.3 \ 39283167Sallanjude libprocstat.3 procstat_get_socket_info.3 \ 40283167Sallanjude libprocstat.3 procstat_get_vnode_info.3 \ 41283167Sallanjude libprocstat.3 procstat_getargv.3 \ 42283167Sallanjude libprocstat.3 procstat_getauxv.3 \ 43283167Sallanjude libprocstat.3 procstat_getenvv.3 \ 44283167Sallanjude libprocstat.3 procstat_getfiles.3 \ 45283167Sallanjude libprocstat.3 procstat_getgroups.3 \ 46283167Sallanjude libprocstat.3 procstat_getkstack.3 \ 47283167Sallanjude libprocstat.3 procstat_getosrel.3 \ 48283167Sallanjude libprocstat.3 procstat_getpathname.3 \ 49283167Sallanjude libprocstat.3 procstat_getprocs.3 \ 50283167Sallanjude libprocstat.3 procstat_getrlimit.3 \ 51283167Sallanjude libprocstat.3 procstat_getumask.3 \ 52283167Sallanjude libprocstat.3 procstat_getvmmap.3 \ 53283167Sallanjude libprocstat.3 procstat_open_core.3 \ 54283167Sallanjude libprocstat.3 procstat_open_kvm.3 \ 55283167Sallanjude libprocstat.3 procstat_open_sysctl.3 56223953Spluknet 57221807Sstas# XXX This is a hack. 58221807Sstas.if ${MK_CDDL} != "no" 59221824SstasCFLAGS+= -DLIBPROCSTAT_ZFS 60221807SstasOBJS+= zfs/zfs.o 61221807SstasSOBJS+= zfs/zfs.So 62221807SstasPOBJS+= zfs/zfs.po 63221807SstasSUBDIR= zfs 64221807Sstaszfs/zfs.o: .PHONY 65221807Sstas @cd ${.CURDIR}/zfs && ${MAKE} zfs.o 66221807Sstaszfs/zfs.So: .PHONY 67221807Sstas @cd ${.CURDIR}/zfs && ${MAKE} zfs.So 68221807Sstaszfs/zfs.po: .PHONY 69221807Sstas @cd ${.CURDIR}/zfs && ${MAKE} zfs.po 70221807Sstas.endif 71221807Sstas 72221807Sstas.include <bsd.lib.mk> 73