-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
19 lines (12 loc) · 865 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CFLAGS := -O2
.default: verifymessage
# the g++ configurations are based on what bitcoin-qt uses
all: verifymessage signmessage
verifymessage: verifymessage.o key.o
g++ $(CFLAGS) -Wall -Wextra -Wformat -Wformat-security -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -Wl,--gc-sections -o $@ $^ -lcrypto
signmessage: signmessage.o key.o
g++ $(CFLAGS) -Wall -Wextra -Wformat -Wformat-security -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -Wl,--gc-sections -o $@ $^ -lcrypto
%.o: %.cpp allocators.h base58.h bignum.h hash.h key.h serialize.h uint256.h util.h
g++ $(CFLAGS) -c -Wall -Wextra -Wformat -Wformat-security -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -o $@ $<
clean:
rm -f *.o verifymessage signmessage