Blocus/Makefile
2021-11-17 18:06:51 +01:00

45 lines
533 B
Makefile

### 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}