← Commits · 2be7328c
2be7328ca56c492ad48c52f4ab315cc234d928f9
diff --git a/Makefile b/Makefile
index 19df449..c32692f 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ ifeq ($(METAL),1)
endif
test:
- $(CC) $(CFLAGS) $(LDFLAGS) test.c -o test
+ $(CC) $(CFLAGS) test.c -o test $(LDFLAGS)
./test
MNIST_URL := https://ossci-datasets.s3.amazonaws.com/mnist
@@ -38,7 +38,7 @@ CIFAR_EXAMPLES := examples/resnet8_cifar10 examples/mobilenetv1_cifar10
examples: $(EXAMPLES)
examples/%: examples/%.c utensil.h
- $(CC) $(CFLAGS) -I. $(LDFLAGS) $< -o $@
+ $(CC) $(CFLAGS) -I. $< -o $@ $(LDFLAGS)
$(MNIST_EXAMPLES): examples/mnist_loader.h mnist-data
$(CIFAR_EXAMPLES): examples/cifar10_loader.h cifar-data