This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree 2 files changed +5
-1
lines changed 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ install:
19
19
mkdir -p $(DESTDIR )
20
20
ifneq ($(OS ) ,Darwin)
21
21
cp -f src/$(V)/libcuda-crypt.a $(DESTDIR)
22
+ cp -f src/$(V)/libcuda-crypt.so $(DESTDIR)
22
23
endif
23
24
ls -lh $(DESTDIR)
24
25
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ CUDA_SHA256_DIR:=cuda-sha256
21
21
22
22
CFLAGS+ =-DENDIAN_NEUTRAL -DLTC_NO_ASM -I$(CUDA_HEADER_DIR ) -I$(CUDA_SHA256_DIR )
23
23
24
- all : $V/$(CHACHA_TEST_BIN ) $V/$(ECC_TEST_BIN )
24
+ all : $V/$(CHACHA_TEST_BIN ) $V/$(ECC_TEST_BIN ) $( V ) /lib $( LIB ) .so
25
25
26
26
ECC_DIR: =cuda-ecc-ed25519
27
27
VERIFY_SRCS: =$(addprefix $(ECC_DIR ) /,verify.cu seed.cu sha512.cu ge.cu sc.cu fe.cu sign.cu keypair.cu common.cu ed25519.h)
@@ -56,6 +56,9 @@ $V/crypt-dlink.o: $V/chacha_cbc.o $V/aes_cbc.o $V/verify.o $V/poh_verify.o
56
56
$V/lib$(LIB ) .a : $V/crypt-dlink.o $V/chacha_cbc.o $V/aes_cbc.o $V/verify.o $V/poh_verify.o
57
57
$(NVCC ) -Xcompiler " -fPIC" --lib --output-file $@ $^
58
58
59
+ $V/lib$(LIB ) .so : $V/crypt-dlink.o $V/chacha_cbc.o $V/aes_cbc.o $V/verify.o $V/poh_verify.o
60
+ $(NVCC ) -Xcompiler " -fPIC" --lib --shared --output-file $@ $^
61
+
59
62
$V/$(CHACHA_TEST_BIN ) : $(CHACHA_DIR ) /test.cu $V/lib$(LIB ) .a
60
63
$(NVCC ) $(CFLAGS ) -L$V -l$(LIB ) $< -o $@
61
64
You can’t perform that action at this time.
0 commit comments