From a9b9a972acf8353635b65258fc99f56e837b925b Mon Sep 17 00:00:00 2001 From: "dario.genga" <dario.genga@etu.hesge.ch> Date: Tue, 21 Dec 2021 15:41:53 +0100 Subject: [PATCH] Fix executable name in makefile Also added rules in the .gitignore to ignore the generated tests files. --- .gitignore | 5 ++++- makefile | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8c8e1c4..8235c0e 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/makefile b/makefile index adfc54e..2375bfb 100644 --- a/makefile +++ b/makefile @@ -1,15 +1,15 @@ 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 -- GitLab