From 5a86badd4379580b6d823396016561f12c751636 Mon Sep 17 00:00:00 2001 From: Elias Kohout Date: Sun, 7 May 2023 13:29:54 +0200 Subject: [PATCH] Updated Makefile --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 5c6e9df..cda8177 100644 --- a/Makefile +++ b/Makefile @@ -7,13 +7,13 @@ target/test: target/build/tests/test_tensor.o target/build/tests/main.o target/b cc $^ -o target/test target/build/tests/main.o: tests/main.c - cc -c $? -o $@ -pedantic -Wall -Wextra + cc -c $< -o $@ -pedantic -Wall -Wextra -target/build/tests/test_tensor.o: tests/test_tensor.c - cc -c $? -o $@ -pedantic -Wall -Wextra +target/build/tests/test_tensor.o: tests/test_tensor.c tests/test_tensor.h + cc -c $< -o $@ -pedantic -Wall -Wextra -target/build/tensor.o: tensor.c - cc -c $? -o $@ -pedantic -Wall -Wextra +target/build/tensor.o: tensor.c tensor.h + cc -c $< -o $@ -pedantic -Wall -Wextra init: mkdir -p ./target/build/tests