Skip to content
Snippets Groups Projects
Commit a9b9a972 authored by dario.genga's avatar dario.genga
Browse files

Fix executable name in makefile

Also added rules in the .gitignore to ignore the generated tests files.
parent 0e04209d
Branches
No related tags found
No related merge requests found
......@@ -78,6 +78,9 @@ dkms.conf
# End of https://www.toptal.com/developers/gitignore/api/c,visualstudiocode
# Custom gitignore for project
puissance
puissance4
testbed/2players/test*
testbed/rand_ai/test*
testbed/smart_ai/test*
cmake-build-debug
.idea
\ No newline at end of file
LIB=-lm
CC=gcc -Wall -Wextra -g
puissance: puissance.o main.o
puissance4: puissance.o main.o
$(CC) $^ -fsanitize=address -fsanitize=leak -o $@ $(LIB)
puissance.o: puissance.c puissance.h
$(CC) -c $< $(LIB)
main.o: main.c
$(CC) -c $< $(LIB)
tests: puissance
tests: puissance4
$(MAKE) -C testbed
clean:
rm -f *.o puissance test
rm -f *.o puissance4 test
$(MAKE) -C testbed clean
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment