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 pt_asid.c \ 21 pt_block_cache.c \ 22 pt_block_decoder.c \ 23 pt_config.c \ 24 pt_cpu.c \ 25 pt_cpuid.c \ 26 pt_decoder_function.c \ 27 pt_encoder.c \ 28 pt_error.c \ 29 pt_event_queue.c \ 30 pt_ild.c \ 31 pt_image_section_cache.c \ 32 pt_image.c \ 33 pt_insn_decoder.c \ 34 pt_insn.c \ 35 pt_last_ip.c \ 36 pt_msec_cache.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 -DPT_VERSION_PATCH=0 62 63INCS= \ 64 intel-pt.h \ 65 pt_cpu.h \ 66 pt_last_ip.h \ 67 pt_time.h \ 68 pt_compiler.h 69 70INCSDIR=${INCLUDEDIR}/libipt 71 72LIBADD= 73 74WARNS?= 1 75 76HAS_TESTS= 77 78.include <bsd.lib.mk> 79