[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git] / lldb / examples / darwin / heap_find / heap / Makefile
blob0e33dc9f8936b29405dc887f76edabedc71a2770
1 #----------------------------------------------------------------------
2 # Fill in the source files to build
3 #----------------------------------------------------------------------
4 # Uncomment line below for debugging shell commands
5 # SHELL = /bin/sh -x
7 #----------------------------------------------------------------------
8 # Change any build/tool options needed
9 #----------------------------------------------------------------------
10 ARCH ?= x86_64
11 CFLAGS ?=-arch $(ARCH) -gdwarf-2 -O0
12 CXX ?= $(shell xcrun -find clang++)
13 EXE ?= libheap.dylib
14 DSYM ?= $(EXE).dSYM
16 #----------------------------------------------------------------------
17 # Compile the executable from all the objects (default rule) with no
18 # dsym file.
19 #----------------------------------------------------------------------
20 $(EXE) : heap_find.cpp
21 $(CXX) $(CFLAGS) -install_name "@executable_path/libheap.dylib" -dynamiclib -lobjc heap_find.cpp -o "$(EXE)"
23 #----------------------------------------------------------------------
24 # Include all of the makefiles for each source file so we don't have
25 # to manually track all of the prerequisites for each source file.
26 #----------------------------------------------------------------------
27 .PHONY: clean
28 all: $(EXE)
29 clean:
30 rm -rf "$(EXE)" "$(DSYM)"