feather/Makefile

45 lines
1.8 KiB
Makefile
Raw Normal View History

2021-07-10 12:01:29 +00:00
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2020-2021, The Monero Project.
CMAKEFLAGS = \
-DARCH=x86_64 \
-DBUILD_64=On \
-DBUILD_TESTS=Off \
2021-05-02 18:22:38 +00:00
-DLOCALMONERO=On \
2020-12-11 13:36:08 +00:00
-DXMRIG=On \
2021-05-02 18:22:38 +00:00
-DCHECK_UPDATES=Off \
2020-12-11 13:36:08 +00:00
-DTOR_BIN=Off \
-DCMAKE_CXX_STANDARD=11 \
-DCMAKE_VERBOSE_MAKEFILE=On \
-DMANUAL_SUBMODULES=1 \
-DSTATIC=On \
2021-07-01 21:00:47 +00:00
-DUSE_DEVICE_TREZOR=On \
$(CMAKEFLAGS_EXTRA)
release-static: CMAKEFLAGS += -DBUILD_TAG="linux-x64"
2021-07-10 12:01:29 +00:00
release-static: CMAKEFLAGS += -DTOR_BIN=$(or ${TOR_BIN}, Off)
release-static: CMAKEFLAGS += -DTOR_VERSION=$(or ${TOR_VERSION}, Off)
2021-05-02 18:22:38 +00:00
release-static: CMAKEFLAGS += -DCHECK_UPDATES=$(or ${CHECK_UPDATES}, Off)
2021-06-25 14:14:49 +00:00
release-static: CMAKEFLAGS += -DWITH_SCANNER=$(or ${WITH_SCANNER}, Off)
release-static: CMAKEFLAGS += -DCMAKE_BUILD_TYPE=Release
2021-07-10 12:01:29 +00:00
release-static: CMAKEFLAGS += -DREPRODUCIBLE=$(or ${SOURCE_DATE_EPOCH}, Off)
release-static:
cmake -Bbuild $(CMAKEFLAGS)
$(MAKE) -Cbuild
2021-01-10 23:40:17 +00:00
depends:
mkdir -p build/$(target)/release
2021-07-10 13:51:51 +00:00
cd build/$(target)/release && cmake -D STATIC=ON -DREPRODUCIBLE=$(or ${SOURCE_DATE_EPOCH},OFF) -DTOR_VERSION=$(or ${TOR_VERSION}, OFF) -DTOR_BIN=$(or ${TOR_BIN},OFF) -DCHECK_UPDATES=$(or ${CHECK_UPDATES}, OFF) -DWITH_SCANNER=$(or ${WITH_SCANNER}, Off) -D DEV_MODE=$(or ${DEV_MODE},OFF) -D BUILD_TAG=$(tag) -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$(root)/$(target)/share/toolchain.cmake ../../.. && $(MAKE)
2021-01-10 23:40:17 +00:00
mac-release: CMAKEFLAGS += -DSTATIC=Off
2021-07-10 12:01:29 +00:00
mac-release: CMAKEFLAGS += -DTOR_BIN=$(or ${TOR_BIN}, Off)
mac-release: CMAKEFLAGS += -DTOR_VERSION=$(or ${TOR_VERSION}, Off)
2021-05-02 18:22:38 +00:00
mac-release: CMAKEFLAGS += -DCHECK_UPDATES=$(or ${CHECK_UPDATES}, Off)
2021-06-27 00:41:30 +00:00
mac-release: CMAKEFLAGS += -DWITH_SCANNER=$(or ${WITH_SCANNER}, On)
mac-release: CMAKEFLAGS += -DBUILD_TAG="mac-x64"
mac-release: CMAKEFLAGS += -DCMAKE_BUILD_TYPE=Release
mac-release:
cmake -Bbuild $(CMAKEFLAGS)
$(MAKE) -Cbuild
2021-01-10 23:40:17 +00:00
$(MAKE) -Cbuild deploy