This commit is contained in:
boscher
2021-11-17 18:06:51 +01:00
parent c8ffa7e62b
commit 1321834946
43 changed files with 847 additions and 0 deletions

44
Makefile Normal file
View File

@@ -0,0 +1,44 @@
### Leni Boscher # Tanguy Domergue ###
### VARIABLES ###
CC = gcc
CFLAGS = -Wall \
-ansi \
-pedantic\
OPTION = -lgraph
EXE = ./blocus
OFILES = main.o \
menu.o \
plateau.o \
regles.o \
### BUT ###
but: ${EXE}
### CONDITIONS ###
plateau.o : plateau.h regles.h main.h
regles.o : plateau.h regles.h
main.o : menu.h regles.h plateau.h main.h
menu.o : menu.h
${EXE}: ${OFILES}
$(CC) $(CFLAGS) -o ${EXE} ${OFILES} $(OPTION)
### CONDITIONS FACULTATIVES ###
clean:
-rm -f ${OFILES} ${EXE}
run:
${EXE}