2014-03-03 15:07:58 -07:00
|
|
|
all: all-release
|
|
|
|
|
|
|
|
cmake-debug:
|
|
|
|
mkdir -p build/debug
|
|
|
|
cd build/debug && cmake -D CMAKE_BUILD_TYPE=Debug ../..
|
|
|
|
|
|
|
|
build-debug: cmake-debug
|
|
|
|
cd build/debug && $(MAKE)
|
|
|
|
|
|
|
|
test-debug: build-debug
|
2014-12-01 11:00:22 -07:00
|
|
|
mkdir -p build/debug
|
|
|
|
cd build/debug && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Debug ../.. && $(MAKE) test
|
2014-03-03 15:07:58 -07:00
|
|
|
|
2014-12-01 11:00:22 -07:00
|
|
|
all-debug:
|
|
|
|
mkdir -p build/debug
|
|
|
|
cd build/debug && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Debug ../.. && $(MAKE)
|
2014-03-03 15:07:58 -07:00
|
|
|
|
|
|
|
cmake-release:
|
|
|
|
mkdir -p build/release
|
|
|
|
cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../..
|
|
|
|
|
|
|
|
build-release: cmake-release
|
|
|
|
cd build/release && $(MAKE)
|
|
|
|
|
|
|
|
test-release: build-release
|
2014-12-01 11:00:22 -07:00
|
|
|
mkdir -p build/release
|
|
|
|
cd build/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE) test
|
2014-03-03 15:07:58 -07:00
|
|
|
|
2014-12-01 11:00:22 -07:00
|
|
|
all-release:
|
|
|
|
mkdir -p build/release
|
|
|
|
cd build/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE)
|
2014-03-03 15:07:58 -07:00
|
|
|
|
2014-09-15 00:13:26 -06:00
|
|
|
release-static:
|
|
|
|
mkdir -p build/release
|
2014-12-10 11:04:08 -07:00
|
|
|
cd build/release && cmake -D STATIC=ON -D ARCH="x86-64" -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE)
|
2014-09-15 00:13:26 -06:00
|
|
|
|
2014-03-03 15:07:58 -07:00
|
|
|
clean:
|
2014-04-30 11:07:00 -06:00
|
|
|
@echo "WARNING: Back-up your wallet if it exists within ./build!" ; \
|
|
|
|
read -r -p "This will destroy the build directory, continue (y/N)?: " CONTINUE; \
|
|
|
|
[ $$CONTINUE = "y" ] || [ $$CONTINUE = "Y" ] || (echo "Exiting."; exit 1;)
|
2014-03-03 15:07:58 -07:00
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags -R --sort=1 --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ src contrib tests/gtest
|
|
|
|
|
|
|
|
.PHONY: all cmake-debug build-debug test-debug all-debug cmake-release build-release test-release all-release clean tags
|