freebsd-dev/lib/libprocstat/Makefile
Emmanuel Vadot 4c1a82cea5 pkgbase: Create a FreeBSD-utilities package and make it the default one
The default package use to be FreeBSD-runtime but it should only contain
binaries and libs enough to boot to single user and repair the system, it
is also very handy to have a package that can be tranform to a small mfsroot.
So create a new package named FreeBSD-utilities and make it the default one.
Also move a few binaries and lib into this package when it make sense.
Reviewed by:	bapt, gjb
Differential Revision:	https://reviews.freebsd.org/D21506
2019-09-05 14:15:47 +00:00

76 lines
1.9 KiB
Makefile

# $FreeBSD$
.include <src.opts.mk>
LIB= procstat
SRCS= cd9660.c \
common_kvm.c \
core.c \
libprocstat.c \
msdosfs.c \
smbfs.c \
udf.c
.if ${MK_SYMVER} == yes
SRCS+= libprocstat_compat.c
.endif
VERSION_DEF= ${LIBCSRCDIR}/Versions.def
SYMBOL_MAPS= ${.CURDIR}/Symbol.map
INCS= libprocstat.h
CFLAGS+= -I. -I${.CURDIR} -D_KVM_VNODE
SHLIB_MAJOR= 1
LIBADD= elf kvm util
MAN= libprocstat.3
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
# XXX This is a hack.
.if ${MK_CDDL} != "no"
CFLAGS+= -DLIBPROCSTAT_ZFS
OBJS+= zfs/zfs.o
SOBJS+= zfs/zfs.pico
POBJS+= zfs/zfs.po
SUBDIR= zfs
zfs/zfs.o: .PHONY
@cd ${.CURDIR}/zfs && ${MAKE} zfs.o
zfs/zfs.pico: .PHONY
@cd ${.CURDIR}/zfs && ${MAKE} zfs.pico
zfs/zfs.po: .PHONY
@cd ${.CURDIR}/zfs && ${MAKE} zfs.po
.endif
.include <bsd.lib.mk>