Skip to content

Commit

Permalink
reorg file structure a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancdotorg committed Feb 11, 2016
1 parent af0d618 commit effc891
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 13 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
HEADERS = bloom.h crack.h hash160.h warpwallet.h
OBJ_MAIN = brainflayer.o hex2blf.o blfchk.o ecmtabgen.o hexln.o
OBJ_UTIL = hex.o bloom.o mmapf.o hsearchf.o ec_pubkey_fast.o ripemd160_256.o dldummy.o
OBJ_FMT = warpwallet.o brainwalletio.o brainv2.o
OBJECTS = $(OBJ_MAIN) $(OBJ_UTIL) $(OBJ_FMT)
OBJ_ALGO = $(patsubst %.c,%.o,$(wildcard algo/*.c))
OBJECTS = $(OBJ_MAIN) $(OBJ_UTIL) $(OBJ_ALGO)
BINARIES = brainflayer hexln hex2blf blfchk ecmtabgen
LIBS = -lssl -lrt -lcrypto -lz -lgmp
CFLAGS = -O3 \
Expand Down Expand Up @@ -32,9 +32,11 @@ scrypt-jane/scrypt-jane.o: scrypt-jane/scrypt-jane.h scrypt-jane/scrypt-jane.c

brainflayer.o: brainflayer.c secp256k1/include/secp256k1.h

warpwallet.o: warpwallet.c scrypt-jane/scrypt-jane.h
format/warpwallet.o: format/warpwallet.c scrypt-jane/scrypt-jane.h

brainwalletio.o: brainwalletio.c scrypt-jane/scrypt-jane.h
format/brainwalletio.o: format/brainwalletio.c scrypt-jane/scrypt-jane.h

format/brainv2.o: format/brainv2.c scrypt-jane/scrypt-jane.h

ec_pubkey_fast.o: ec_pubkey_fast.c secp256k1/include/secp256k1.h
$(COMPILE) -Wno-unused-function -c $< -o $@
Expand All @@ -54,7 +56,7 @@ hex2blf: hex2blf.o hex.o bloom.o mmapf.o
ecmtabgen: ecmtabgen.o mmapf.o ec_pubkey_fast.o
$(COMPILE) -static $^ $(LIBS) -o $@

brainflayer: brainflayer.o $(OBJ_UTIL) $(OBJ_FMT) \
brainflayer: brainflayer.o $(OBJ_UTIL) $(OBJ_ALGO) \
secp256k1/.libs/libsecp256k1.a scrypt-jane/scrypt-jane.o
$(COMPILE) -static $^ $(LIBS) -o $@

Expand Down
4 changes: 2 additions & 2 deletions brainv2.c → algo/brainv2.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
// crypto.h used for the version
#include <openssl/crypto.h>

#include "scrypt-jane/scrypt-jane.h"
#include "../scrypt-jane/scrypt-jane.h"

#include "hex.h"
#include "../hex.h"

#include "brainv2.h"

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions brainwalletio.c → algo/brainwalletio.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
// crypto.h used for the version
#include <openssl/crypto.h>

#include "scrypt-jane/scrypt-jane.h"
#include "../scrypt-jane/scrypt-jane.h"

#include "hex.h"
#include "../hex.h"

#define _SCRYPT_N (1<<18)
#define _SCRYPT_r 8
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion warpwallet.c → algo/warpwallet.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// crypto.h used for the version
#include <openssl/crypto.h>

#include "scrypt-jane/scrypt-jane.h"
#include "../scrypt-jane/scrypt-jane.h"

#define _PBKDF2_i (1<<16)
#define _SCRYPT_N (1<<18)
Expand Down
File renamed without changes.
7 changes: 4 additions & 3 deletions brainflayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
#include "hash160.h"
#include "hsearchf.h"

#include "brainv2.h"
#include "warpwallet.h"
#include "brainwalletio.h"
#include "algo/brainv2.h"
#include "algo/warpwallet.h"
#include "algo/brainwalletio.h"
#include "algo/sha3.h"

static int brainflayer_is_init = 0;

Expand Down

0 comments on commit effc891

Please sign in to comment.