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