2014-12-24 00:26:39 +00:00
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
OPTFLAGS = -O3
|
|
|
|
|
|
|
|
CFLAGS += $(OPTFLAGS) \
|
|
|
|
-W \
|
|
|
|
-Wall \
|
|
|
|
-Wextra \
|
|
|
|
-Wimplicit-function-declaration \
|
|
|
|
-Wredundant-decls \
|
|
|
|
-Wstrict-prototypes \
|
|
|
|
-Wundef \
|
|
|
|
-Wshadow \
|
|
|
|
-Wpointer-arith \
|
|
|
|
-Wformat \
|
|
|
|
-Wreturn-type \
|
|
|
|
-Wsign-compare \
|
|
|
|
-Wmultichar \
|
|
|
|
-Wformat-nonliteral \
|
|
|
|
-Winit-self \
|
|
|
|
-Wuninitialized \
|
|
|
|
-Wformat-security \
|
|
|
|
-Werror \
|
|
|
|
-I..
|
|
|
|
|
2015-05-27 14:48:57 +00:00
|
|
|
all: xpubaddrgen mktable bip39bruteforce
|
2014-12-24 00:26:39 +00:00
|
|
|
|
2015-05-27 14:48:57 +00:00
|
|
|
OBJS = ../bip32.o ../bip39.o ../ecdsa.o ../sha2.o ../bignum.o ../base58.o ../secp256k1.o ../nist256p1.o ../ripemd160.o ../hmac.o ../rand.o ../pbkdf2.o
|
2014-12-24 00:26:39 +00:00
|
|
|
|
|
|
|
%.o: %.c %.h options.h
|
|
|
|
$(CC) $(CFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
xpubaddrgen: xpubaddrgen.o $(OBJS)
|
|
|
|
$(CC) xpubaddrgen.o $(OBJS) -o xpubaddrgen
|
|
|
|
|
2015-05-27 14:48:57 +00:00
|
|
|
mktable: mktable.o $(OBJS)
|
|
|
|
$(CC) mktable.o $(OBJS) -o mktable
|
2015-04-10 17:14:59 +00:00
|
|
|
|
2015-05-11 12:24:45 +00:00
|
|
|
bip39bruteforce: bip39bruteforce.o $(OBJS)
|
|
|
|
$(CC) bip39bruteforce.o $(OBJS) -o bip39bruteforce
|
|
|
|
|
2014-12-24 00:26:39 +00:00
|
|
|
clean:
|
2015-05-27 14:48:57 +00:00
|
|
|
rm -f *.o xpubaddrgen mktable bip39bruteforce
|