2023-12-07 12:08:49 +00:00
# Copyright (c) 2018-2023 Status Research & Development GmbH. Licensed under
2019-01-23 12:59:26 +00:00
# either of:
# - Apache License, version 2.0
# - MIT license
# at your option. This file may not be copied, modified, or distributed except
# according to those terms.
2021-04-09 07:26:06 +00:00
SHELL := bash # the shell used internally by "make"
2019-09-10 00:48:34 +00:00
2019-08-20 22:03:15 +00:00
# used inside the included makefiles
BUILD_SYSTEM_DIR := vendor/nimbus-build-system
2019-03-26 16:39:57 +00:00
2021-04-09 07:26:06 +00:00
LINK_PCRE := 0
2022-08-16 10:06:45 +00:00
EXCLUDED_NIM_PACKAGES := \
vendor/nimbus-eth2/vendor/nim-bearssl \
vendor/nimbus-eth2/vendor/nim-blscurve \
vendor/nimbus-eth2/vendor/nim-bearssl \
vendor/nimbus-eth2/vendor/nim-blscurve \
vendor/nimbus-eth2/vendor/nimbus-build-system \
vendor/nimbus-eth2/vendor/nim-chronicles \
vendor/nimbus-eth2/vendor/nim-chronos \
vendor/nimbus-eth2/vendor/nim-confutils \
vendor/nimbus-eth2/vendor/nimcrypto \
vendor/nimbus-eth2/vendor/nim-eth \
vendor/nimbus-eth2/vendor/nim-faststreams \
vendor/nimbus-eth2/vendor/nim-http-utils \
vendor/nimbus-eth2/vendor/nim-json-rpc \
vendor/nimbus-eth2/vendor/nim-json-serialization\
vendor/nimbus-eth2/vendor/nim-libbacktrace \
vendor/nimbus-eth2/vendor/nim-metrics \
vendor/nimbus-eth2/vendor/nim-nat-traversal \
2023-07-05 14:00:59 +00:00
vendor/nimbus-eth2/vendor/nim-results \
2022-08-16 10:06:45 +00:00
vendor/nimbus-eth2/vendor/nim-secp256k1 \
vendor/nimbus-eth2/vendor/nim-serialization \
vendor/nimbus-eth2/vendor/nim-snappy \
vendor/nimbus-eth2/vendor/nim-sqlite3-abi \
vendor/nimbus-eth2/vendor/nim-ssz-serialization \
vendor/nimbus-eth2/vendor/nim-stew \
vendor/nimbus-eth2/vendor/nim-stint \
vendor/nimbus-eth2/vendor/nim-testutils \
vendor/nimbus-eth2/vendor/nim-toml-serialization\
vendor/nimbus-eth2/vendor/nim-unittest2 \
vendor/nimbus-eth2/vendor/nim-web3 \
vendor/nimbus-eth2/vendor/nim-websock \
2022-09-14 13:10:05 +00:00
vendor/nimbus-eth2/vendor/nim-zlib \
vendor/nimbus-eth2/vendor/nim-taskpools \
vendor/nimbus-eth2/vendor/nim-normalize \
vendor/nimbus-eth2/vendor/nim-unicodedb \
vendor/nimbus-eth2/vendor/nim-libp2p \
vendor/nimbus-eth2/vendor/nim-presto \
vendor/nimbus-eth2/vendor/nim-zxcvbn \
2023-06-04 06:00:50 +00:00
vendor/nimbus-eth2/vendor/nim-kzg4844 \
2022-09-14 13:10:05 +00:00
vendor/nimbus-eth2/vendor/nimbus-security-resources
2022-08-16 10:06:45 +00:00
2020-04-18 12:56:40 +00:00
# we don't want an error here, so we can handle things later, in the ".DEFAULT" target
2019-08-20 22:03:15 +00:00
- i n c l u d e $( BUILD_SYSTEM_DIR ) / m a k e f i l e s / v a r i a b l e s . m k
2018-12-24 16:03:27 +00:00
2019-02-27 23:07:23 +00:00
# debugging tools + testing tools
2020-02-13 19:18:27 +00:00
TOOLS := \
2020-07-21 04:28:03 +00:00
test_tools_build
2020-02-13 19:18:27 +00:00
TOOLS_DIRS := \
2020-05-07 15:32:44 +00:00
tests
2019-02-27 23:07:23 +00:00
# comma-separated values for the "clean" target
TOOLS_CSV := $( subst $( SPACE) ,$( COMMA) ,$( TOOLS) )
2020-02-13 19:18:27 +00:00
2023-07-05 14:44:18 +00:00
# Fluffy debugging tools + testing tools
FLUFFY_TOOLS := \
2023-12-12 20:08:58 +00:00
portal_bridge \
2023-07-25 18:53:31 +00:00
beacon_lc_bridge \
2024-01-09 09:32:29 +00:00
state_bridge \
2023-07-05 14:44:18 +00:00
eth_data_exporter \
content_verifier \
blockwalk \
2023-12-07 12:08:49 +00:00
portalcli \
fcli_db
2023-07-05 14:44:18 +00:00
FLUFFY_TOOLS_DIRS := \
2023-07-25 18:53:31 +00:00
fluffy/tools/beacon_lc_bridge \
2023-12-12 20:08:58 +00:00
fluffy/tools/portal_bridge \
2024-01-09 09:32:29 +00:00
fluffy/tools/state_bridge \
2023-07-05 14:44:18 +00:00
fluffy/tools
# comma-separated values for the "clean" target
FLUFFY_TOOLS_CSV := $( subst $( SPACE) ,$( COMMA) ,$( FLUFFY_TOOLS) )
2020-02-13 19:18:27 +00:00
.PHONY : \
all \
$( TOOLS) \
2023-07-05 14:44:18 +00:00
$( FLUFFY_TOOLS) \
2020-02-13 19:18:27 +00:00
deps \
update \
nimbus \
2021-06-28 15:53:13 +00:00
fluffy \
2022-11-23 16:11:38 +00:00
nimbus_verified_proxy \
2020-02-13 19:18:27 +00:00
test \
test-reproducibility \
clean \
libnimbus.so \
libnimbus.a \
2022-03-27 11:21:15 +00:00
libbacktrace \
dist-amd64 \
dist-arm64 \
dist-arm \
dist-win64 \
dist-macos \
dist-macos-arm64 \
dist
2018-12-24 16:03:27 +00:00
2020-04-18 12:56:40 +00:00
i f e q ( $( NIM_PARAMS ) , )
# "variables.mk" was not included, so we update the submodules.
2023-09-19 00:47:58 +00:00
# selectively download nimbus-eth2 submodules because we don't need all of it's modules
# also holesky already exceeds github LFS quota
GIT_SUBMODULE_UPDATE := git -c submodule."vendor/nimbus-eth2" .update= none submodule update --init --recursive; \
git submodule update vendor/nimbus-eth2; \
cd vendor/nimbus-eth2; \
git submodule update --init vendor/eth2-networks; \
git submodule update --init vendor/holesky; \
git submodule update --init vendor/sepolia; \
git submodule update --init vendor/gnosis-chain-configs; \
git submodule update --init --recursive vendor/nim-kzg4844; \
cd ../..
2020-04-18 12:56:40 +00:00
.DEFAULT :
+@ echo -e " Git submodules not found. Running ' $( GIT_SUBMODULE_UPDATE) '.\n " ; \
$( GIT_SUBMODULE_UPDATE) ; \
echo
# Now that the included *.mk files appeared, and are newer than this file, Make will restart itself:
# https://www.gnu.org/software/make/manual/make.html#Remaking-Makefiles
#
# After restarting, it will execute its original goal, so we don't have to start a child Make here
# with "$(MAKE) $(MAKECMDGOALS)". Isn't hidden control flow great?
e l s e # "variables.mk" was included. Business as usual until the end of this file.
2018-12-24 16:03:27 +00:00
# default target, because it's the first one that doesn't start with '.'
2020-04-18 12:56:40 +00:00
all : | $( TOOLS ) nimbus
2019-08-20 22:03:15 +00:00
# must be included after the default target
- i n c l u d e $( BUILD_SYSTEM_DIR ) / m a k e f i l e s / t a r g e t s . m k
2021-01-19 09:02:24 +00:00
# default: use blst
USE_MIRACL := 0
# default: use nim native evm
ENABLE_EVMC := 0
2022-03-27 11:21:15 +00:00
# "-d:release" cannot be added to config.nims
2023-03-02 09:57:58 +00:00
2022-03-27 11:21:15 +00:00
NIM_PARAMS += -d:release
2023-03-02 09:57:58 +00:00
i f e q ( $( BOEHM_GC ) , 1 )
NIM_PARAMS += --mm:boehm
e n d i f
2022-03-27 11:21:15 +00:00
2022-12-08 06:18:43 +00:00
T8N_PARAMS := -d:chronicles_default_output_device= stderr
2020-04-18 12:56:40 +00:00
i f e q ( $( USE_LIBBACKTRACE ) , 0 )
2022-03-27 11:21:15 +00:00
NIM_PARAMS += -d:disable_libbacktrace
e n d i f
deps : | deps -common nat -libs nimbus .nims
i f n e q ( $( USE_LIBBACKTRACE ) , 0 )
deps : | libbacktrace
2020-04-18 12:56:40 +00:00
e n d i f
2019-08-20 22:03:15 +00:00
2021-01-19 02:24:39 +00:00
i f n e q ( $( USE_MIRACL ) , 0 )
2022-03-27 11:21:15 +00:00
NIM_PARAMS += -d:BLS_FORCE_BACKEND= miracl
2021-01-19 02:24:39 +00:00
e n d i f
2021-01-19 09:02:24 +00:00
i f n e q ( $( ENABLE_EVMC ) , 0 )
2022-03-27 11:21:15 +00:00
NIM_PARAMS += -d:evmc_enabled
2022-12-08 06:18:43 +00:00
T8N_PARAMS := -d:chronicles_enabled= off
2021-01-19 09:02:24 +00:00
e n d i f
2022-09-26 04:56:54 +00:00
# disabled by default, enable with ENABLE_VMLOWMEM=1
i f n e q ( $( if $ ( ENABLE_VMLOWMEM ) ,$ ( ENABLE_VMLOWMEM ) ,0) , 0 )
NIM_PARAMS += -d:lowmem:1
2020-04-15 22:21:58 +00:00
e n d i f
2019-01-23 12:59:26 +00:00
2022-03-29 09:19:32 +00:00
# chunked messages enabled by default, use ENABLE_CHUNKED_RLPX=0 to disable
i f n e q ( $( if $ ( ENABLE_CHUNKED_RLPX ) ,$ ( ENABLE_CHUNKED_RLPX ) ,1) , 0 )
NIM_PARAMS := $( NIM_PARAMS) -d:chunked_rlpx_enabled
e n d i f
2022-06-16 08:58:50 +00:00
# legacy wire protocol enabled by default, use ENABLE_LEGACY_ETH66=0 to disable
i f n e q ( $( if $ ( ENABLE_LEGACY_ETH 66) ,$ ( ENABLE_LEGACY_ETH 66) ,1) , 0 )
NIM_PARAMS := $( NIM_PARAMS) -d:legacy_eth66_enabled
e n d i f
2019-08-20 22:03:15 +00:00
#- deletes and recreates "nimbus.nims" which on Windows is a copy instead of a proper symlink
update : | update -common
rm -rf nimbus.nims && \
2020-04-15 22:21:58 +00:00
$( MAKE) nimbus.nims $( HANDLE_OUTPUT)
2019-03-29 17:08:39 +00:00
2023-09-19 00:47:58 +00:00
update-from-ci : | sanity -checks update -test
rm -rf nimbus.nims && \
$( MAKE) nimbus.nims $( HANDLE_OUTPUT)
+ " $( MAKE) " --no-print-directory deps-common
2019-02-27 23:07:23 +00:00
# builds the tools, wherever they are
2019-09-04 17:14:54 +00:00
$(TOOLS) : | build deps
2019-03-26 16:39:57 +00:00
for D in $( TOOLS_DIRS) ; do [ -e " $$ {D}/ $@ .nim " ] && TOOL_DIR = " $$ {D} " && break; done && \
2019-03-29 17:08:39 +00:00
echo -e $( BUILD_MSG) " build/ $@ " && \
$( ENV_SCRIPT) nim c $( NIM_PARAMS) -o:build/$@ " $$ {TOOL_DIR}/ $@ .nim "
2018-12-24 16:03:27 +00:00
2019-02-27 23:07:23 +00:00
# a phony target, because teaching `make` how to do conditional recompilation of Nim projects is too complicated
2019-09-04 17:14:54 +00:00
nimbus : | build deps
2019-03-29 17:08:39 +00:00
echo -e $( BUILD_MSG) " build/ $@ " && \
2022-03-27 11:21:15 +00:00
$( ENV_SCRIPT) nim c $( NIM_PARAMS) -d:chronicles_log_level= TRACE -o:build/$@ " nimbus/ $@ .nim "
2018-12-24 16:03:27 +00:00
2019-02-16 21:45:19 +00:00
# symlink
nimbus.nims :
ln -s nimbus.nimble $@
2020-02-09 16:31:37 +00:00
# nim-libbacktrace
libbacktrace :
2020-04-18 12:56:40 +00:00
+ $( MAKE) -C vendor/nim-libbacktrace --no-print-directory BUILD_CXX_LIB = 0
2020-02-09 16:31:37 +00:00
2021-07-09 11:34:16 +00:00
# builds and runs the nimbus test suite
2019-09-04 17:14:54 +00:00
test : | build deps
2022-04-06 05:28:19 +00:00
$( ENV_SCRIPT) nim test_rocksdb $( NIM_PARAMS) nimbus.nims
2019-02-16 21:23:17 +00:00
$( ENV_SCRIPT) nim test $( NIM_PARAMS) nimbus.nims
Added basic async capabilities for vm2. (#1260)
* Added basic async capabilities for vm2.
This is a whole new Git branch, not the same one as last time
(https://github.com/status-im/nimbus-eth1/pull/1250) - there wasn't
much worth salvaging. Main differences:
I didn't do the "each opcode has to specify an async handler" junk
that I put in last time. Instead, in oph_memory.nim you can see
sloadOp calling asyncChainTo and passing in an async operation.
That async operation is then run by the execCallOrCreate (or
asyncExecCallOrCreate) code in interpreter_dispatch.nim.
In the test code, the (previously existing) macro called "assembler"
now allows you to add a section called "initialStorage", specifying
fake data to be used by the EVM computation run by that test. (In
the long run we'll obviously want to write tests that for-real use
the JSON-RPC API to asynchronously fetch data; for now, this was
just an expedient way to write a basic unit test that exercises the
async-EVM code pathway.)
There's also a new macro called "concurrentAssemblers" that allows
you to write a test that runs multiple assemblers concurrently (and
then waits for them all to finish). There's one example test using
this, in test_op_memory_lazy.nim, though you can't actually see it
doing so unless you uncomment some echo statements in
async_operations.nim (in which case you can see the two concurrently
running EVM computations each printing out what they're doing, and
you'll see that they interleave).
A question: is it possible to make EVMC work asynchronously? (For
now, this code compiles and "make test" passes even if ENABLE_EVMC
is turned on, but it doesn't actually work asynchronously, it just
falls back on doing the usual synchronous EVMC thing. See
FIXME-asyncAndEvmc.)
* Moved the AsyncOperationFactory to the BaseVMState object.
* Made the AsyncOperationFactory into a table of fn pointers.
Also ditched the plain-data Vm2AsyncOperation type; it wasn't
really serving much purpose. Instead, the pendingAsyncOperation
field directly contains the Future.
* Removed the hasStorage idea.
It's not the right solution to the "how do we know whether we
still need to fetch the storage value or not?" problem. I
haven't implemented the right solution yet, but at least
we're better off not putting in a wrong one.
* Added/modified/removed some comments.
(Based on feedback on the PR.)
* Removed the waitFor from execCallOrCreate.
There was some back-and-forth in the PR regarding whether nested
waitFor calls are acceptable:
https://github.com/status-im/nimbus-eth1/pull/1260#discussion_r998587449
The eventual decision was to just change the waitFor to a doAssert
(since we probably won't want this extra functionality when running
synchronously anyway) to make sure that the Future is already
finished.
2022-11-01 15:35:46 +00:00
# builds and runs an EVM-related subset of the nimbus test suite
test-evm : | build deps
$( ENV_SCRIPT) nim test_evm $( NIM_PARAMS) nimbus.nims
2022-03-27 11:21:15 +00:00
# Primitive reproducibility test.
#
# On some platforms, with some GCC versions, it may not be possible to get a
# deterministic order for debugging info sections - even with
# "-frandom-seed=...". Striping the binaries should make them identical, though.
2019-02-16 21:23:17 +00:00
test-reproducibility :
+ [ -e build/nimbus ] || $( MAKE) V = 0 nimbus; \
2019-02-17 16:42:04 +00:00
MD5SUM1 = $$ ( $( MD5SUM) build/nimbus | cut -d ' ' -f 1) && \
rm -rf nimcache/*/nimbus && \
$( MAKE) V = 0 nimbus && \
MD5SUM2 = $$ ( $( MD5SUM) build/nimbus | cut -d ' ' -f 1) && \
2019-02-17 18:01:40 +00:00
[ " $$ MD5SUM1 " = " $$ MD5SUM2 " ] && echo -e "\e[92mSuccess: identical binaries.\e[39m" || \
{ echo -e "\e[91mFailure: the binary changed between builds.\e[39m" ; exit 1; }
2018-12-24 16:03:27 +00:00
2021-07-09 11:34:16 +00:00
# Fluffy related targets
2022-10-10 13:49:51 +00:00
2021-07-09 11:34:16 +00:00
# builds the fluffy client
fluffy : | build deps
echo -e $( BUILD_MSG) " build/ $@ " && \
2023-07-21 14:30:22 +00:00
$( ENV_SCRIPT) nim c $( NIM_PARAMS) -d:chronicles_log_level= TRACE -o:build/$@ " fluffy/ $@ .nim "
2021-07-09 11:34:16 +00:00
2021-07-07 09:04:18 +00:00
# primitive reproducibility test
2021-07-09 11:34:16 +00:00
fluffy-test-reproducibility :
2021-07-07 09:04:18 +00:00
+ [ -e build/fluffy ] || $( MAKE) V = 0 fluffy; \
MD5SUM1 = $$ ( $( MD5SUM) build/fluffy | cut -d ' ' -f 1) && \
rm -rf nimcache/*/fluffy && \
$( MAKE) V = 0 fluffy && \
MD5SUM2 = $$ ( $( MD5SUM) build/fluffy | cut -d ' ' -f 1) && \
[ " $$ MD5SUM1 " = " $$ MD5SUM2 " ] && echo -e "\e[92mSuccess: identical binaries.\e[39m" || \
{ echo -e "\e[91mFailure: the binary changed between builds.\e[39m" ; exit 1; }
2023-07-21 14:30:22 +00:00
# fluffy tests
all_fluffy_portal_spec_tests : | build deps
echo -e $( BUILD_MSG) " build/ $@ " && \
$( ENV_SCRIPT) nim c -r $( NIM_PARAMS) -d:chronicles_log_level= ERROR -d:nimbus_db_backend= sqlite -o:build/$@ " fluffy/tests/portal_spec_tests/mainnet/ $@ .nim "
all_fluffy_tests : | build deps
echo -e $( BUILD_MSG) " build/ $@ " && \
$( ENV_SCRIPT) nim c -r $( NIM_PARAMS) -d:chronicles_log_level= ERROR -d:nimbus_db_backend= sqlite -d:mergeBlockNumber:38130 -o:build/$@ " fluffy/tests/ $@ .nim "
2021-07-09 11:34:16 +00:00
# builds and runs the fluffy test suite
2023-07-21 14:30:22 +00:00
fluffy-test : | all_fluffy_portal_spec_tests all_fluffy_tests
2021-07-09 11:34:16 +00:00
2023-07-05 14:44:18 +00:00
# builds the fluffy tools, wherever they are
$(FLUFFY_TOOLS) : | build deps
for D in $( FLUFFY_TOOLS_DIRS) ; do [ -e " $$ {D}/ $@ .nim " ] && TOOL_DIR = " $$ {D} " && break; done && \
echo -e $( BUILD_MSG) " build/ $@ " && \
$( ENV_SCRIPT) nim c $( NIM_PARAMS) -d:chronicles_log_level= TRACE -o:build/$@ " $$ {TOOL_DIR}/ $@ .nim "
# builds all the fluffy tools
fluffy-tools : | $( FLUFFY_TOOLS )
2021-07-09 11:34:16 +00:00
2023-07-21 14:30:22 +00:00
# Build fluffy test_portal_testnet
test_portal_testnet : | build deps
echo -e $( BUILD_MSG) " build/ $@ " && \
$( ENV_SCRIPT) nim c $( NIM_PARAMS) -o:build/$@ " fluffy/scripts/ $@ .nim "
2023-07-05 14:44:18 +00:00
# builds the uTP test app
2022-01-19 15:06:23 +00:00
utp-test-app : | build deps
$( ENV_SCRIPT) nim utp_test_app $( NIM_PARAMS) nimbus.nims
# builds and runs the utp integration test suite
utp-test : | build deps
$( ENV_SCRIPT) nim utp_test $( NIM_PARAMS) nimbus.nims
2022-11-23 16:11:38 +00:00
# Nimbus Verified Proxy related targets
2022-10-10 13:49:51 +00:00
2022-11-23 16:11:38 +00:00
# Builds the nimbus_verified_proxy
nimbus_verified_proxy : | build deps
2022-10-10 13:49:51 +00:00
echo -e $( BUILD_MSG) " build/ $@ " && \
2022-11-23 16:11:38 +00:00
$( ENV_SCRIPT) nim nimbus_verified_proxy $( NIM_PARAMS) nimbus.nims
2021-12-03 08:51:25 +00:00
2022-11-23 16:11:38 +00:00
# builds and runs the nimbus_verified_proxy test suite
nimbus-verified-proxy-test : | build deps
$( ENV_SCRIPT) nim nimbus_verified_proxy_test $( NIM_PARAMS) nimbus.nims
2022-09-06 16:14:50 +00:00
2022-10-15 15:58:23 +00:00
# builds transition tool
t8n : | build deps
2022-12-08 06:18:43 +00:00
$( ENV_SCRIPT) nim c $( NIM_PARAMS) $( T8N_PARAMS) " tools/t8n/ $@ .nim "
2022-10-15 15:58:23 +00:00
# builds and runs transition tool test suite
t8n_test : | build deps t 8n
$( ENV_SCRIPT) nim c -r $( NIM_PARAMS) -d:chronicles_default_output_device= stderr " tools/t8n/ $@ .nim "
2022-10-26 15:46:13 +00:00
# builds evm state test tool
evmstate : | build deps
2022-11-17 08:27:26 +00:00
$( ENV_SCRIPT) nim c $( NIM_PARAMS) " tools/evmstate/ $@ .nim "
2022-10-26 15:46:13 +00:00
# builds and runs evm state tool test suite
evmstate_test : | build deps evmstate
$( ENV_SCRIPT) nim c -r $( NIM_PARAMS) " tools/evmstate/ $@ .nim "
2022-12-10 13:38:47 +00:00
# builds txparse tool
txparse : | build deps
$( ENV_SCRIPT) nim c $( NIM_PARAMS) " tools/txparse/ $@ .nim "
2018-12-24 16:03:27 +00:00
# usual cleaning
2019-08-20 22:03:15 +00:00
clean : | clean -common
2023-12-07 12:08:49 +00:00
rm -rf build/{ nimbus,fluffy,nimbus_verified_proxy,$( TOOLS_CSV) ,$( FLUFFY_TOOLS_CSV) ,all_tests,test_kvstore_rocksdb,test_rpc,all_fluffy_tests,all_fluffy_portal_spec_tests,test_portal_testnet,utp_test_app,utp_test,*.dSYM}
2022-10-15 15:58:23 +00:00
rm -rf tools/t8n/{ t8n,t8n_test}
2022-10-26 15:46:13 +00:00
rm -rf tools/evmstate/{ evmstate,evmstate_test}
2020-04-15 22:21:58 +00:00
i f n e q ( $( USE_LIBBACKTRACE ) , 0 )
2020-02-09 16:31:37 +00:00
+ $( MAKE) -C vendor/nim-libbacktrace clean $( HANDLE_OUTPUT)
2020-04-15 22:21:58 +00:00
e n d i f
2019-02-26 22:13:31 +00:00
Whisper: Remove C and Go wrappers and Nimbus as a library
Remove the C and Go example wrappers that call Nimbus as a library, by removing
the entire `wrappers/` directory. They are removed because they only wrap
Whisper protocol support, which has been removed as it is obsolete.
The only thing wrapped were Whisper functions, even though there were separate
`go_wrapper_example` and `go_wrapper_whisper_example` programs. The wrappers
don't build without Whisper in Nimbus, and without it, there isn't enough left
for them to be useful examples.
Also remove support for building the whole of Nimbus as a library, because
there is nothing left using it. These targets are gone from the Makefile:
- `wrappers`
- `wrappers-static`
- `libnimbus.so`
- `libnimbus.a`
The code isn't really gone, because it remains available in Git history. It
may be useful someday, so a comment has been left in the Makefile for future
generations:
> This note is kept so that anyone wanting to build Nimbus as a library or call
> from C or Go will know it has been done before. The previous working version
> can be found in Git history. Look for the `nimbus-eth1` commit that adds
> this comment and removes `wrappers/*`.
Also worth a note, the library support was not tested on Windows, and the
shared library support was only tested on Linux.
Signed-off-by: Jamie Lokier <jamie@shareable.org>
2021-06-01 16:45:11 +00:00
# Note about building Nimbus as a library:
#
# There were `wrappers`, `wrappers-static`, `libnimbus.so` and `libnimbus.a`
# target scripts here, and C and Go examples for calling the Nimbus library in
# directory `wrappers/`. They have been removed because they only wrapped
# Whisper protocol support, which has been removed as it is obsolete.
#
# This note is kept so that anyone wanting to build Nimbus as a library or call
# from C or Go will know it has been done before. The previous working version
# can be found in Git history. Look for the `nimbus-eth1` commit that adds
# this comment and removes `wrappers/*`.
2019-08-01 11:14:00 +00:00
2022-03-27 11:21:15 +00:00
dist-amd64 :
+ MAKE = " $( MAKE) " \
scripts/make_dist.sh amd64
dist-arm64 :
+ MAKE = " $( MAKE) " \
scripts/make_dist.sh arm64
# We get an ICE on RocksDB-7.0.2 with "arm-linux-gnueabihf-g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0"
# and with "arm-linux-gnueabihf-g++ (Ubuntu 10.3.0-1ubuntu1) 10.3.0".
#dist-arm:
#+ MAKE="$(MAKE)" \
#scripts/make_dist.sh arm
dist-win64 :
+ MAKE = " $( MAKE) " \
scripts/make_dist.sh win64
dist-macos :
+ MAKE = " $( MAKE) " \
scripts/make_dist.sh macos
dist-macos-arm64 :
+ MAKE = " $( MAKE) " \
scripts/make_dist.sh macos-arm64
dist :
+ $( MAKE) --no-print-directory dist-amd64
+ $( MAKE) --no-print-directory dist-arm64
#+ $(MAKE) --no-print-directory dist-arm
+ $( MAKE) --no-print-directory dist-win64
+ $( MAKE) --no-print-directory dist-macos
+ $( MAKE) --no-print-directory dist-macos-arm64
2020-04-18 12:56:40 +00:00
e n d i f # "variables.mk" was not included