File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -271,10 +271,16 @@ else
271
271
@echo "Sample is ready - all dependencies have been met"
272
272
endif
273
273
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
275
281
$(EXEC ) $(NVCC ) $(INCLUDES ) $(ALL_CCFLAGS ) $(GENCODE_FLAGS ) -o $@ -c $<
276
282
277
- test_BytomPoW : test_BytomPoW.o
283
+ test_BytomPoW : byte_order.o sha3.o test_BytomPoW.o
278
284
$(EXEC ) $(NVCC ) $(ALL_LDFLAGS ) $(GENCODE_FLAGS ) -o $@ $+ $(LIBRARIES )
279
285
$(EXEC ) mkdir -p ../../bin/$(TARGET_ARCH ) /$(TARGET_OS ) /$(BUILD_TYPE )
280
286
$(EXEC ) cp $@ ../../bin/$(TARGET_ARCH ) /$(TARGET_OS ) /$(BUILD_TYPE )
@@ -283,7 +289,7 @@ run: build
283
289
$(EXEC ) ./test_BytomPoW
284
290
285
291
clean :
286
- rm -f test_BytomPoW test_BytomPoW.o
292
+ rm -f test_BytomPoW test_BytomPoW.o sha3.o byte_order.o
287
293
rm -rf ../../bin/$(TARGET_ARCH ) /$(TARGET_OS ) /$(BUILD_TYPE ) /test_BytomPoW
288
294
289
295
clobber : clean
You can’t perform that action at this time.
0 commit comments