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