aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-14 02:35:14 +0000
committerDavid Robillard <d@drobilla.net>2011-05-14 02:35:14 +0000
commit8bc02f03310c32ff91c799988ebbd464b7057a38 (patch)
tree6909af0863ce1ba9cc91bbfe8821111e332396fd /Makefile
parent38711dac60e60151d5031c2f823e5a3e11048e8c (diff)
downloadresp-8bc02f03310c32ff91c799988ebbd464b7057a38.tar.gz
resp-8bc02f03310c32ff91c799988ebbd464b7057a38.tar.bz2
resp-8bc02f03310c32ff91c799988ebbd464b7057a38.zip
Parameterize compiler
git-svn-id: http://svn.drobilla.net/resp/trunk@415 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 059967c..03b648f 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,9 @@ LDFLAGS=-rdynamic -lm -ldl
#COMMON_FLAGS+=-fprofile-arcs -ftest-coverage
#LDFLAGS+=-lgcov
+CC=gcc
+CXX=g++
+
all: builddir build/resp
builddir:
@@ -41,19 +44,19 @@ OBJECTS = \
LLVM_OBJECTS = build/llvm.o
build/resp: $(OBJECTS) $(LLVM_OBJECTS)
- g++ -o $@ $(OBJECTS) $(LLVM_OBJECTS) $(LDFLAGS) $(LLVM_LDFLAGS)
+ $(CXX) -o $@ $(OBJECTS) $(LLVM_OBJECTS) $(LDFLAGS) $(LLVM_LDFLAGS)
build/%.o: src/%.cpp src/resp.hpp
- g++ $(CXXFLAGS) -o $@ -c $<
+ $(CXX) $(CXXFLAGS) -o $@ -c $<
build/tlsf.o: src/tlsf.c src/tlsf.h
- gcc $(CFLAGS) -o $@ -c $<
+ $(CC) $(CFLAGS) -o $@ -c $<
build/llvm.o: src/llvm.cpp src/resp.hpp
- g++ $(CXXFLAGS) $(LLVM_CXXFLAGS) -o $@ -c src/llvm.cpp
+ $(CXX) $(CXXFLAGS) $(LLVM_CXXFLAGS) -o $@ -c src/llvm.cpp
build/%.so: src/%.cpp src/resp.hpp
- g++ -shared $(CXXFLAGS) -o $@ $^
+ $(CXX) -shared $(CXXFLAGS) -o $@ $^
clean:
rm -rf build