34 lines · plain
1#----------------------------------------------------------------------2# Fill in the source files to build3#----------------------------------------------------------------------4# Uncomment line below for debugging shell commands5# SHELL = /bin/sh -x6 7#----------------------------------------------------------------------8# Change any build/tool options needed9#----------------------------------------------------------------------10ARCH ?= x86_6411CFLAGS ?=-arch $(ARCH) -gdwarf-2 -O012CXX ?= $(shell xcrun -find clang++)13EXE ?= libheap.dylib14DSYM ?= $(EXE).dSYM15 16#----------------------------------------------------------------------17# Compile the executable from all the objects (default rule) with no18# dsym file.19#----------------------------------------------------------------------20$(EXE) : heap_find.cpp21 $(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 have25# to manually track all of the prerequisites for each source file.26#----------------------------------------------------------------------27.PHONY: clean28all: $(EXE)29clean:30 rm -rf "$(EXE)" "$(DSYM)"31 32 33 34