-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
106 lines (94 loc) · 2.45 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
CC = gcc -O3 -g -c -Iinclude -o $@
CXX = g++
CFLAGS = -Wall -Wextra -std=c++11 -O3 -g -c -Iinclude -o $@
#-------------------------------------------------------------------------------
OBJECTS = \
include/libcargo.h \
include/libcargo/classes.h \
include/libcargo/debug.h \
include/libcargo/distance.h \
include/libcargo/gui.h \
include/libcargo/message.h \
include/libcargo/types.h \
build/cargo.o \
build/dbsql.o \
build/classes.o \
build/file.o \
build/functions.o \
build/grid.o \
build/gtree.o \
build/rsalgorithm.o \
build/sqlite3.o
lib/libcargo.a: $(OBJECTS)
ar rcs $@ $^
#-------------------------------------------------------------------------------
$(OBJECTS): | build
build/cargo.o: \
include/libcargo/cargo.h \
include/libcargo/classes.h \
include/libcargo/dbsql.h \
include/libcargo/debug.h \
include/libcargo/file.h \
include/libcargo/message.h \
include/libcargo/options.h \
include/libcargo/types.h \
include/gtree/gtree.h \
src/cargo.cc
$(CXX) $(CFLAGS) src/cargo.cc
build/classes.o: \
include/libcargo/classes.h \
include/libcargo/functions.h \
include/libcargo/types.h \
src/classes.cc
$(CXX) $(CFLAGS) src/classes.cc
build/dbsql.o: \
include/libcargo/dbsql.h \
include/libcargo/types.h \
include/sqlite3/sqlite3.h \
src/dbsql.cc
$(CXX) $(CFLAGS) src/dbsql.cc
build/file.o: \
include/libcargo/file.h \
include/libcargo/classes.h \
include/libcargo/types.h \
src/file.cc
$(CXX) $(CFLAGS) src/file.cc
build/functions.o: \
include/libcargo/functions.h \
include/libcargo/cargo.h \
include/libcargo/classes.h \
include/libcargo/debug.h \
include/libcargo/distance.h \
include/libcargo/types.h \
include/gtree/gtree.h \
src/functions.cc
$(CXX) $(CFLAGS) src/functions.cc
build/grid.o: \
include/libcargo/grid.h \
include/libcargo/cargo.h \
include/libcargo/classes.h \
include/libcargo/distance.h \
include/libcargo/types.h \
src/grid.cc
$(CXX) $(CFLAGS) src/grid.cc
build/gtree.o: \
include/gtree/gtree.h \
src/gtree/gtree.cc
$(CXX) $(CFLAGS) src/gtree/gtree.cc
build/rsalgorithm.o: \
include/libcargo/rsalgorithm.h \
include/libcargo/classes.h \
include/libcargo/dbsql.h \
include/libcargo/debug.h \
include/libcargo/message.h \
include/libcargo/types.h \
src/rsalgorithm.cc
$(CXX) $(CFLAGS) src/rsalgorithm.cc
build/sqlite3.o: \
include/sqlite3/sqlite3.h \
src/sqlite3/sqlite3.c
$(CC) -DSQLITE_ENABLE_RTREE src/sqlite3/sqlite3.c
build:
mkdir -p build lib
clean:
rm -rf build/ lib/libcargo.a