40 lines
796 B
Makefile
40 lines
796 B
Makefile
### VARIABLES ###
|
|
|
|
JC = javac
|
|
JCFLAGS = -encoding UTF-8 -implicit:none
|
|
|
|
JVM = java
|
|
JVMFLAGS =
|
|
|
|
### REGLES ESSENTIELLES ###
|
|
|
|
mainProgramme2.class : mainProgramme2.java menuProgramme2.class
|
|
${JC} ${JCFLAGS} mainProgramme2.java
|
|
|
|
grille.class : grille.java resolveurGrille.class
|
|
${JC} ${JCFLAGS} grille.java
|
|
|
|
menuProgramme2.class : menuProgramme2.java resolveurGrille.class grille.class
|
|
${JC} ${JCFLAGS} menuProgramme2.java
|
|
|
|
resolveurGrille.class : resolveurGrille.java
|
|
${JC} ${JCFLAGS} resolveurGrille.java
|
|
|
|
### REGLES OPTIONNELLES ###
|
|
|
|
run1 : mainProgramme1.class
|
|
${JVM} ${JVMFLAGS} mainProgramme1
|
|
|
|
run2 : mainProgramme2.class
|
|
${JVM} ${JVMFLAGS} mainProgramme2
|
|
|
|
clean :
|
|
-rm -f *.class
|
|
|
|
mrproper : clean mainProgramme2.class
|
|
|
|
### BUTS FACTICES ###
|
|
|
|
.PHONY : run clean mrproper
|
|
|
|
### FIN ###
|