Permalink
Browse files

Modified Makefile to be a little friendlier about moving gtest around

  • Loading branch information...
1 parent c4f967e commit 528fde0a4ca653b3367f3bc0a129d9ae83f0489d @glyphrider committed May 6, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 Makefile
View
8 Makefile
@@ -1,17 +1,17 @@
OBJS=test.o roman.o gtest-all.o
-GTEST=../../../gtest-1.6.0
+GTEST_ROOT ?= ../../../gtest-1.6.0
run : test
./test
test : $(OBJS)
g++ -pthread -o $@ $^
-gtest-all.o : $(GTEST)/src/gtest-all.cc
- g++ -I$(GTEST) -I$(GTEST)/include -c -o $@ $<
+gtest-all.o : $(GTEST_ROOT)/src/gtest-all.cc
+ g++ -I$(GTEST_ROOT) -I$(GTEST_ROOT)/include -c -o $@ $<
%.o : %.cc
- g++ -I$(GTEST)/include -c -o $@ $<
+ g++ -I$(GTEST_ROOT)/include -c -o $@ $<
clean :
rm -f test $(OBJS)

0 comments on commit 528fde0

Please sign in to comment.