forked from kazel1990/silo_fuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (36 loc) · 1.42 KB
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
CXX = g++
CXXFLAGS = -O2 -g -std=gnu++14
CXXFLAGS_FUSE = $(CXXFLAGS) -lcrypto -lz `pkg-config fuse --cflags --libs`
all : silo_fuse
silo_fuse : main.o lib/btree.o lib/libsilo.o chunk.o block.o silo.o lib/shtable.o lib/debug.o
$(CXX) -o $@ $^ $(CXXFLAGS_FUSE)
unittest : unittest.o lib/btree.o lib/libsilo.o chunk.o block.o silo.o lib/shtable.o lib/debug.o
$(CXX) -o $@ $^ $(CXXFLAGS_FUSE)
unittest.o : unittest.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS)
main.o : main.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS_FUSE)
chunk.o : chunk.cpp chunk.h
$(CXX) -c -o $@ $< $(CXXFLAGS_FUSE)
block.o : block.cpp block.h
$(CXX) -c -o $@ $< $(CXXFLAGS_FUSE)
silo.o : silo.cpp silo.h
$(CXX) -c -o $@ $< $(CXXFLAGS_FUSE)
test : lib/unittest.o lib/btree.o lib/libsilo.o
$(CXX) -o $@ $^ $(CXXFLAGS)
lib/unittest.o : lib/unittest.cpp lib/btree.o lib/libsilo.o
$(CXX) -c -o $@ $< $(CXXFLAGS)
lib/btree.o : lib/btree.cpp lib/btree.h
$(CXX) -c -o $@ $< $(CXXFLAGS)
lib/libsilo.o : lib/libsilo.cpp lib/libsilo.h
$(CXX) -c -o $@ $< $(CXXFLAGS)
lib/shtable.o: lib/shtable.cpp lib/shtable.h lib/btree.o
$(CXX) -c -o $@ $< $(CXXFLAGS)
lib/debug.o: lib/debug.cpp lib/debug.h
$(CXX) -c -o $@ $< $(CXXFLAGS)
dup : lib/duptest.o lib/shtable.o lib/btree.o lib/libsilo.o
$(CXX) -o $@ $^ $(CXXFLAGS) -lcrypto
lib/duptest.o : lib/duptest.cpp lib/shtable.o lib/btree.o lib/libsilo.o
$(CXX) -c -o $@ $< $(CXXFLAGS) -lcrypto
clean :
$(RM) *.o lib/*.o silo_fuse test dup