Skip to content

Commit 93986dc

Browse files
author
limingming
committed
gpu
1 parent f8f0260 commit 93986dc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,16 @@ else
271271
@echo "Sample is ready - all dependencies have been met"
272272
endif
273273

274-
test_BytomPoW.o:byte_order.c sha3.c test_BytomPoW.cpp
274+
byte_order.o:byte_order.c
275+
$(EXEC) $(NVCC) $(INCLUDES) $(ALL_CCFLAGS) $(GENCODE_FLAGS) -o $@ -c $<
276+
277+
sha3.o:sha3.c
278+
$(EXEC) $(NVCC) $(INCLUDES) $(ALL_CCFLAGS) $(GENCODE_FLAGS) -o $@ -c $<
279+
280+
test_BytomPoW.o:test_BytomPoW.cpp
275281
$(EXEC) $(NVCC) $(INCLUDES) $(ALL_CCFLAGS) $(GENCODE_FLAGS) -o $@ -c $<
276282

277-
test_BytomPoW: test_BytomPoW.o
283+
test_BytomPoW: byte_order.o sha3.o test_BytomPoW.o
278284
$(EXEC) $(NVCC) $(ALL_LDFLAGS) $(GENCODE_FLAGS) -o $@ $+ $(LIBRARIES)
279285
$(EXEC) mkdir -p ../../bin/$(TARGET_ARCH)/$(TARGET_OS)/$(BUILD_TYPE)
280286
$(EXEC) cp $@ ../../bin/$(TARGET_ARCH)/$(TARGET_OS)/$(BUILD_TYPE)
@@ -283,7 +289,7 @@ run: build
283289
$(EXEC) ./test_BytomPoW
284290

285291
clean:
286-
rm -f test_BytomPoW test_BytomPoW.o
292+
rm -f test_BytomPoW test_BytomPoW.o sha3.o byte_order.o
287293
rm -rf ../../bin/$(TARGET_ARCH)/$(TARGET_OS)/$(BUILD_TYPE)/test_BytomPoW
288294

289295
clobber: clean

0 commit comments

Comments
 (0)