forked from active911/fastcache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (18 loc) · 723 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (18 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#GEN_SRC := tests.cpp example.cpp
DEP_HEAD := Fastcache.h
#gGEN_OBJ := $(patsubst %.cpp,%.o, $(GEN_SRC))
#THRIFT_DIR := /usr/local/include/thrift
#INC := -I$(THRIFT_DIR) -Igen-cpp/ -Iinclude/ -Iinih/ -Iinih/cpp/
all: test example
test: test/test_1 test/test_2 test/test_3 test/test_4 test/test_5 test/test_6
/usr/bin/perl run_tests.pl
example: example.o
$(CXX) $^ -o $@ -L/usr/local/lib -lboost_thread
test/test_%: test/test_%.o
$(CXX) $^ -o $@ -L/usr/local/lib -lboost_thread
test/%.o: test/%.cpp $(DEP_HEAD)
$(CXX) -Wall $(INC) -c $< -o $@
%.o: %.cpp $(DEP_HEAD)
$(CXX) -Wall $(INC) -c $< -o $@
clean:
$(RM) *.o test/*.o test/test_1 test/test_2 test/test_3 test/test_4 test/test_5 test/test_6 example