1# $FreeBSD$ 2 3PACKAGE=lib${LIB} 4SHLIBDIR?= /lib 5 6.include <src.opts.mk> 7 8PTSRC= ${SRCTOP}/contrib/processor-trace 9 10.PATH: ${PTSRC}/libipt/src \ 11 ${PTSRC}/libipt/src/posix \ 12 ${PTSRC}/libipt/internal/include \ 13 ${PTSRC}/libipt/include \ 14 ${PTSRC}/include 15 16LIB= ipt 17SHLIB_MAJOR=0 18 19SRCS= \ 20 init.c \ 21 pt_asid.c \ 22 pt_block_cache.c \ 23 pt_block_decoder.c \ 24 pt_config.c \ 25 pt_cpu.c \ 26 pt_cpuid.c \ 27 pt_decoder_function.c \ 28 pt_encoder.c \ 29 pt_error.c \ 30 pt_event_queue.c \ 31 pt_ild.c \ 32 pt_image_section_cache.c \ 33 pt_image.c \ 34 pt_insn_decoder.c \ 35 pt_insn.c \ 36 pt_last_ip.c \ 37 pt_packet_decoder.c \ 38 pt_packet.c \ 39 pt_query_decoder.c \ 40 pt_retstack.c \ 41 pt_section_file.c \ 42 pt_section_posix.c \ 43 pt_section.c \ 44 pt_sync.c \ 45 pt_time.c \ 46 pt_tnt_cache.c \ 47 pt_version.c 48 49CFLAGS+= \ 50 -I${PTSRC}/libipt/internal/include/posix \ 51 -I${PTSRC}/libipt/internal/include \ 52 -I${PTSRC}/libipt/include \ 53 -I${PTSRC}/include \ 54 -I${.CURDIR} 55 56CFLAGS+= \ 57 -DPT_VERSION_BUILD=0 \ 58 -DPT_VERSION_EXT=\"\" \ 59 -DPT_VERSION_MAJOR=1 \ 60 -DPT_VERSION_MINOR=6 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