repost
This commit is contained in:
44
Makefile
Normal file
44
Makefile
Normal 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}
|
Reference in New Issue
Block a user