-
Notifications
You must be signed in to change notification settings - Fork 975
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 722 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (20 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CXXFLAGS = -O3 -g0 -march=native
LDFLAGS = $(CXXFLAGS)
dnsseed: dns.o bitcoin.o netbase.o protocol.o db.o main.o util.o
g++ -pthread $(LDFLAGS) -o dnsseed dns.o bitcoin.o netbase.o protocol.o db.o main.o util.o -lcrypto
%.o: %.cpp bitcoin.h netbase.h protocol.h db.h serialize.h uint256.h util.h
g++ -std=c++11 -pthread $(CXXFLAGS) -Wall -Wno-unused -Wno-sign-compare -Wno-reorder -Wno-comment -c -o $@ $<
dns.o: dns.c
gcc -pthread -std=c99 $(CXXFLAGS) dns.c -Wall -c -o dns.o
%.o: %.cpp
.PHONY: clean
clean:
rm -f dnsseed *.o
PREFIX = /usr/local
.PHONY: install
install:
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp dnsseed $(DESTDIR)$(PREFIX)/bin
.PHONY: uninstall
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/dnsseed