xref: /freebsd/lib/libprocstat/Makefile (revision efe3b0de1438e7a8473d92f2be57072394559e3c)
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
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
60OBJS+=	zfs/zfs.o
61SOBJS+=	zfs/zfs.pico
62POBJS+=	zfs/zfs.po
63SUBDIR=	zfs
64zfs/zfs.o: .PHONY
65	@cd ${.CURDIR}/zfs && ${MAKE} zfs.o
66zfs/zfs.pico: .PHONY
67	@cd ${.CURDIR}/zfs && ${MAKE} zfs.pico
68zfs/zfs.po: .PHONY
69	@cd ${.CURDIR}/zfs && ${MAKE} zfs.po
70.endif
71
72.include <bsd.lib.mk>
73