-
dario.genga authored
The make command was running the tests but not compiling the project. Also added a missing matrix destroy to free the memory.
dario.genga authoredThe make command was running the tests but not compiling the project. Also added a missing matrix destroy to free the memory.
makefile 335 B
LIB=-lm
CC=gcc -Wall -Wextra -g
matrix: matrix.o main.o
$(CC) $^ -fsanitize=address -fsanitize=leak -o $@ $(LIB)
run_tests: tests
./$<
tests: test.o matrix.o
$(CC) $^ -fsanitize=address -fsanitize=leak -o $@ $(LIB)
matrix.o: matrix.c matrix.h
$(CC) -c $< $(LIB)
main.o: main.c
$(CC) -c $< $(LIB)
clean:
rm -f *.o matrix tests