From 76e4ed80a19af5cd1f9e1ce4effb6dd3f96bf1c7 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Mon, 24 Oct 2022 14:09:10 +0200 Subject: [PATCH] Update Makefile --- Makefile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 1c9159d..16ee7f8 100644 --- a/Makefile +++ b/Makefile @@ -73,11 +73,11 @@ $(BUILDDIR)/cnn_%.o: $(CNN_SRCDIR)/%.c $(CNN_SRCDIR)/include/%.h $(CC) $(CFLAGS) -c $< -o $@ $(BUILDDIR)/cnn_%.o: $(CNN_SRCDIR)/%.cu $(CNN_SRCDIR)/include/%.h - ifndef NVCC_INSTALLED - @echo "nvcc not found, skipping" - else - $(NVCC) $(NVCCFLAGS) -c $< -o $@ - endif +ifndef NVCC_INSTALLED + @echo "nvcc not found, skipping" +else + $(NVCC) $(NVCCFLAGS) -c $< -o $@ +endif # # Build general files # @@ -106,11 +106,11 @@ build/test-mnist_%: test/mnist_%.c $(MNIST_OBJ) $(BUILDDIR)/colors.o $(CC) $(CFLAGS) $^ -o $@ $(BUILDDIR)/test-cnn_matrix_multiplication: test/cnn_matrix_multiplication.cu $(BUILDDIR)/cnn_matrix_multiplication.o $(BUILDDIR)/colors.o $(BUILDDIR)/mnist.o - ifndef NVCC_INSTALLED - @echo "nvcc not found, skipping" - else - $(NVCC) $(NVCCFLAGS) $^ -o $@ - endif +ifndef NVCC_INSTALLED + @echo "nvcc not found, skipping" +else + $(NVCC) $(NVCCFLAGS) $^ -o $@ +endif # # Utils