xref: /freebsd/lib/libipt/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1PACKAGE=lib${LIB}
2SHLIBDIR?=	/lib
3
4.include <src.opts.mk>
5
6PTSRC=	${SRCTOP}/contrib/processor-trace
7
8.PATH:	${PTSRC}/libipt/src			\
9	${PTSRC}/libipt/src/posix		\
10	${PTSRC}/libipt/internal/include	\
11	${PTSRC}/libipt/include			\
12	${PTSRC}/include
13
14LIB=	ipt
15SHLIB_MAJOR=0
16
17SRCS=	\
18	pt_asid.c			\
19	pt_block_cache.c		\
20	pt_block_decoder.c		\
21	pt_config.c			\
22	pt_cpu.c			\
23	pt_cpuid.c			\
24	pt_decoder_function.c		\
25	pt_encoder.c			\
26	pt_error.c			\
27	pt_event_queue.c		\
28	pt_ild.c			\
29	pt_image_section_cache.c	\
30	pt_image.c			\
31	pt_insn_decoder.c		\
32	pt_insn.c			\
33	pt_last_ip.c			\
34	pt_msec_cache.c			\
35	pt_packet_decoder.c		\
36	pt_packet.c			\
37	pt_query_decoder.c		\
38	pt_retstack.c			\
39	pt_section_file.c		\
40	pt_section_posix.c		\
41	pt_section.c			\
42	pt_sync.c			\
43	pt_time.c			\
44	pt_tnt_cache.c			\
45	pt_version.c
46
47CFLAGS+=	\
48	-I${PTSRC}/libipt/internal/include/posix	\
49	-I${PTSRC}/libipt/internal/include		\
50	-I${PTSRC}/libipt/include			\
51	-I${PTSRC}/include				\
52	-I${.CURDIR}
53
54CFLAGS+=	\
55	-DPT_VERSION_BUILD=0	\
56	-DPT_VERSION_EXT=\"\"	\
57	-DPT_VERSION_MAJOR=1	\
58	-DPT_VERSION_MINOR=6	\
59	-DPT_VERSION_PATCH=0
60
61INCS=	\
62	intel-pt.h	\
63	pt_cpu.h	\
64	pt_last_ip.h	\
65	pt_time.h	\
66	pt_compiler.h
67
68INCSDIR=${INCLUDEDIR}/libipt
69
70LIBADD=
71
72WARNS?= 1
73
74HAS_TESTS=
75
76.include <bsd.lib.mk>
77