2024-05-03 08:04:15 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
JC := javac
|
|
|
|
JCFLAGS := -encoding UTF-8 -implicit:none
|
|
|
|
JVM := java
|
|
|
|
JVMFLAGS :=
|
2024-05-03 01:32:06 +02:00
|
|
|
SRCDIR := ./src
|
|
|
|
OUTDIR := ./build
|
2024-05-04 18:05:16 +02:00
|
|
|
DOCDIR := ./doc
|
|
|
|
SRC := $(wildcard $(SRCDIR)/*.java)
|
|
|
|
OFILES := $(wildcard $(OUTDIR)/*.class)
|
2024-05-03 08:04:15 +02:00
|
|
|
|
|
|
|
### REGLES ESSENTIELLES ###
|
2024-04-09 12:55:46 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GridSolver.class : ${SRCDIR}/GridSolver.java Window.class HomeView.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/GridSolver.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GMChecker.class : ${SRCDIR}/GMChecker.java GMGrid.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/GMChecker.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GMHowToCreateView.class : ${SRCDIR}/GMHowToCreateView.java
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/GMHowToCreateView.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
HomeView.class HomeButtonClickListener.class : ${SRCDIR}/HomeView.java ${SRCDIR}/HomeButtonClickListener.java MusicButton.class Window.class Title.class Button.class DialogManager.class GMUserInterfaceView.class GSMenu.class GSMenuController.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/HomeView.java ${SRCDIR}/HomeButtonClickListener.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GSMenu.class : ${SRCDIR}/GSMenu.java Window.class Title.class Button.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/GSMenu.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GSMenuController.class : ${SRCDIR}/GSMenuController.java GSMenu.class Window.class GSGrid.class GSPlay.class GSPlayController.class GSSolver.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/GSMenuController.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GSGrid.class GSCase.class GSCaseMouseListener.class : ${SRCDIR}/GSGrid.java GSMenu.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/GSGrid.java ${SRCDIR}/GSCase.java ${SRCDIR}/GSCaseMouseListener.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 19:39:22 +02:00
|
|
|
GSPlay.class GSPlayController.class : ${SRCDIR}/GSPlay.java GSGrid.class Button.class Window.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/GSPlay.java ${SRCDIR}/GSPlayController.java -d $(OUTDIR)
|
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GSSolver.class : ${SRCDIR}/GSSolver.java GSGrid.class Window.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/GSSolver.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
MusicButton.class : ${SRCDIR}/MusicButton.java MusicPlayer.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/MusicButton.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
MusicPlayer.class : ${SRCDIR}/MusicPlayer.java
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/MusicPlayer.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
Rules.class : ${SRCDIR}/Rules.java RulesDialogManager.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/Rules.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
RulesDialogManager.class : ${SRCDIR}/RulesDialogManager.java DialogManager.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/RulesDialogManager.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
DialogManager.class : ${SRCDIR}/DialogManager.java
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/DialogManager.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
RulesSudoku.class : ${SRCDIR}/RulesSudoku.java
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/RulesSudoku.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
Window.class : ${SRCDIR}/Window.java
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/Window.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
Title.class : ${SRCDIR}/Title.java
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/Title.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
Button.class : ${SRCDIR}/Button.java
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/Button.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GMUserInterfaceView.class : ${SRCDIR}/GMUserInterfaceView.java GMGrid.class GMResetGrid.class GMImport.class GMSaverActionListener.class GMHowToCreateController.class Rules.class GMUserInterfaceController.class
|
|
|
|
${JC} ${JFCLAGS} -cp $(SRCDIR) ${SRCDIR}/GMUserInterfaceView.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GMGrid.class : ${SRCDIR}/GMGrid.java GMCase.class
|
|
|
|
${JC} ${JFCLAGS} -cp $(SRCDIR) ${SRCDIR}/GMGrid.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GMCase.class GMCaseKeyListener.class GMCaseMouseListener.class : ${SRCDIR}/GMCase.java ${SRCDIR}/GMCaseKeyListener.java ${SRCDIR}/GMCaseMouseListener.java
|
|
|
|
${JC} ${JFCLAGS} -cp $(SRCDIR) ${SRCDIR}/GMCase.java ${SRCDIR}/GMCaseKeyListener.java ${SRCDIR}/GMCaseMouseListener.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GMResetGrid.class : ${SRCDIR}/GMResetGrid.java GMGrid.class
|
|
|
|
${JC} ${JFCLAGS} -cp $(SRCDIR) ${SRCDIR}/GMResetGrid.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GMImport.class : ${SRCDIR}/GMImport.java GMGrid.class
|
|
|
|
${JC} ${JFCLAGS} -cp $(SRCDIR) ${SRCDIR}/GMImport.java -d $(OUTDIR)
|
2024-04-09 12:55:46 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GMSaverActionListener.class GMSaver.class : ${SRCDIR}/GMSaverActionListener.java ${SRCDIR}/GMSaver.java GMGrid.class
|
|
|
|
${JC} ${JFCLAGS} -cp $(SRCDIR) ${SRCDIR}/GMSaverActionListener.java ${SRCDIR}/GMSaver.java -d $(OUTDIR)
|
2024-04-29 16:26:16 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GMHowToCreateController.class : ${SRCDIR}/GMHowToCreateController.java GMHowToCreateDialogManager.class
|
|
|
|
${JC} ${JFCLAGS} -cp $(SRCDIR) ${SRCDIR}/GMHowToCreateController.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GMHowToCreateDialogManager.class : ${SRCDIR}/GMHowToCreateDialogManager.java DialogManager.class
|
|
|
|
${JC} ${JFCLAGS} -cp $(SRCDIR) ${SRCDIR}/GMHowToCreateDialogManager.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GMUserInterfaceController.class : ${SRCDIR}/GMUserInterfaceController.java Window.class
|
|
|
|
${JC} ${JFCLAGS} -cp $(SRCDIR) ${SRCDIR}/GMUserInterfaceController.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GridMaker.class : ${SRCDIR}/GridMaker.java Window.class HomeView.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/GridMaker.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GSWin.class : ${SRCDIR}/GSWin.java DialogManager.class CongratulationsDialog.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/GSWin.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
CongratulationsDialog.class : ${SRCDIR}/CongratulationsDialog.java
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/CongratulationsDialog.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GSTest.class : ${SRCDIR}/GSTest.java GSGrid.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/GSTest.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GSImport.class : ${SRCDIR}/GSImport.java Window.class
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/GSImport.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
### REGLES OPTIONNELLES ###
|
2024-05-03 08:58:05 +02:00
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GridMaker : Window.class Title.class RulesSudoku.class RulesDialogManager.class Rules.class MusicPlayer.class MusicButton.class HomeView.class HomeButtonClickListener.class GridMaker.class GMUserInterfaceView.class GMUserInterfaceController.class GMSaverActionListener.class GMSaver.class GMResetGrid.class GMImport.class GMHowToCreateView.class GMHowToCreateDialogManager.class GMHowToCreateController.class GMGrid.class GMChecker.class GMCaseMouseListener.class GMCaseKeyListener.class GMCase.class DialogManager.class Button.class
|
2024-05-03 08:04:15 +02:00
|
|
|
${JVM} ${JVMFLAGS} -cp $(OUTDIR) GridMaker
|
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
GridSolver : Window.class Title.class RulesSudoku.class RulesDialogManager.class Rules.class MusicPlayer.class MusicButton.class HomeView.class HomeButtonClickListener.class GSWin.class GSTest.class GSSolver.class GSPlayController.class GSPlay.class GSMenuController.class GSMenu.class GSImport.class GSGrid.class GSCaseMouseListener.class GSCase.class GridSolver.class DialogManager.class CongratulationsDialog.class Button.class
|
2024-05-03 08:04:15 +02:00
|
|
|
${JVM} ${JVMFLAGS} -cp $(OUTDIR) GridSolver
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-04-09 12:55:46 +02:00
|
|
|
clean :
|
|
|
|
-rm -rf $(OUTDIR)
|
|
|
|
-rm -rf $(DOCDIR)
|
|
|
|
|
2024-05-04 18:05:16 +02:00
|
|
|
doc :
|
|
|
|
javadoc -d $(DOCDIR) $(SRC)
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
### BUTS FACTICES ###
|
|
|
|
|
|
|
|
.PHONY : run clean doc
|
|
|
|
|
2024-05-04 19:39:22 +02:00
|
|
|
### FIN ###
|