1# $FreeBSD$ 2 3.include <bsd.own.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 22DPADD= ${LIBELF} ${LIBKVM} ${LIBUTIL} 23LDADD= -lelf -lkvm -lutil 24 25MAN= libprocstat.3 26 27# XXX This is a hack. 28.if ${MK_CDDL} != "no" 29CFLAGS+= -DLIBPROCSTAT_ZFS 30OBJS+= zfs/zfs.o 31SOBJS+= zfs/zfs.So 32POBJS+= zfs/zfs.po 33SUBDIR= zfs 34zfs/zfs.o: .PHONY 35 @cd ${.CURDIR}/zfs && ${MAKE} zfs.o 36zfs/zfs.So: .PHONY 37 @cd ${.CURDIR}/zfs && ${MAKE} zfs.So 38zfs/zfs.po: .PHONY 39 @cd ${.CURDIR}/zfs && ${MAKE} zfs.po 40.endif 41 42.include <bsd.lib.mk> 43