2011-05-12 10:11:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2011-05-12 10:11:39 +00:00
|
|
|
|
|
|
|
LIB= procstat
|
|
|
|
|
|
|
|
SRCS= cd9660.c \
|
|
|
|
common_kvm.c \
|
2013-04-20 07:47:26 +00:00
|
|
|
core.c \
|
2011-05-12 10:11:39 +00:00
|
|
|
libprocstat.c \
|
2020-04-30 22:08:40 +00:00
|
|
|
libprocstat_compat.c \
|
2017-01-09 10:47:20 +00:00
|
|
|
msdosfs.c \
|
2013-06-28 21:00:08 +00:00
|
|
|
smbfs.c \
|
2011-05-12 10:11:39 +00:00
|
|
|
udf.c
|
|
|
|
|
2017-01-09 11:11:52 +00:00
|
|
|
VERSION_DEF= ${LIBCSRCDIR}/Versions.def
|
2011-05-14 22:15:38 +00:00
|
|
|
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
|
|
|
|
2014-11-25 11:07:26 +00:00
|
|
|
LIBADD= elf kvm util
|
2011-05-12 10:11:39 +00:00
|
|
|
|
2011-07-12 13:46:13 +00:00
|
|
|
MAN= libprocstat.3
|
2015-05-21 03:32:44 +00:00
|
|
|
MLINKS+=libprocstat.3 procstat_close.3 \
|
|
|
|
libprocstat.3 procstat_freeargv.3 \
|
|
|
|
libprocstat.3 procstat_freeauxv.3 \
|
|
|
|
libprocstat.3 procstat_freeenvv.3 \
|
|
|
|
libprocstat.3 procstat_freefiles.3 \
|
|
|
|
libprocstat.3 procstat_freegroups.3 \
|
|
|
|
libprocstat.3 procstat_freekstack.3 \
|
|
|
|
libprocstat.3 procstat_freeprocs.3 \
|
|
|
|
libprocstat.3 procstat_freevmmap.3 \
|
|
|
|
libprocstat.3 procstat_get_pipe_info.3 \
|
|
|
|
libprocstat.3 procstat_get_pts_info.3 \
|
|
|
|
libprocstat.3 procstat_get_sem_info.3 \
|
|
|
|
libprocstat.3 procstat_get_shm_info.3 \
|
|
|
|
libprocstat.3 procstat_get_socket_info.3 \
|
|
|
|
libprocstat.3 procstat_get_vnode_info.3 \
|
|
|
|
libprocstat.3 procstat_getargv.3 \
|
|
|
|
libprocstat.3 procstat_getauxv.3 \
|
|
|
|
libprocstat.3 procstat_getenvv.3 \
|
|
|
|
libprocstat.3 procstat_getfiles.3 \
|
|
|
|
libprocstat.3 procstat_getgroups.3 \
|
|
|
|
libprocstat.3 procstat_getkstack.3 \
|
|
|
|
libprocstat.3 procstat_getosrel.3 \
|
|
|
|
libprocstat.3 procstat_getpathname.3 \
|
|
|
|
libprocstat.3 procstat_getprocs.3 \
|
|
|
|
libprocstat.3 procstat_getrlimit.3 \
|
|
|
|
libprocstat.3 procstat_getumask.3 \
|
|
|
|
libprocstat.3 procstat_getvmmap.3 \
|
|
|
|
libprocstat.3 procstat_open_core.3 \
|
|
|
|
libprocstat.3 procstat_open_kvm.3 \
|
|
|
|
libprocstat.3 procstat_open_sysctl.3
|
2011-07-12 13:46:13 +00:00
|
|
|
|
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
|
2020-05-22 11:20:23 +00:00
|
|
|
SRCS+= zfs.c
|
|
|
|
OBJS+= zfs/zfs_defs.o
|
2011-05-12 10:11:39 +00:00
|
|
|
SUBDIR= zfs
|
2020-05-22 11:20:23 +00:00
|
|
|
zfs/zfs_defs.o: .PHONY
|
|
|
|
@cd ${.CURDIR}/zfs && ${MAKE} zfs_defs.o
|
|
|
|
zfs/zfs_defs.pico: .PHONY
|
|
|
|
@cd ${.CURDIR}/zfs && ${MAKE} zfs_defs.pico
|
|
|
|
zfs/zfs_defs.po: .PHONY
|
|
|
|
@cd ${.CURDIR}/zfs && ${MAKE} zfs_defs.po
|
2011-05-12 10:11:39 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|