1#----------------------------------------------------------------------
2# Fill in the source files to build
3#----------------------------------------------------------------------
4# Uncomment line below for debugging shell commands
5# SHELL = /bin/sh -x
6
7#----------------------------------------------------------------------
8# Change any build/tool options needed
9#----------------------------------------------------------------------
10ARCH ?= x86_64
11CFLAGS ?=-arch $(ARCH) -gdwarf-2 -O0
12CXX ?= $(shell xcrun -find clang++)
13EXE ?= libheap.dylib
14DSYM ?= $(EXE).dSYM
15
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)"
22
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
28all:	$(EXE)
29clean:
30	rm -rf "$(EXE)" "$(DSYM)"
31
32
33
34