-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from 0rtis/v2-trigger-height
Added debug makefile, some changes for v2 trigger height, minor changes to gitignore.
- Loading branch information
Showing
5 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,8 @@ | |
/src/sortlt | ||
/src/txclean | ||
/src/wallet | ||
|
||
|
||
#eclipse cpp | ||
/src/.cproject | ||
/src/.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
############################################### | ||
###### TO BE USED FOR DEBUG PURPOSE ONLY ###### | ||
############################################### | ||
|
||
SHELL := /bin/bash | ||
CC=gcc -DUNIXLIKE -DLONG64 -I/usr/lib -L/usr/local/cuda-9.2/lib64 | ||
#CFLAGS=-W -Wall -ansi -pedantic -g | ||
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=../bin/ | ||
OBJ_FOLDER=obj/Debug | ||
|
||
all: $(EXEC) | ||
debug: $(EXEC) | ||
|
||
sha256.o: $(SOURCE_FOLDER)crypto/sha256.c | ||
$(CC) -g -c $(SOURCE_FOLDER)crypto/sha256.c -o $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS) | ||
|
||
wotshash.o: $(SOURCE_FOLDER)wots/wotshash.c | ||
$(CC) -g -o $(SOURCE_FOLDER)crypto/wots/wotshash.o -c $(SOURCE_FOLDER)crypto/wots/wotshash.c $(LDFLAGS) | ||
|
||
wots.o: $(SOURCE_FOLDER)crypto/wots/wots.c | ||
$(CC) -g -c $(SOURCE_FOLDER)crypto/wots/wots.c -o $(SOURCE_FOLDER)crypto/wots/wots.o $(LDFLAGS) | ||
|
||
cuda_trigg.o: | ||
$(NVCC) -g -c $(SOURCE_FOLDER)trigg/cuda_trigg.cu -o $(SOURCE_FOLDER)trigg/cuda_trigg.o $(LDFLAGS) | ||
|
||
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 $(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 $(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 $(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 $(BIN_FOLDER)bcon $(SOURCE_FOLDER)bcon.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS) | ||
|
||
bup: sha256.o | ||
$(CC) -g -o $(BIN_FOLDER)bup $(SOURCE_FOLDER)bup.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS) | ||
|
||
sortlt: sha256.o | ||
$(CC) -g -o $(BIN_FOLDER)sortlt $(SOURCE_FOLDER)sortlt.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS) | ||
|
||
neogen: sha256.o | ||
$(CC) -g -o $(BIN_FOLDER)neogen $(SOURCE_FOLDER)neogen.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS) | ||
|
||
txclean: sha256.o | ||
$(CC) -g -o $(BIN_FOLDER)txclean $(SOURCE_FOLDER)txclean.c $(SOURCE_FOLDER)crypto/sha256.o $(LDFLAGS) | ||
|
||
|
||
clean: | ||
rm -rf *.o | ||
|
||
mrproper: clean | ||
rm -rf $(EXEC) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters