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