-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
52 lines (42 loc) · 1.19 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
LIBUV_BRANCH=v1.18.0
LIBH2O_BRANCH=v2.2.4
letsbuildthis:
python waf configure
python waf build
clean:
python waf clean
libh2o_build:
cd deps/h2o && cmake . -DCMAKE_INCLUDE_PATH=../libuv/include -DLIBUV_LIBRARIES=1 -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include
cd deps/h2o && make libh2o
cp deps/h2o/libh2o.a .
.PHONY : libh2o_build
libh2o_fetch:
if test -e deps/h2o; \
then cd deps/h2o && rm -f CMakeCache.txt && git pull origin $(LIBH2O_BRANCH) ; \
else git clone https://github.com/h2o/h2o deps/h2o; \
fi
cd deps/h2o && git checkout $(LIBH2O_BRANCH)
.PHONY : libh2o_fetch
libh2o: libh2o_fetch libh2o_build
.PHONY : libh2o
libh2o_vendor:
rm -rf deps/h2o/.git > /dev/null
.PHONY : libh2o_vendor
libuv_build:
cd deps/libuv && sh autogen.sh
cd deps/libuv && ./configure
cd deps/libuv && make
cp deps/libuv/.libs/libuv.a .
.PHONY : libuv_build
libuv_fetch:
if test -e deps/libuv; \
then cd deps/libuv && git pull origin $(LIBUV_BRANCH); \
else git clone https://github.com/libuv/libuv deps/libuv; \
fi
cd deps/libuv && git checkout $(LIBUV_BRANCH)
.PHONY : libuv_fetch
libuv: libuv_fetch libuv_build
.PHONY : libuv
libuv_vendor:
rm -rf deps/libuv/.git > /dev/null
.PHONY : libuv_vendor