upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/makefile.linux
diff options
context:
space:
mode:
authorBitflash-sh <btf01@proton.me>2026-07-24 11:18:11 -0300
committerBitflash-sh <btf01@proton.me>2026-07-24 11:18:11 -0300
commit51d617e70f90a972185917ea0096c1ecef2bfa8b (patch)
tree9fbbcd867de9de9d0776afdd02f594ba312c46eb /src/makefile.linux
Bitflash: fair-launch release
Satoshi's bitcoin-0.1.0 reborn with RandomX CPU proof of work, anonymous .btf addressing over Nostr with CGNAT rendezvous, automatic peer discovery, a headless Linux node, and Windows GUI wallet. Fair launch, no premine, 21M cap.
Diffstat (limited to 'src/makefile.linux')
-rw-r--r--src/makefile.linux48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/makefile.linux b/src/makefile.linux
new file mode 100644
index 0000000..682c597
--- /dev/null
+++ b/src/makefile.linux
@@ -0,0 +1,48 @@
1# Bitflash headless node/miner -- Linux build (no wxWidgets, no GUI).
2# Produces `bitflash-node`: loads the chain + wallet, runs the P2P/Nostr node
3# with anonymous .btf auto-discovery, and mines with RandomX (-gen).
4#
5# Deps are set up by ../build-linux.sh. Override paths on the make line if your
6# secp256k1 / RandomX live elsewhere:
7# make -f makefile.linux SECP_INC=... SECP_LIB=... RANDOMX_DIR=...
8
9CXX ?= g++
10
11# secp256k1 (schnorrsig + extrakeys), installed by build-linux.sh
12SECP_INC ?= /usr/local/include
13SECP_LIB ?= /usr/local/lib
14# RandomX source tree (headers in src/, static lib in build/)
15RANDOMX_DIR ?= $(HOME)/RandomX
16
17CXXFLAGS = -std=gnu++14 -O2 -w -fpermissive -pthread \
18 -DSECP256K1_STATIC \
19 -I$(SECP_INC) -I$(RANDOMX_DIR)/src
20
21LIBS = -L$(SECP_LIB) -lsecp256k1 \
22 -L$(RANDOMX_DIR)/build -lrandomx \
23 -lsodium -lssl -lcrypto -ldb_cxx -lpthread
24
25HEADERS = headers.h util.h main.h serialize.h uint256.h key.h bignum.h script.h \
26 db.h base58.h net.h irc.h nostr.h randomx_pow.h btfaddr.h btfchan.h \
27 btfrv.h btftunnel.h market.h compat.h
28
29OBJS = obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o obj/market.o \
30 obj/sha.o obj/irc.o obj/nostr.o obj/randomx_pow.o \
31 obj/btfaddr.o obj/btfchan.o obj/btfrv.o obj/btftunnel.o obj/headless.o
32
33all: bitflash-node
34
35obj/%.o: %.cpp $(HEADERS)
36 @mkdir -p obj
37 $(CXX) -c $(CXXFLAGS) -o $@ $<
38
39# sha gets -O3 like the Windows makefile
40obj/sha.o: sha.cpp sha.h
41 @mkdir -p obj
42 $(CXX) -c $(CXXFLAGS) -O3 -o $@ $<
43
44bitflash-node: $(OBJS)
45 $(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LIBS)
46
47clean:
48 rm -rf obj bitflash-node