Files
SAE11_2024/Makefile

58 lines
815 B
Makefile
Raw Normal View History

2024-10-23 12:56:25 +02:00
# CHAPITRE 1 : BUT FINAL
2024-10-24 12:51:17 +02:00
but : jeu
2024-10-23 12:56:25 +02:00
# CHAPITRE 2 : VARIABLES
2024-10-24 12:51:17 +02:00
OFILES = main.o \
menu.o \
board.o \
player.o \
graphics.o \
ia.o \
game_logic.o
2024-10-23 12:56:25 +02:00
CC = gcc
CFLAGS = -Wall -ansi -pedantic -g -lgraph
# CHAPITRE 3 : DEPENDANCES (REGLES IMPLICITES)
2024-10-24 12:51:17 +02:00
main.o: main.c menu.h game_logic.h graphics.h board.h player.h
2024-10-23 12:56:25 +02:00
2024-10-24 12:51:17 +02:00
menu.o: menu.c menu.h graphics.h
2024-10-23 12:56:25 +02:00
2024-10-24 12:51:17 +02:00
board.o: board.c board.h player.h game_logic.h
player.o: player.c player.h board.h
graphics.o: graphics.c graphics.h
ia.o: ia.c ia.h game_logic.h board.h
game_logic.o: game_logic.c game_logic.h board.h player.h
2024-10-23 12:56:25 +02:00
#CHAPITRE 4 : DEPENDANCES AVEC COMMANDES
game : $(OFILES)
$(CC) $(CFLAGS) -o game $(OFILES)
#CHAPITRE 5 : NETTOYAGE DES FICHIERS GENERES
2024-10-24 12:51:17 +02:00
clear :
2024-10-23 12:56:25 +02:00
-rm -f $(OFILES) game
#CHAPITRE 6 : BUTS FACTICES
.PHONY : but clear
run :
./game