-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
23 lines (17 loc) · 667 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
all: program
BASE_PATH = $(shell pwd)
ARCH = -arch=compute_52 -code=sm_52
ifeq ($(shell whoami),travis)
ARCH = -arch=compute_35 -code=sm_35
endif
INCLUDES = -I$(BASE_PATH)/libs/libsodium-1.0.11/src/libsodium/include/ -I/usr/local/cuda/include/
NACL_LIBBIES = -L$(BASE_PATH)/libs/libsodium-1.0.11/src/libsodium/.libs/ -lsodium
NV_LIBBIES = -L/usr/local/cuda/lib64 -lcuda -lcudart
LIBBIES = $(NV_LIBBIES) $(NACL_LIBBIES)
OPTS = #--std=c99
program: clean csolv
g++ -g $(OPTS) main.c cblake2b.o cutil.o cxor.o cfinal.o $(INCLUDES) $(LIBBIES)
csolv:
nvcc -lineinfo $(ARCH) $(INCLUDES) -c cblake2b.cu -c cutil.cu -c cxor.cu -c cfinal.cu
clean:
rm -rf *.o a.out