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