xref: /freebsd/lib/libopencsd/Makefile (revision 20634f026179ac73d4ea780138789195e335f275)
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_etmv4i.cpp			\
44	trc_pkt_proc_etmv4i.cpp
45
46# PKT_PRINTERS
47SRCS+=	\
48	raw_frame_printer.cpp			\
49	trc_print_fact.cpp
50
51# PTM
52SRCS+=	\
53	trc_cmp_cfg_ptm.cpp			\
54	trc_pkt_decode_ptm.cpp			\
55	trc_pkt_elem_ptm.cpp			\
56	trc_pkt_proc_ptm.cpp
57
58# STM
59SRCS+=	\
60	trc_pkt_decode_stm.cpp			\
61	trc_pkt_elem_stm.cpp			\
62	trc_pkt_proc_stm.cpp
63
64# C_API
65SRCS+=	\
66	ocsd_c_api_custom_obj.cpp		\
67	ocsd_c_api.cpp
68
69# SRC
70SRCS+=	\
71	ocsd_code_follower.cpp			\
72	ocsd_dcd_tree.cpp			\
73	ocsd_error.cpp				\
74	ocsd_error_logger.cpp			\
75	ocsd_gen_elem_list.cpp			\
76	ocsd_gen_elem_stack.cpp			\
77	ocsd_lib_dcd_register.cpp		\
78	ocsd_msg_logger.cpp			\
79	ocsd_version.cpp			\
80	trc_component.cpp			\
81	trc_core_arch_map.cpp			\
82	trc_frame_deformatter.cpp		\
83	trc_gen_elem.cpp			\
84	trc_printable_elem.cpp			\
85	trc_ret_stack.cpp
86
87# MEM_ACC
88SRCS+=	\
89	trc_mem_acc_base.cpp			\
90	trc_mem_acc_cache.cpp			\
91	trc_mem_acc_cb.cpp			\
92	trc_mem_acc_mapper.cpp			\
93	trc_mem_acc_bufptr.cpp			\
94	trc_mem_acc_file.cpp
95
96# I_DEC
97SRCS+=	\
98	trc_i_decode.cpp			\
99	trc_idec_arminst.cpp
100
101CFLAGS+=	\
102	-I${OPENCSDSRC}/decoder/include/	\
103	-I${.CURDIR}
104
105INCS=	\
106	ocsd_if_types.h			\
107	ocsd_if_version.h		\
108	trc_gen_elem_types.h		\
109	trc_pkt_types.h
110
111INCSDIR=${INCLUDEDIR}/opencsd
112
113APIINCS=	\
114	ocsd_c_api_cust_fact.h		\
115	ocsd_c_api_cust_impl.h		\
116	ocsd_c_api_custom.h		\
117	ocsd_c_api_types.h		\
118	opencsd_c_api.h
119
120APIINCSDIR=${INCLUDEDIR}/opencsd/c_api/
121
122ETMV4INCS=	\
123	etmv4_decoder.h			\
124	trc_cmp_cfg_etmv4.h		\
125	trc_dcd_mngr_etmv4i.h		\
126	trc_etmv4_stack_elem.h		\
127	trc_pkt_decode_etmv4i.h		\
128	trc_pkt_elem_etmv4i.h		\
129	trc_pkt_proc_etmv4.h		\
130	trc_pkt_proc_etmv4i.h		\
131	trc_pkt_types_etmv4.h
132
133ETMV4INCSDIR=${INCLUDEDIR}/opencsd/etmv4/
134
135ETMV3INCS=	\
136	etmv3_decoder.h			\
137	trc_cmp_cfg_etmv3.h		\
138	trc_dcd_mngr_etmv3.h		\
139	trc_pkt_decode_etmv3.h		\
140	trc_pkt_elem_etmv3.h		\
141	trc_pkt_proc_etmv3.h		\
142	trc_pkt_types_etmv3.h
143
144ETMV3INCSDIR=${INCLUDEDIR}/opencsd/etmv3/
145
146PTMINCS=	\
147	ptm_decoder.h			\
148	trc_cmp_cfg_ptm.h		\
149	trc_dcd_mngr_ptm.h		\
150	trc_pkt_decode_ptm.h		\
151	trc_pkt_elem_ptm.h		\
152	trc_pkt_proc_ptm.h		\
153	trc_pkt_types_ptm.h
154
155PTMINCSDIR=${INCLUDEDIR}/opencsd/ptm/
156
157STMINCS=	\
158	stm_decoder.h			\
159	trc_cmp_cfg_stm.h		\
160	trc_dcd_mngr_stm.h		\
161	trc_pkt_decode_stm.h		\
162	trc_pkt_elem_stm.h		\
163	trc_pkt_proc_stm.h		\
164	trc_pkt_types_stm.h
165
166STMINCSDIR=${INCLUDEDIR}/opencsd/stm/
167
168INCSGROUPS=INCS APIINCS ETMV3INCS ETMV4INCS PTMINCS STMINCS
169
170LIBADD= cxxrt
171
172WARNS?= 1
173
174HAS_TESTS=
175
176.include <bsd.lib.mk>
177