Files
SAE11_2024/Makefile

66 lines
899 B
Makefile
Raw Normal View History

2024-10-23 12:56:25 +02:00
# CHAPITRE 1 : BUT FINAL
but : game
2024-10-23 12:56:25 +02:00
# CHAPITRE 2 : VARIABLES
OFILES = taille.o \
menu.o \
grille.o \
nbjoueur.o \
nbjoueur2.o \
boutonJVJ.o \
jeu.o \
main.o
#deplacement.o, pion.o, obstacle.o
2024-10-23 12:56:25 +02:00
CC = gcc
CFLAGS = -Wall -ansi -pedantic
2024-10-23 12:56:25 +02:00
# CHAPITRE 3 : DEPENDANCES (REGLES IMPLICITES)
#deplacement.o : pion.h obstacle.h
2024-10-23 12:56:25 +02:00
menu.o : taille.h menu.h nbjoueur.h nbjoueur2.h boutonJVJ.h
#pion.o : deplacement.h obstacle.h
taille.o : taille.h grille.h
nbjoueur.o : nbjoueur.h
boutonJVJ.o : boutonJVJ.h
nbjoueur2.o : nbjoueur2.h
grille.o : grille.h taille.h
2024-10-23 12:56:25 +02:00
#obstacle.o : pion.h
2024-10-23 12:56:25 +02:00
jeu.o : jeu.h
main.o : menu.h jeu.h
2024-10-24 12:51:17 +02:00
# CHAPITRE 4 : DEPENDANCES AVEC COMMANDES
2024-10-24 12:51:17 +02:00
game : $(OFILES)
2024-10-28 12:07:31 +01:00
$(CC) $(CFLAGS) -o game $(OFILES) -lgraph
2024-10-24 12:51:17 +02:00
# CHAPITRE 5 : NETTOYAGE DES FICHIERS GENERES
2024-10-23 12:56:25 +02:00
clean :
-rm -f $(OFILES) game
2024-10-23 12:56:25 +02:00
# CHAPITRE 6 : BUTS FACTICES
2024-10-23 12:56:25 +02:00
.PHONY : but clean
2024-10-23 12:56:25 +02:00
run :
./game