upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/makefile.mingw
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.mingw
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.mingw')
-rw-r--r--src/makefile.mingw44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/makefile.mingw b/src/makefile.mingw
new file mode 100644
index 0000000..0ffac3f
--- /dev/null
+++ b/src/makefile.mingw
@@ -0,0 +1,44 @@
1# Bitflash -- build for MSYS2 UCRT64 (modern g++ + wxWidgets 3.2 + OpenSSL 3 + Berkeley DB 6)
2# Based on Satoshi Nakamoto's original 2009 makefile (MIT/X11)
3# Usage: (UCRT64 shell) mingw32-make -f makefile.mingw
4
5CXX = g++
6WXCXXFLAGS := $(shell wx-config --cxxflags)
7WXLIBS := $(shell wx-config --libs std,richtext,html)
8WXRCFLAGS := $(filter -I%,$(shell wx-config --cxxflags)) $(filter -D%,$(shell wx-config --cxxflags))
9
10DEFS = -DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH
11# Path to the project's built dependencies (libsecp256k1 with Schnorr, RandomX)
12DEPS = ../deps
13RANDOMX = ../RandomX
14CXXFLAGS = -std=gnu++14 -O2 -w -fpermissive -Wno-deprecated-declarations -pthread $(DEFS) -I$(DEPS)/include -I$(RANDOMX)/src $(WXCXXFLAGS)
15HEADERS = headers.h util.h main.h serialize.h uint256.h key.h bignum.h script.h db.h base58.h net.h irc.h nostr.h randomx_pow.h btfaddr.h btfchan.h btfrv.h btftunnel.h market.h uibase.h ui.h
16
17LIBS = \
18 -ldb_cxx \
19 -L$(DEPS)/lib -lsecp256k1 \
20 -L$(RANDOMX)/build -lrandomx \
21 -lsodium \
22 -lssl -lcrypto \
23 -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 \
24 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lws2_32 -lmswsock -lcrypt32 -pthread
25
26OBJS = obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o obj/market.o \
27 obj/ui.o obj/uibase.o obj/sha.o obj/irc.o obj/nostr.o obj/randomx_pow.o obj/btfaddr.o obj/btfchan.o obj/btfrv.o obj/btftunnel.o obj/ui_res.o
28
29all: bitflash.exe
30
31obj/%.o: %.cpp $(HEADERS)
32 $(CXX) -c $(CXXFLAGS) -o $@ $<
33
34obj/sha.o: sha.cpp sha.h
35 $(CXX) -c $(CXXFLAGS) -O3 -o $@ $<
36
37obj/ui_res.o: ui.rc rc/bitcoin.ico rc/check.ico
38 windres $(DEFS) $(WXRCFLAGS) -o $@ -i $<
39
40bitflash.exe: $(OBJS)
41 $(CXX) $(CXXFLAGS) -mwindows -Wl,--subsystem,windows -o $@ $(OBJS) $(WXLIBS) $(LIBS)
42
43clean:
44 rm -f obj/*.o bitflash.exe