diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5c6e9df --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +test: target/test + ./target/test + +build: target/build/tensor.o + +target/test: target/build/tests/test_tensor.o target/build/tests/main.o target/build/tensor.o + cc $^ -o target/test + +target/build/tests/main.o: tests/main.c + cc -c $? -o $@ -pedantic -Wall -Wextra + +target/build/tests/test_tensor.o: tests/test_tensor.c + cc -c $? -o $@ -pedantic -Wall -Wextra + +target/build/tensor.o: tensor.c + cc -c $? -o $@ -pedantic -Wall -Wextra + +init: + mkdir -p ./target/build/tests + +clean: + rm -f ./target/build/*.o + rm -f ./target/test diff --git a/target/build/tensor.o b/target/build/tensor.o deleted file mode 100644 index 97dedd2..0000000 Binary files a/target/build/tensor.o and /dev/null differ diff --git a/target/build/tests/main.o b/target/build/tests/main.o deleted file mode 100644 index a301bd4..0000000 Binary files a/target/build/tests/main.o and /dev/null differ diff --git a/target/build/tests/test_tensor.o b/target/build/tests/test_tensor.o deleted file mode 100644 index fd6e816..0000000 Binary files a/target/build/tests/test_tensor.o and /dev/null differ diff --git a/target/test b/target/test deleted file mode 100755 index 7697395..0000000 Binary files a/target/test and /dev/null differ