-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
81 lines (56 loc) · 2.12 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
BUILD ?= $(PWD)/tmp
ROOT = $(PWD)
export LDFLAGS = -L$(BUILD)/prefix/lib
export CPPFLAGS = -I$(BUILD)/prefix/include
all:: build-cxxtools build-xz build-tntdb build-zimlib build-zimwriter
dummy::
# --- cxxtools
configure-cxxtools:: $(BUILD)/cxxtools-configure-done
build-cxxtools:: configure-cxxtools $(BUILD)/cxxtools-build-done
$(BUILD)/cxxtools-build-done:
cd $(BUILD)/cxxtools; make install
touch $@
$(BUILD)/cxxtools-configure-done:
mkdir -p $(BUILD)/cxxtools
cd $(BUILD)/cxxtools; sh $(ROOT)/cxxtools/configure --disable-shared --with-pic --prefix $(BUILD)/prefix --disable-demos --disable-unittest
touch $@
# --- xz
configure-xz:: $(BUILD)/xz-configure-done
build-xz:: configure-xz $(BUILD)/xz-build-done
$(BUILD)/xz-build-done:
cd $(BUILD)/xz; make install
touch $@
$(BUILD)/xz-configure-done:
mkdir -p $(BUILD)/xz
cd $(BUILD)/xz; sh $(ROOT)/xz/configure --disable-shared --with-pic --prefix $(BUILD)/prefix
touch $@
# --- tntdb
configure-tntdb:: $(BUILD)/tntdb-configure-done
build-tntdb:: configure-tntdb $(BUILD)/tntdb-build-done build-cxxtools build-xz
$(BUILD)/tntdb-build-done:
cd $(BUILD)/tntdb; make install
touch $@
$(BUILD)/tntdb-configure-done:
mkdir -p $(BUILD)/tntdb
cd $(BUILD)/tntdb; sh $(ROOT)/tntdb/configure --disable-shared --with-pic --prefix $(BUILD)/prefix --without-postgresql --without-mysql --without-sqlite --without-doxygen
touch $@
# --- zimlib
configure-zimlib:: $(BUILD)/zimlib-configure-done
build-zimlib:: configure-zimlib $(BUILD)/zimlib-build-done
$(BUILD)/zimlib-build-done:
cd $(BUILD)/zimlib; make install
touch $@
$(BUILD)/zimlib-configure-done:
mkdir -p $(BUILD)/zimlib
cd $(BUILD)/zimlib; sh $(ROOT)/zimlib/configure --disable-shared --with-pic --prefix $(BUILD)/prefix
touch $@
# --- zimwriter
configure-zimwriter:: $(BUILD)/zimwriter-configure-done
build-zimwriter:: configure-zimwriter $(BUILD)/zimwriter-build-done
$(BUILD)/zimwriter-build-done:
cd $(BUILD)/zimwriter; make install
touch $@
$(BUILD)/zimwriter-configure-done:
mkdir -p $(BUILD)/zimwriter
cd $(BUILD)/zimwriter; sh $(ROOT)/zimwriter/configure --disable-shared --with-pic --prefix $(BUILD)/prefix
touch $@