ajout Makefile
This commit is contained in:
parent
a524804fad
commit
cb624006de
40
CASE/Makefile
Normal file
40
CASE/Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
# PROJET TAQUIN MAKEFILE:
|
||||
#
|
||||
# Chapitre 1: But final;
|
||||
|
||||
but: main_ex.class
|
||||
|
||||
# Chapitre 2 : Variable
|
||||
OFILES= Case.class\
|
||||
plateau.class\
|
||||
observateurCase.class
|
||||
|
||||
CFLAGS= -implicit:none
|
||||
|
||||
# Chapitre 3 : Dependances (règle implicite):
|
||||
Case.class: Case.java
|
||||
javac $(CFLAGS) Case.java
|
||||
|
||||
plateau.class : plateau.java Case.class
|
||||
javac $(CFLAGS) plateau.java
|
||||
|
||||
observateurCase.class : observateurCase.java Case.class
|
||||
javac $(CFLAGS) observateurCase.java
|
||||
|
||||
# Chapitre 4 : Dependances
|
||||
|
||||
main_ex.class: $(OFILES) main_ex.java
|
||||
javac $(CFLAGS) main_ex.java
|
||||
|
||||
#Chapitre 5: nettoyage des fichiers generes
|
||||
|
||||
clean :
|
||||
-rm -f $(OFILES)
|
||||
|
||||
run :
|
||||
java main_ex
|
||||
#chapitre 6 : buts factices
|
||||
|
||||
.PHONY : but clean
|
||||
|
||||
.PHONY : but run
|
Loading…
Reference in New Issue
Block a user