1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5LIB= procstat 6 7SRCS= cd9660.c \ 8 common_kvm.c \ 9 libprocstat.c \ 10 msdosfs.c \ 11 ntfs.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 22DPADD= ${LIBKVM} ${LIBUTIL} 23LDADD= -lkvm -lutil 24 25MAN= libprocstat.3 26 27.if ${MK_NCP} != "no" 28CFLAGS+= -DLIBPROCSTAT_NWFS 29SRCS+= nwfs.c 30.endif 31 32# XXX This is a hack. 33.if ${MK_CDDL} != "no" 34CFLAGS+= -DLIBPROCSTAT_ZFS 35OBJS+= zfs/zfs.o 36SOBJS+= zfs/zfs.So 37POBJS+= zfs/zfs.po 38SUBDIR= zfs 39zfs/zfs.o: .PHONY 40 @cd ${.CURDIR}/zfs && ${MAKE} zfs.o 41zfs/zfs.So: .PHONY 42 @cd ${.CURDIR}/zfs && ${MAKE} zfs.So 43zfs/zfs.po: .PHONY 44 @cd ${.CURDIR}/zfs && ${MAKE} zfs.po 45.endif 46 47.include <bsd.lib.mk> 48