2022-05-09 09:28:48 +02:00
|
|
|
# PROJET DÉMINEUR MAKEFILE:
|
2022-05-05 22:45:26 +02:00
|
|
|
#
|
|
|
|
# Chapitre 1: But final;
|
|
|
|
|
|
|
|
but: main_ex.class
|
|
|
|
|
|
|
|
# Chapitre 2 : Variable
|
|
|
|
OFILES= Case.class\
|
|
|
|
plateau.class\
|
|
|
|
observateurCase.class\
|
|
|
|
paintMenuJeu.class\
|
|
|
|
observateurSAV.class\
|
|
|
|
observateurFenetre.class\
|
|
|
|
paintChoix.class\
|
|
|
|
observateurChoix.class\
|
|
|
|
plusoumoins.class\
|
2022-05-06 16:16:25 +02:00
|
|
|
observateurButtonEtText.class
|
2022-05-05 22:45:26 +02:00
|
|
|
|
|
|
|
CFLAGS= -implicit:none
|
|
|
|
|
|
|
|
# Chapitre 3 : Dependances (règle implicite):
|
|
|
|
Case.class: Case.java
|
|
|
|
javac $(CFLAGS) Case.java
|
|
|
|
|
|
|
|
plateau.class : plateau.java
|
|
|
|
javac $(CFLAGS) plateau.java
|
|
|
|
|
|
|
|
observateurCase.class : observateurCase.java
|
|
|
|
javac $(CFLAGS) observateurCase.java
|
|
|
|
|
|
|
|
paintMenuJeu.class: paintMenuJeu.java
|
|
|
|
javac $(CFLAGS) paintMenuJeu.java
|
|
|
|
|
|
|
|
observateurSAV.class: observateurSAV.java
|
|
|
|
javac $(CFLAGS) observateurSAV.java
|
|
|
|
|
|
|
|
observateurFenetre.class: observateurFenetre.java
|
|
|
|
javac $(CFLAGS) observateurFenetre.java
|
|
|
|
|
|
|
|
# Chapitre 4 : Dependances
|
|
|
|
|
|
|
|
main_ex.class: $(OFILES) main_ex.java
|
|
|
|
javac $(CFLAGS) main_ex.java
|
|
|
|
|
|
|
|
paintChoix.class: paintChoix.java
|
|
|
|
javac $(CFLAGS) paintChoix.java
|
|
|
|
|
|
|
|
observateurChoix.class: observateurChoix.java
|
|
|
|
javac $(CFLAGS) observateurChoix.java
|
|
|
|
|
|
|
|
plusoumoins.class: plusoumoins.java
|
|
|
|
javac $(CFLAGS) plusoumoins.java
|
|
|
|
|
2022-05-06 16:16:25 +02:00
|
|
|
observateurButtonEtText.class: observateurButtonEtText.java
|
|
|
|
javac $(CFLAGS) observateurButtonEtText.java
|
2022-05-05 22:45:26 +02:00
|
|
|
|
|
|
|
#Chapitre 5: nettoyage des fichiers generes
|
|
|
|
|
|
|
|
clean :
|
2022-05-11 20:31:30 +02:00
|
|
|
-rm -f $(OFILES) main_ex.class
|
2022-05-05 22:45:26 +02:00
|
|
|
|
|
|
|
run :
|
|
|
|
java main_ex
|
|
|
|
#chapitre 6 : buts factices
|
|
|
|
|
|
|
|
.PHONY : but clean
|
|
|
|
|
|
|
|
.PHONY : but run
|