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_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 trc_gen_elem_types.h \ 108 trc_pkt_types.h 109 110INCSDIR=${INCLUDEDIR}/opencsd 111 112APIINCS= \ 113 ocsd_c_api_cust_fact.h \ 114 ocsd_c_api_cust_impl.h \ 115 ocsd_c_api_custom.h \ 116 ocsd_c_api_types.h \ 117 opencsd_c_api.h 118 119APIINCSDIR=${INCLUDEDIR}/opencsd/c_api/ 120 121ETMV4INCS= \ 122 etmv4_decoder.h \ 123 trc_cmp_cfg_etmv4.h \ 124 trc_dcd_mngr_etmv4i.h \ 125 trc_etmv4_stack_elem.h \ 126 trc_pkt_decode_etmv4i.h \ 127 trc_pkt_elem_etmv4d.h \ 128 trc_pkt_elem_etmv4i.h \ 129 trc_pkt_proc_etmv4.h \ 130 trc_pkt_types_etmv4.h 131 132ETMV4INCSDIR=${INCLUDEDIR}/opencsd/etmv4/ 133 134ETMV3INCS= \ 135 etmv3_decoder.h \ 136 trc_cmp_cfg_etmv3.h \ 137 trc_dcd_mngr_etmv3.h \ 138 trc_pkt_decode_etmv3.h \ 139 trc_pkt_elem_etmv3.h \ 140 trc_pkt_proc_etmv3.h \ 141 trc_pkt_types_etmv3.h 142 143ETMV3INCSDIR=${INCLUDEDIR}/opencsd/etmv3/ 144 145PTMINCS= \ 146 ptm_decoder.h \ 147 trc_cmp_cfg_ptm.h \ 148 trc_dcd_mngr_ptm.h \ 149 trc_pkt_decode_ptm.h \ 150 trc_pkt_elem_ptm.h \ 151 trc_pkt_proc_ptm.h \ 152 trc_pkt_types_ptm.h 153 154PTMINCSDIR=${INCLUDEDIR}/opencsd/ptm/ 155 156STMINCS= \ 157 stm_decoder.h \ 158 trc_cmp_cfg_stm.h \ 159 trc_dcd_mngr_stm.h \ 160 trc_pkt_decode_stm.h \ 161 trc_pkt_elem_stm.h \ 162 trc_pkt_proc_stm.h \ 163 trc_pkt_types_stm.h 164 165STMINCSDIR=${INCLUDEDIR}/opencsd/stm/ 166 167INCSGROUPS=INCS APIINCS ETMV3INCS ETMV4INCS PTMINCS STMINCS 168 169LIBADD= cxxrt 170 171WARNS?= 1 172 173HAS_TESTS= 174 175.include <bsd.lib.mk> 176