ajout fichier final
This commit is contained in:
64
Makefile
Normal file
64
Makefile
Normal file
@@ -0,0 +1,64 @@
|
||||
# PROJET DÉMINEUR MAKEFILE:
|
||||
#
|
||||
# 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\
|
||||
observateurButtonEtText.class
|
||||
|
||||
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
|
||||
|
||||
observateurButtonEtText.class: observateurButtonEtText.java
|
||||
javac $(CFLAGS) observateurButtonEtText.java
|
||||
|
||||
#Chapitre 5: nettoyage des fichiers generes
|
||||
|
||||
clean :
|
||||
-rm -f $(OFILES) main_ex.class
|
||||
|
||||
run :
|
||||
java main_ex
|
||||
#chapitre 6 : buts factices
|
||||
|
||||
.PHONY : but clean
|
||||
|
||||
.PHONY : but run
|
Reference in New Issue
Block a user