-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (25 loc) · 900 Bytes
/
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
CC := g++ -g
CFLAG := -Wall -c -std=c++11
OBJECT := KDNode.o KDTree.o rect.o KDDisk.o KDPointDisk.o test_kdtree.o DiskFile.o KDTreeDiskHeader.o
all:$(OBJECT)
$(CC) -Wall -o test_kdtree -pthread $(OBJECT) libsdsl.a libdivsufsort64.a libdivsufsort.a -lgtest
KDNode.o: KDNode.cpp KDNode.h rect.h
$(CC) $(CFLAG) -o $@ $<
KDTree.o: KDTree.cpp KDNode.h rect.h
$(CC) $(CFLAG) -o $@ $<
rect.o: rect.cpp rect.h
$(CC) $(CFLAG) -o $@ $<
KDDisk.o: KDDisk.cpp KDDisk.h rect.h DiskFile.h
$(CC) $(CFLAG) -o $@ $<
KDPointDisk.o: KDPointDisk.cpp KDPointDisk.h rect.h DiskFile.h
$(CC) $(CFLAG) -o $@ $<
DiskFile.o: DiskFile.cpp DiskFile.h
$(CC) $(CFLAG) -o $@ $<
KDTreeDiskHeader.o: KDTreeDiskHeader.cpp KDTreeDiskHeader.h DiskFile.h
$(CC) $(CFLAG) -o $@ $<
test_kdtree.o: test_kdtree.cpp KDTree.h
$(CC) $(CFLAG) -o $@ $<
cleanObject:
rm $(OBJECT)
cleanAll:
rm $(OBJECT) test_kdtree