forked from Kulme/supervanitygen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (21 loc) · 813 Bytes
/
Makefile
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
29
30
31
32
33
CC=gcc
CFLAGS=-Ofast -Wall -Wno-unused-function -Wno-pointer-sign \
-I. -Isecp256k1 -Isecp256k1/include -funsafe-loop-optimizations
LDFLAGS=$(CFLAGS)
LDLIBS=-lm -lgmp
SHA256=sha256/sha256.o sha256/sha256-avx-asm.o sha256/sha256-avx2-asm.o \
sha256/sha256-ssse3-asm.o sha256/sha256-ni-asm.o
OBJS=vanitygen.o base58.o rmd160.o $(SHA256)
all: vanitygen
install: all
cp --remove-destination -p vanitygen /usr/local/bin/
clean:
rm -f vanitygen *.o sha256/*.o
distclean: clean
$(MAKE) -C secp256k1 distclean
vanitygen: $(OBJS)
$(OBJS): Makefile *.h secp256k1/src/libsecp256k1-config.h secp256k1/src/ecmult_static_context.h
secp256k1/src/libsecp256k1-config.h:
(cd secp256k1;./autogen.sh;./configure)
secp256k1/src/ecmult_static_context.h:
$(MAKE) -C secp256k1 src/ecmult_static_context.h