monero/Makefile

47 lines
1.4 KiB
Makefile
Raw Normal View History

all: release-all
2014-03-04 00:07:58 +02:00
cmake-debug:
mkdir -p build/debug
cd build/debug && cmake -D CMAKE_BUILD_TYPE=Debug ../..
debug: cmake-debug
2014-03-04 00:07:58 +02:00
cd build/debug && $(MAKE)
debug-test: debug
mkdir -p build/debug
cd build/debug && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Debug ../.. && $(MAKE) test
2014-03-04 00:07:58 +02:00
debug-all:
mkdir -p build/debug
cd build/debug && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Debug ../.. && $(MAKE)
2014-03-04 00:07:58 +02:00
cmake-release:
mkdir -p build/release
cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../..
release: cmake-release
2014-03-04 00:07:58 +02:00
cd build/release && $(MAKE)
release-test: release
mkdir -p build/release
cd build/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE) test
2014-03-04 00:07:58 +02:00
release-all:
mkdir -p build/release
cd build/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE)
2014-03-04 00:07:58 +02:00
2014-09-15 09:13:26 +03:00
release-static:
mkdir -p build/release
cd build/release && cmake -D STATIC=ON -D ARCH="x86-64" -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE)
2014-09-15 09:13:26 +03:00
2014-03-04 00:07:58 +02:00
clean:
@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-04 00:07:58 +02: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 debug debug-test debug-all cmake-release release release-test release-all clean tags