forked from Xuhpclab/jxperf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (20 loc) · 966 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
.PHONY: thirdparty clean
CURRENT_DIR=$(shell pwd)
thirdparty:
git submodule update --init --recursive
cd thirdparty/watchpoint-lib && make install PREFIX=$(CURRENT_DIR)/build/thirdparty
cd thirdparty/xed && ./mfile.py --debug --shared --prefix=$(CURRENT_DIR)/build/thirdparty install
cd thirdparty/libpfm-4.13.0 && make PREFIX=$(CURRENT_DIR)/build/thirdparty install
cd thirdparty/boost && sh ./bootstrap.sh --prefix=$(CURRENT_DIR)/build/thirdparty --with-libraries="filesystem" cxxflags="-std=c++11" && ./b2 -j 4 && ./b2 filesystem install
#cd thirdparty/bintrees && python setup.py install --user
cd thirdparty/kissmalloc && ./build.sh && mv libkissmalloc.so* $(CURRENT_DIR)/build/thirdparty/lib
mkdir $(CURRENT_DIR)/build/preload
cd preload && make
cd src && make
clean:
make -C src clean
make -C preload clean
make -C thirdparty/libpfm-4.13.0 clean
cd thirdparty/xed && ./mfile.py clean
make -C thirdparty/watchpoint-lib clean
rm -rf build