Files
SAE11_2024/Makefile

60 lines
840 B
Makefile

# CHAPITRE 1 : BUT FINAL
but : game
# CHAPITRE 2 : VARIABLES
OFILES = taille.o \
menu.o \
grille.o \
nbjoueur.o \
nbjoueur2.o \
main.o
#deplacement.o, pion.o, grille.o, obstacle.o
CC = gcc
CFLAGS = -Wall -ansi -pedantic
# CHAPITRE 3 : DEPENDANCES (REGLES IMPLICITES)
#deplacement.o : pion.h obstacle.h
menu.o : taille.h menu.h nbjoueur.h nbjoueur2.h
#pion.o : deplacement.h obstacle.h
taille.o : taille.h grille.h
nbjoueur.o : nbjoueur.h
nbjoueur2.o : nbjoueur2.h
grille.o : grille.h taille.h
#obstacle.o : pion.h
main.o : menu.h grille.h taille.h
# CHAPITRE 4 : DEPENDANCES AVEC COMMANDES
game : $(OFILES)
$(CC) $(CFLAGS) -o game $(OFILES) -lgraph
# CHAPITRE 5 : NETTOYAGE DES FICHIERS GENERES
clean :
-rm -f $(OFILES) game
# CHAPITRE 6 : BUTS FACTICES
.PHONY : but clean
run :
./game