update
This commit is contained in:
48
SAE11_2024/Makefile
Normal file
48
SAE11_2024/Makefile
Normal file
@@ -0,0 +1,48 @@
|
||||
### VARIABLES ###
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall \
|
||||
-ansi \
|
||||
-pedantic
|
||||
|
||||
LIBS = -lgraph
|
||||
EXE = exe
|
||||
OFILES = main.o \
|
||||
graphique.o \
|
||||
jeu.o \
|
||||
utilitaires.o \
|
||||
|
||||
|
||||
### BUT PAR DEFAUT ###
|
||||
|
||||
but : ${EXE}
|
||||
|
||||
### REGLES ESSENTIELLES ###
|
||||
|
||||
${EXE} : ${OFILES}
|
||||
$(CC) $(CFLAGS) -o ${EXE} ${OFILES} ${LIBS}
|
||||
|
||||
|
||||
main.o : graphique.h jeu.h utilitaires.h
|
||||
|
||||
jeu.o : jeu.h utilitaires.h graphique.h
|
||||
|
||||
graphique.o : graphique.h
|
||||
|
||||
utilitaires.o : utilitaires.h
|
||||
|
||||
### REGLES OPTIONNELLES ###
|
||||
|
||||
run : but
|
||||
./${EXE}
|
||||
|
||||
clean :
|
||||
-rm -f ${OFILES} ${EXE}
|
||||
|
||||
mrproper : clean but
|
||||
|
||||
### BUTS FACTICES ###
|
||||
|
||||
.PHONY : but clean mrproper
|
||||
|
||||
### FIN ###
|
||||
Reference in New Issue
Block a user