-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
30 lines (22 loc) · 907 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
all: build
clean_build:
rm -rf build
mkdir -p build
clean_contrib:
rm -rf contrib/yaml-0.1.4
rm -rf contrib/hiredis
rm -rf contrib/libevent-2.0.22-stable
build_contrib_libyaml:
cd contrib; tar -xvzf yaml-0.1.4.tar.gz; cd yaml-0.1.4; ./configure; make;
build_contrib_libevent:
cd contrib; wget https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz;\
tar -xvzf libevent-2.0.22-stable.tar.gz; cd libevent-2.0.22-stable; autoreconf --install; ./configure; make;
build_contrib_hiredis: build_contrib_libevent
cd contrib; git clone https://github.com/redis/hiredis.git; \
cd hiredis; git checkout 33152ad163a21f568fb40eeeb88b79365886b4ea; make;
build_wo_contrib: clean_build
cd build; cmake ..
make -C build
build: clean_build clean_contrib build_contrib_libyaml build_contrib_hiredis build_wo_contrib
run:
cd build; ./twemproxy_sentinel