-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathMakefile
45 lines (37 loc) · 1.43 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
-include version_scmpf.env
.PHONY: all makelib check_configure compile rm_config clean move check
all: check_configure makelib compile
check_configure:
if [ ! -x src/configure ];then ( cd src && ./autogen.sh );fi
makelib:
cd lib && bash -x patch_build_all.sh && cd ..
compile:
cd src && ./autogen.sh && ./configure --enable-debug --prefix=$(shell pwd)/lib/libgko CXXFLAGS='-DNDEBUG -ggdb -D_GKO_VERSION=\"$(subst VERSION:,,$(VERSION_SCMPF))\"' && make clean ;sleep 1 &&\
make -j 4 && make install && cd ..
rm_config:
rm ./src/config.h
rm -rf ./lib/libev/include
clean:
pwd
#cd src && make clean && cd .. && rm -rf output
#find ./../../../../../../.. -type f -name "event.h"
move:
if [ ! -d output ];then mkdir output;fi
cd output && if [ ! -d bin ];then mkdir bin; fi && if [ ! -d testbin ];then mkdir testbin; fi
cp ./src/gingko_serv ./output/bin/gkod
cp ./src/gingko_clnt ./output/bin/gkocp
cp ./src/serv_unittest ./output/testbin/
cp ./src/clnt_unittest ./output/testbin/
cp -r ./output/testbin ./test
#cp ./bin/* ./output/bin/
#cp ./src/erase_job.py ./output/bin/
#cp ./src/run2.sh ./output/bin/gkod_ctl
cp deploy ./output/ && chmod +x ./output/deploy
cd output && md5sum deploy bin/* > md5sum
#cd output/bin && cp gkocp{,.new}
#cd output/bin && cp gkod{,.new}
#cd output/bin && cp gkod_ctl{,.new}
chmod +x ./output/bin/*
cd output && tar czvf gingko.tgz bin md5sum deploy
check:
cd test && ./clnt_unittest && ./serv_unittest