-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 1.04 KB
/
Makefile
File metadata and controls
28 lines (20 loc) · 1.04 KB
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
export CC=gcc
export CXX=g++
export BOOST_ROOT=./thirdparty/boost_1_73_0
export CITY_HASH=./thirdparty/cityhash102
export PROTOBUF=./thirdparty/protobuf
export THIRDPARTY_INSTALL=$(shell pwd)/thirdparty/install
export PARALLEL=16
all: boost cityhash
echo "hello $(CC)"
boost: $(THIRDPARTY_INSTALL)/include/boost
cityhash: $(THIRDPARTY_INSTALL)/include/city.h
protobuf: $(THIRDPARTY_INSTALL)/include/protobuf
$(THIRDPARTY_INSTALL)/include/boost:
cd $(BOOST_ROOT);./bootstrap.sh --prefix=$(THIRDPARTY_INSTALL); ./b2 link=static runtime-link=static -j$(PARALLEL) --without-mpi --without-graph --without-graph_parallel --without-python cxxflags="-std=c++17 -g -fPIC" install
echo "boost finish"
$(THIRDPARTY_INSTALL)/include/city.h:
cd $(CITY_HASH);rm -rf build;mkdir build;cd build;cmake .. ;make -j $(PARALLE);cp libcityhash.a $(THIRDPARTY_INSTALL)/lib;cp ../include/* $(THIRDPARTY_INSTALL)/include
echo "cityhash finish"
$(THIRDPARTY_INSTALL)/include/protobuf:
echo "============== please install protobuf to thirdparty/install manually ================="