xref: /freebsd/lib/libprocstat/Makefile (revision 13464e4a44fc58490a03bb8bfc7e3c972e9c30b2)
1# $FreeBSD$
2
3.include <src.opts.mk>
4
5PACKAGE=lib${LIB}
6LIB=	procstat
7
8SRCS=	cd9660.c	\
9	common_kvm.c	\
10	core.c		\
11	libprocstat.c	\
12	msdosfs.c	\
13	smbfs.c		\
14	udf.c
15
16.if ${MK_SYMVER} == yes
17SRCS+=	libprocstat_compat.c
18.endif
19
20VERSION_DEF=	${LIBCSRCDIR}/Versions.def
21SYMBOL_MAPS=	${.CURDIR}/Symbol.map
22
23INCS=		libprocstat.h
24CFLAGS+=	-I. -I${.CURDIR} -D_KVM_VNODE
25SHLIB_MAJOR=	1
26
27LIBADD=		elf kvm util
28
29MAN=		libprocstat.3
30MLINKS+=libprocstat.3 procstat_close.3 \
31		libprocstat.3 procstat_freeargv.3 \
32		libprocstat.3 procstat_freeauxv.3 \
33		libprocstat.3 procstat_freeenvv.3 \
34		libprocstat.3 procstat_freefiles.3 \
35		libprocstat.3 procstat_freegroups.3 \
36		libprocstat.3 procstat_freekstack.3 \
37		libprocstat.3 procstat_freeprocs.3 \
38		libprocstat.3 procstat_freevmmap.3 \
39		libprocstat.3 procstat_get_pipe_info.3 \
40		libprocstat.3 procstat_get_pts_info.3 \
41		libprocstat.3 procstat_get_sem_info.3 \
42		libprocstat.3 procstat_get_shm_info.3 \
43		libprocstat.3 procstat_get_socket_info.3 \
44		libprocstat.3 procstat_get_vnode_info.3 \
45		libprocstat.3 procstat_getargv.3 \
46		libprocstat.3 procstat_getauxv.3 \
47		libprocstat.3 procstat_getenvv.3 \
48		libprocstat.3 procstat_getfiles.3 \
49		libprocstat.3 procstat_getgroups.3 \
50		libprocstat.3 procstat_getkstack.3 \
51		libprocstat.3 procstat_getosrel.3 \
52		libprocstat.3 procstat_getpathname.3 \
53		libprocstat.3 procstat_getprocs.3 \
54		libprocstat.3 procstat_getrlimit.3 \
55		libprocstat.3 procstat_getumask.3 \
56		libprocstat.3 procstat_getvmmap.3 \
57		libprocstat.3 procstat_open_core.3 \
58		libprocstat.3 procstat_open_kvm.3 \
59		libprocstat.3 procstat_open_sysctl.3
60
61# XXX This is a hack.
62.if ${MK_CDDL} != "no"
63CFLAGS+=	-DLIBPROCSTAT_ZFS
64OBJS+=	zfs/zfs.o
65SOBJS+=	zfs/zfs.pico
66POBJS+=	zfs/zfs.po
67SUBDIR=	zfs
68zfs/zfs.o: .PHONY
69	@cd ${.CURDIR}/zfs && ${MAKE} zfs.o
70zfs/zfs.pico: .PHONY
71	@cd ${.CURDIR}/zfs && ${MAKE} zfs.pico
72zfs/zfs.po: .PHONY
73	@cd ${.CURDIR}/zfs && ${MAKE} zfs.po
74.endif
75
76.include <bsd.lib.mk>
77