aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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