Skip to content
Snippets Groups Projects
Commit 10a8ae39 authored by remi.greub's avatar remi.greub
Browse files

modification du makefile

parent 0908eecb
Branches
No related tags found
No related merge requests found
CC:=gcc -d
CC:=gcc
CFLAGS:=-Wall -Wextra -pedantic -g -fsanitize=address,undefined -fsanitize-recover=address
LDFLAGS:=-lm
EXEC:=puissance4
puissance4:
@echo "first rule which must create the puissance4 executable"
puissance4: main.c puissance4.o
$(CC) $(CFLAGS) $^ -o $(EXEC) $(LDFLAGS)
puissance4.o: puissance4.c puissance4.h
clean:
@echo "this rule must clean everything up (including candidate files in testbed)"
rm -rf *.o $(EXEC)
$(MAKE) -C testbed clean
run: $(EXEC_EXO)
./$<
tests: puissance4
$(MAKE) -C testbed
\ 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