2015-01-27 07:43:15 +00:00
|
|
|
all: release-all
|
2014-03-03 22:07:58 +00:00
|
|
|
|
|
|
|
cmake-debug:
|
|
|
|
mkdir -p build/debug
|
|
|
|
cd build/debug && cmake -D CMAKE_BUILD_TYPE=Debug ../..
|
|
|
|
|
2015-01-27 07:43:15 +00:00
|
|
|
debug: cmake-debug
|
2014-03-03 22:07:58 +00:00
|
|
|
cd build/debug && $(MAKE)
|
|
|
|
|
2015-01-27 07:43:15 +00:00
|
|
|
debug-test: debug
|
2014-12-01 18:00:22 +00:00
|
|
|
mkdir -p build/debug
|
|
|
|
cd build/debug && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Debug ../.. && $(MAKE) test
|
2014-03-03 22:07:58 +00:00
|
|
|
|
2015-01-27 07:43:15 +00:00
|
|
|
debug-all:
|
2014-12-01 18:00:22 +00:00
|
|
|
mkdir -p build/debug
|
|
|
|
cd build/debug && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Debug ../.. && $(MAKE)
|
2014-03-03 22:07:58 +00:00
|
|
|
|
|
|
|
cmake-release:
|
|
|
|
mkdir -p build/release
|
|
|
|
cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../..
|
|
|
|
|
2015-01-27 07:43:15 +00:00
|
|
|
release: cmake-release
|
2014-03-03 22:07:58 +00:00
|
|
|
cd build/release && $(MAKE)
|
|
|
|
|
2015-01-27 07:43:15 +00:00
|
|
|
release-test: release
|
2014-12-01 18:00:22 +00:00
|
|
|
mkdir -p build/release
|
|
|
|
cd build/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE) test
|
2014-03-03 22:07:58 +00:00
|
|
|
|
2015-01-27 07:43:15 +00:00
|
|
|
release-all:
|
2014-12-01 18:00:22 +00:00
|
|
|
mkdir -p build/release
|
|
|
|
cd build/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE)
|
2014-03-03 22:07:58 +00:00
|
|
|
|
2015-04-06 11:05:30 +00:00
|
|
|
release-static: release-static-64
|
|
|
|
|
|
|
|
release-static-64:
|
|
|
|
mkdir -p build/release
|
|
|
|
cd build/release && cmake -D STATIC=ON -D ARCH="x86-64" -D BUILD_64=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE)
|
|
|
|
|
|
|
|
release-static-32:
|
|
|
|
mkdir -p build/release
|
|
|
|
cd build/release && cmake -D STATIC=ON -D ARCH="i686" -D BUILD_64=OFF -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE)
|
2015-04-06 12:00:09 +00:00
|
|
|
|
|
|
|
release-static-arm6:
|
|
|
|
mkdir -p build/release
|
2015-04-06 12:14:45 +00:00
|
|
|
cd build/release && cmake -D STATIC=ON -D ARCH="armv6zk" -D BUILD_64=OFF -D NO_AES=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE)
|
2015-04-06 11:05:30 +00:00
|
|
|
|
|
|
|
release-static-win64:
|
|
|
|
mkdir -p build/release
|
|
|
|
cmake -G "MSYS Makefiles" -D STATIC=ON -D ARCH="x86-64" -D BUILD_64=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=../cmake/64-bit-toolchain.cmake -D MSYS2_FOLDER=c:/msys64 ../.. && $(MAKE)
|
|
|
|
|
|
|
|
release-static-win32:
|
2014-09-15 06:13:26 +00:00
|
|
|
mkdir -p build/release
|
2015-04-06 11:05:30 +00:00
|
|
|
cmake -G "MSYS Makefiles" -D STATIC=ON -D ARCH="i686" -D BUILD_64=OFF -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=../cmake/32-bit-toolchain.cmake -D MSYS2_FOLDER=c:/msys32 ../.. && $(MAKE)
|
2014-09-15 06:13:26 +00:00
|
|
|
|
2014-03-03 22:07:58 +00:00
|
|
|
clean:
|
2014-04-30 17:07:00 +00: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 22:07:58 +00:00
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags -R --sort=1 --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ src contrib tests/gtest
|
|
|
|
|
2015-01-27 07:43:15 +00:00
|
|
|
.PHONY: all cmake-debug debug debug-test debug-all cmake-release release release-test release-all clean tags
|