xref: /freebsd/lib/libopencsd/Makefile (revision 344d411c676dc92e648be86de369c4d1dd070209)
1# $FreeBSD$
2
3PACKAGE=lib${LIB}
4SHLIBDIR?=	/lib
5
6.include <src.opts.mk>
7
8OPENCSDSRC=	${SRCTOP}/contrib/opencsd
9
10.PATH:	${OPENCSDSRC}/decoder/source/etmv4/		\
11	${OPENCSDSRC}/decoder/source/etmv3/		\
12	${OPENCSDSRC}/decoder/source/pkt_printers/	\
13	${OPENCSDSRC}/decoder/source/mem_acc/		\
14	${OPENCSDSRC}/decoder/source/i_dec/		\
15	${OPENCSDSRC}/decoder/source/c_api/		\
16	${OPENCSDSRC}/decoder/source/ptm/		\
17	${OPENCSDSRC}/decoder/source/stm/		\
18	${OPENCSDSRC}/decoder/source/			\
19	${OPENCSDSRC}/decoder/include/opencsd/etmv4/	\
20	${OPENCSDSRC}/decoder/include/opencsd/etmv3/	\
21	${OPENCSDSRC}/decoder/include/opencsd/stm/	\
22	${OPENCSDSRC}/decoder/include/opencsd/ptm/	\
23	${OPENCSDSRC}/decoder/include/opencsd/c_api/	\
24	${OPENCSDSRC}/decoder/include/opencsd/		\
25	${OPENCSDSRC}/decoder/include
26
27LIB=	opencsd
28SHLIB_MAJOR=0
29
30# ETMv3
31SRCS=	\
32	trc_cmp_cfg_etmv3.cpp		\
33	trc_pkt_decode_etmv3.cpp	\
34	trc_pkt_elem_etmv3.cpp		\
35	trc_pkt_proc_etmv3.cpp		\
36	trc_pkt_proc_etmv3_impl.cpp
37
38# ETMv4
39SRCS+=	\
40	trc_cmp_cfg_etmv4.cpp			\
41	trc_etmv4_stack_elem.cpp		\
42	trc_pkt_decode_etmv4i.cpp		\
43	trc_pkt_elem_etmv4d.cpp			\
44	trc_pkt_elem_etmv4i.cpp			\
45	trc_pkt_proc_etmv4.cpp			\
46	trc_pkt_proc_etmv4i_impl.cpp
47
48# PKT_PRINTERS
49SRCS+=	\
50	raw_frame_printer.cpp			\
51	trc_print_fact.cpp
52
53# PTM
54SRCS+=	\
55	trc_cmp_cfg_ptm.cpp			\
56	trc_pkt_decode_ptm.cpp			\
57	trc_pkt_elem_ptm.cpp			\
58	trc_pkt_proc_ptm.cpp
59
60# STM
61SRCS+=	\
62	trc_pkt_decode_stm.cpp			\
63	trc_pkt_elem_stm.cpp			\
64	trc_pkt_proc_stm.cpp
65
66# C_API
67SRCS+=	\
68	ocsd_c_api_custom_obj.cpp		\
69	ocsd_c_api.cpp
70
71# SRC
72SRCS+=	\
73	ocsd_code_follower.cpp			\
74	ocsd_dcd_tree.cpp			\
75	ocsd_error.cpp				\
76	ocsd_error_logger.cpp			\
77	ocsd_gen_elem_list.cpp			\
78	ocsd_lib_dcd_register.cpp		\
79	ocsd_msg_logger.cpp			\
80	ocsd_version.cpp			\
81	trc_component.cpp			\
82	trc_core_arch_map.cpp			\
83	trc_frame_deformatter.cpp		\
84	trc_gen_elem.cpp			\
85	trc_printable_elem.cpp			\
86	trc_ret_stack.cpp
87
88# MEM_ACC
89SRCS+=	\
90	trc_mem_acc_base.cpp			\
91	trc_mem_acc_cache.cpp			\
92	trc_mem_acc_cb.cpp			\
93	trc_mem_acc_mapper.cpp			\
94	trc_mem_acc_bufptr.cpp			\
95	trc_mem_acc_file.cpp
96
97# I_DEC
98SRCS+=	\
99	trc_i_decode.cpp			\
100	trc_idec_arminst.cpp
101
102CFLAGS+=	\
103	-I${OPENCSDSRC}/decoder/include/	\
104	-I${.CURDIR}
105
106INCS=	\
107	ocsd_if_types.h			\
108	ocsd_if_version.h		\
109	trc_gen_elem_types.h		\
110	trc_pkt_types.h
111
112INCSDIR=${INCLUDEDIR}/opencsd
113
114APIINCS=	\
115	ocsd_c_api_cust_fact.h		\
116	ocsd_c_api_cust_impl.h		\
117	ocsd_c_api_custom.h		\
118	ocsd_c_api_types.h		\
119	opencsd_c_api.h
120
121APIINCSDIR=${INCLUDEDIR}/opencsd/c_api/
122
123ETMV4INCS=	\
124	etmv4_decoder.h			\
125	trc_cmp_cfg_etmv4.h		\
126	trc_dcd_mngr_etmv4i.h		\
127	trc_etmv4_stack_elem.h		\
128	trc_pkt_decode_etmv4i.h		\
129	trc_pkt_elem_etmv4d.h		\
130	trc_pkt_elem_etmv4i.h		\
131	trc_pkt_proc_etmv4.h		\
132	trc_pkt_types_etmv4.h
133
134ETMV4INCSDIR=${INCLUDEDIR}/opencsd/etmv4/
135
136ETMV3INCS=	\
137	etmv3_decoder.h			\
138	trc_cmp_cfg_etmv3.h		\
139	trc_dcd_mngr_etmv3.h		\
140	trc_pkt_decode_etmv3.h		\
141	trc_pkt_elem_etmv3.h		\
142	trc_pkt_proc_etmv3.h		\
143	trc_pkt_types_etmv3.h
144
145ETMV3INCSDIR=${INCLUDEDIR}/opencsd/etmv3/
146
147PTMINCS=	\
148	ptm_decoder.h			\
149	trc_cmp_cfg_ptm.h		\
150	trc_dcd_mngr_ptm.h		\
151	trc_pkt_decode_ptm.h		\
152	trc_pkt_elem_ptm.h		\
153	trc_pkt_proc_ptm.h		\
154	trc_pkt_types_ptm.h
155
156PTMINCSDIR=${INCLUDEDIR}/opencsd/ptm/
157
158STMINCS=	\
159	stm_decoder.h			\
160	trc_cmp_cfg_stm.h		\
161	trc_dcd_mngr_stm.h		\
162	trc_pkt_decode_stm.h		\
163	trc_pkt_elem_stm.h		\
164	trc_pkt_proc_stm.h		\
165	trc_pkt_types_stm.h
166
167STMINCSDIR=${INCLUDEDIR}/opencsd/stm/
168
169INCSGROUPS=INCS APIINCS ETMV3INCS ETMV4INCS PTMINCS STMINCS
170
171LIBADD= cxxrt
172
173WARNS?= 1
174
175HAS_TESTS=
176
177.include <bsd.lib.mk>
178