Home | History | Annotate | Line # | Download | only in libasan
Makefile revision 1.9.2.2
      1  1.9.2.2  martin 
      2  1.9.2.2  martin .include <bsd.own.mk>
      3  1.9.2.2  martin 
      4  1.9.2.2  martin .include "../Makefile.inc"
      5  1.9.2.2  martin 
      6  1.9.2.2  martin ASAN=${GCCDIST}/libsanitizer
      7  1.9.2.2  martin .PATH: ${ASAN}/asan ${ASAN}/interception ${ASAN}/sanitizer_common
      8  1.9.2.2  martin 
      9  1.9.2.2  martin ASAN_SRCS= \
     10  1.9.2.2  martin 	asan_allocator.cc \
     11  1.9.2.2  martin 	asan_allocator2.cc \
     12  1.9.2.2  martin 	asan_interceptors.cc \
     13  1.9.2.2  martin 	asan_posix.cc \
     14  1.9.2.2  martin 	asan_new_delete.cc \
     15  1.9.2.2  martin 	asan_rtl.cc \
     16  1.9.2.2  martin 	asan_stats.cc \
     17  1.9.2.2  martin 	asan_globals.cc \
     18  1.9.2.2  martin 	asan_thread_registry.cc \
     19  1.9.2.2  martin 	asan_fake_stack.cc \
     20  1.9.2.2  martin 	asan_linux.cc \
     21  1.9.2.2  martin 	asan_report.cc \
     22  1.9.2.2  martin 	asan_malloc_linux.cc \
     23  1.9.2.2  martin 	asan_poisoning.cc \
     24  1.9.2.2  martin 	asan_stack.cc \
     25  1.9.2.2  martin 	asan_thread.cc \
     26  1.9.2.2  martin 	asan_preinit.cc
     27  1.9.2.2  martin 
     28  1.9.2.2  martin INTERCEPTION_SRCS= \
     29  1.9.2.2  martin 	interception_linux.cc \
     30  1.9.2.2  martin 	interception_type_test.cc
     31  1.9.2.2  martin 
     32  1.9.2.2  martin SANITIZER_SRCS= \
     33  1.9.2.2  martin 	sanitizer_allocator.cc \
     34  1.9.2.2  martin 	sanitizer_common.cc \
     35  1.9.2.2  martin 	sanitizer_flags.cc \
     36  1.9.2.2  martin 	sanitizer_libc.cc \
     37  1.9.2.2  martin 	sanitizer_netbsd.cc \
     38  1.9.2.2  martin 	sanitizer_mac.cc \
     39  1.9.2.2  martin 	sanitizer_posix.cc \
     40  1.9.2.2  martin 	sanitizer_platform_limits_posix.cc \
     41  1.9.2.2  martin 	sanitizer_printf.cc \
     42  1.9.2.2  martin 	sanitizer_stackdepot.cc \
     43  1.9.2.2  martin 	sanitizer_stacktrace.cc \
     44  1.9.2.2  martin 	sanitizer_symbolizer.cc \
     45  1.9.2.2  martin 	sanitizer_symbolizer_linux.cc \
     46  1.9.2.2  martin 	sanitizer_win.cc
     47  1.9.2.2  martin 
     48  1.9.2.2  martin # The linux build does this to avoid preinit sections on shared libraries
     49  1.9.2.2  martin CSHLIBFLAGS+= -DPIC
     50  1.9.2.2  martin 
     51  1.9.2.2  martin LIB=	asan
     52  1.9.2.2  martin SRCS=	${ASAN_SRCS} ${INTERCEPTION_SRCS} ${SANITIZER_SRCS}
     53  1.9.2.2  martin CPPFLAGS+=-I${ASAN}/include -I${ASAN}
     54  1.9.2.2  martin CPPFLAGS.sanitizer_netbsd.cc+=-I${GCCDIST}/gcc/ginclude
     55  1.9.2.2  martin 
     56  1.9.2.2  martin LIBDPLIBS+=    stdc++ ${.CURDIR}/../libstdc++-v3
     57  1.9.2.2  martin LIBDPLIBS+=    pthread ${.CURDIR}/../../../../../lib/libpthread
     58  1.9.2.2  martin 
     59  1.9.2.2  martin .include <bsd.lib.mk>
     60