2011-05-12 10:11:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
LIB= procstat
|
|
|
|
|
|
|
|
SRCS= cd9660.c \
|
|
|
|
common_kvm.c \
|
|
|
|
libprocstat.c \
|
|
|
|
msdosfs.c \
|
|
|
|
ntfs.c \
|
|
|
|
smbfs.c \
|
|
|
|
udf.c
|
|
|
|
|
2011-05-14 22:15:38 +00:00
|
|
|
VERSION_DEF= ${.CURDIR}/Versions.def
|
|
|
|
SYMBOL_MAPS= ${.CURDIR}/Symbol.map
|
|
|
|
|
2011-07-12 13:46:13 +00:00
|
|
|
INCS= libprocstat.h
|
2011-05-12 10:11:39 +00:00
|
|
|
CFLAGS+= -I. -I${.CURDIR} -D_KVM_VNODE
|
|
|
|
SHLIB_MAJOR= 1
|
2011-07-12 13:46:13 +00:00
|
|
|
|
2011-06-25 11:21:23 +00:00
|
|
|
DPADD= ${LIBKVM} ${LIBUTIL}
|
|
|
|
LDADD= -lkvm -lutil
|
2011-05-12 10:11:39 +00:00
|
|
|
|
2011-07-12 13:46:13 +00:00
|
|
|
MAN= libprocstat.3
|
|
|
|
|
2011-05-12 22:21:39 +00:00
|
|
|
.if ${MK_NCP} != "no"
|
|
|
|
CFLAGS+= -DLIBPROCSTAT_NWFS
|
|
|
|
SRCS+= nwfs.c
|
|
|
|
.endif
|
|
|
|
|
2011-05-12 10:11:39 +00:00
|
|
|
# XXX This is a hack.
|
|
|
|
.if ${MK_CDDL} != "no"
|
2011-05-12 22:21:39 +00:00
|
|
|
CFLAGS+= -DLIBPROCSTAT_ZFS
|
2011-05-12 10:11:39 +00:00
|
|
|
OBJS+= zfs/zfs.o
|
|
|
|
SOBJS+= zfs/zfs.So
|
|
|
|
POBJS+= zfs/zfs.po
|
|
|
|
SUBDIR= zfs
|
|
|
|
zfs/zfs.o: .PHONY
|
|
|
|
@cd ${.CURDIR}/zfs && ${MAKE} zfs.o
|
|
|
|
zfs/zfs.So: .PHONY
|
|
|
|
@cd ${.CURDIR}/zfs && ${MAKE} zfs.So
|
|
|
|
zfs/zfs.po: .PHONY
|
|
|
|
@cd ${.CURDIR}/zfs && ${MAKE} zfs.po
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|