Files
SAE11_2024/Makefile

58 lines
962 B
Makefile
Raw Permalink 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 \
nbjoueur.o \
comportementJCJ.o \
comportementJCIA.o \
2024-11-15 09:50:42 +01:00
definirMaxXY.o \
initialisation.o \
coordoner.o \
main.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)
2024-11-20 15:01:35 +01:00
menu.o : taille.h menu.h nbjoueur.h
2024-11-20 15:01:35 +01:00
taille.o : taille.h
2024-11-20 15:01:35 +01:00
coordoner.o : coordoner.h initialisation.h
2024-11-15 09:50:42 +01:00
initialisation.o : initialisation.h
nbjoueur.o : nbjoueur.h
2024-11-20 15:01:35 +01:00
comportementJCJ.o : comportementJCJ.h definirMaxXY.h initialisation.h coordoner.h
2024-11-20 15:01:35 +01:00
comportementJCIA.o : comportementJCIA.h definirMaxXY.h initialisation.h coordoner.h
2024-11-20 15:01:35 +01:00
main.o : menu.h comportementJCJ.h comportementJCIA.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