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