Skip to content

Commit

Permalink
Build binaries oustide src
Browse files Browse the repository at this point in the history
Ignore miner directory d
  • Loading branch information
Ortis committed Nov 3, 2018
1 parent 43e4707 commit b22c682
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/bin/

#ignore miner workspace
d

/src/**/ccerror.log
/src/**/*.o

Expand Down
Binary file added bcon
Binary file not shown.
Binary file added bup
Binary file not shown.
Binary file added bval
Binary file not shown.
Binary file added mochimo
Binary file not shown.
Binary file added neogen
Binary file not shown.
Binary file added sortlt
Binary file not shown.
17 changes: 9 additions & 8 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ NVCC=nvcc -DLONG64 --generate-code arch="compute_37,code=\"sm_37,compute_37\""
LDFLAGS=-lcudart -lcuda -lstdc++
EXEC=mochimo bval bcon bup sortlt neogen txclean wallet
SOURCE_FOLDER=./
BIN_FOLDER=../
OBJ_FOLDER=obj/Debug

all: $(EXEC)
Expand All @@ -30,28 +31,28 @@ trigg.o: $(SOURCE_FOLDER)trigg/trigg.c
$(CC) -g -c $(SOURCE_FOLDER)trigg/trigg.c -o $(SOURCE_FOLDER)trigg/trigg.o $(LDFLAGS)

mochimo: wots.o cuda_trigg.o trigg.o sha256.o
$(CC) -g -o mochimo $(SOURCE_FOLDER)mochimo.c $(SOURCE_FOLDER)trigg/trigg.o $(SOURCE_FOLDER)trigg/cuda_trigg.o $(SOURCE_FOLDER)crypto/wots/wots.o $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)
$(CC) -g -o $(BIN_FOLDER)mochimo $(SOURCE_FOLDER)mochimo.c $(SOURCE_FOLDER)trigg/trigg.o $(SOURCE_FOLDER)trigg/cuda_trigg.o $(SOURCE_FOLDER)crypto/wots/wots.o $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)

wallet: wots.o sha256.o
$(CC) -g -o wallet $(SOURCE_FOLDER)wallet.c $(SOURCE_FOLDER)crypto/wots/wots.o $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)
$(CC) -g -o $(BIN_FOLDER)wallet $(SOURCE_FOLDER)wallet.c $(SOURCE_FOLDER)crypto/wots/wots.o $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)

bval: wots.o trigg.o sha256.o
$(CC) -g -o bval $(SOURCE_FOLDER)bval.c $(SOURCE_FOLDER)trigg/trigg.o $(SOURCE_FOLDER)crypto/wots/wots.o $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)
$(CC) -g -o $(BIN_FOLDER)bval $(SOURCE_FOLDER)bval.c $(SOURCE_FOLDER)trigg/trigg.o $(SOURCE_FOLDER)crypto/wots/wots.o $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)

bcon: sha256.o
$(CC) -g -o bcon $(SOURCE_FOLDER)bcon.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)
$(CC) -g -o $(BIN_FOLDER)bcon $(SOURCE_FOLDER)bcon.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)

bup: sha256.o
$(CC) -g -o bup $(SOURCE_FOLDER)bup.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)
$(CC) -g -o $(BIN_FOLDER)bup $(SOURCE_FOLDER)bup.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)

sortlt: sha256.o
$(CC) -g -o sortlt $(SOURCE_FOLDER)sortlt.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)
$(CC) -g -o $(BIN_FOLDER)sortlt $(SOURCE_FOLDER)sortlt.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)

neogen: sha256.o
$(CC) -g -o neogen $(SOURCE_FOLDER)neogen.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)
$(CC) -g -o $(BIN_FOLDER)neogen $(SOURCE_FOLDER)neogen.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)

txclean: sha256.o
$(CC) -g -o txclean $(SOURCE_FOLDER)txclean.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)
$(CC) -g -o $(BIN_FOLDER)txclean $(SOURCE_FOLDER)txclean.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS)


clean:
Expand Down
Binary file added txclean
Binary file not shown.
Binary file added wallet
Binary file not shown.

0 comments on commit b22c682

Please sign in to comment.