1 2PACKAGE=lib${LIB} 3SHLIBDIR?= /lib 4 5.include <src.opts.mk> 6 7PTSRC= ${SRCTOP}/contrib/processor-trace 8 9.PATH: ${PTSRC}/libipt/src \ 10 ${PTSRC}/libipt/src/posix \ 11 ${PTSRC}/libipt/internal/include \ 12 ${PTSRC}/libipt/include \ 13 ${PTSRC}/include 14 15LIB= ipt 16SHLIB_MAJOR=0 17 18SRCS= \ 19 pt_asid.c \ 20 pt_block_cache.c \ 21 pt_block_decoder.c \ 22 pt_config.c \ 23 pt_cpu.c \ 24 pt_cpuid.c \ 25 pt_decoder_function.c \ 26 pt_encoder.c \ 27 pt_error.c \ 28 pt_event_queue.c \ 29 pt_ild.c \ 30 pt_image_section_cache.c \ 31 pt_image.c \ 32 pt_insn_decoder.c \ 33 pt_insn.c \ 34 pt_last_ip.c \ 35 pt_msec_cache.c \ 36 pt_packet_decoder.c \ 37 pt_packet.c \ 38 pt_query_decoder.c \ 39 pt_retstack.c \ 40 pt_section_file.c \ 41 pt_section_posix.c \ 42 pt_section.c \ 43 pt_sync.c \ 44 pt_time.c \ 45 pt_tnt_cache.c \ 46 pt_version.c 47 48CFLAGS+= \ 49 -I${PTSRC}/libipt/internal/include/posix \ 50 -I${PTSRC}/libipt/internal/include \ 51 -I${PTSRC}/libipt/include \ 52 -I${PTSRC}/include \ 53 -I${.CURDIR} 54 55CFLAGS+= \ 56 -DPT_VERSION_BUILD=0 \ 57 -DPT_VERSION_EXT=\"\" \ 58 -DPT_VERSION_MAJOR=1 \ 59 -DPT_VERSION_MINOR=6 \ 60 -DPT_VERSION_PATCH=0 61 62INCS= \ 63 intel-pt.h \ 64 pt_cpu.h \ 65 pt_last_ip.h \ 66 pt_time.h \ 67 pt_compiler.h 68 69INCSDIR=${INCLUDEDIR}/libipt 70 71LIBADD= 72 73WARNS?= 1 74 75HAS_TESTS= 76 77.include <bsd.lib.mk> 78