2023-03-15 16:15:50 +01:00
|
|
|
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
|
2023-05-07 13:29:54 +02:00
|
|
|
cc -c $< -o $@ -pedantic -Wall -Wextra
|
2023-03-15 16:15:50 +01:00
|
|
|
|
2023-05-07 13:29:54 +02:00
|
|
|
target/build/tests/test_tensor.o: tests/test_tensor.c tests/test_tensor.h
|
|
|
|
|
cc -c $< -o $@ -pedantic -Wall -Wextra
|
2023-03-15 16:15:50 +01:00
|
|
|
|
2023-05-07 13:29:54 +02:00
|
|
|
target/build/tensor.o: tensor.c tensor.h
|
|
|
|
|
cc -c $< -o $@ -pedantic -Wall -Wextra
|
2023-03-15 16:15:50 +01:00
|
|
|
|
|
|
|
|
init:
|
|
|
|
|
mkdir -p ./target/build/tests
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
rm -f ./target/build/*.o
|
|
|
|
|
rm -f ./target/test
|