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
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,9 @@ dkms.conf ...@@ -78,6 +78,9 @@ dkms.conf
# End of https://www.toptal.com/developers/gitignore/api/c,visualstudiocode # End of https://www.toptal.com/developers/gitignore/api/c,visualstudiocode
# Custom gitignore for project # Custom gitignore for project
puissance puissance4
testbed/2players/test*
testbed/rand_ai/test*
testbed/smart_ai/test*
cmake-build-debug cmake-build-debug
.idea .idea
\ No newline at end of file
LIB=-lm LIB=-lm
CC=gcc -Wall -Wextra -g CC=gcc -Wall -Wextra -g
puissance: puissance.o main.o puissance4: puissance.o main.o
$(CC) $^ -fsanitize=address -fsanitize=leak -o $@ $(LIB) $(CC) $^ -fsanitize=address -fsanitize=leak -o $@ $(LIB)
puissance.o: puissance.c puissance.h puissance.o: puissance.c puissance.h
$(CC) -c $< $(LIB) $(CC) -c $< $(LIB)
main.o: main.c main.o: main.c
$(CC) -c $< $(LIB) $(CC) -c $< $(LIB)
tests: puissance tests: puissance4
$(MAKE) -C testbed $(MAKE) -C testbed
clean: clean:
rm -f *.o puissance test rm -f *.o puissance4 test
$(MAKE) -C testbed clean $(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