Correction du makefile
This commit is contained in:
parent
ff895c17c5
commit
2edf4581fe
3
Makefile
3
Makefile
@ -32,6 +32,9 @@ GSMenuController.class : ${SRCDIR}/GSMenuController.java GSMenu.class Window.cla
|
||||
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)
|
||||
|
||||
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)
|
||||
|
||||
GSSolver.class : ${SRCDIR}/GSSolver.java GSGrid.class Window.class
|
||||
${JC} ${JCFLAGS} -cp $(SRCDIR) ${SRCDIR}/GSSolver.java -d $(OUTDIR)
|
||||
|
||||
|
40
Makefile-V2
Normal file
40
Makefile-V2
Normal file
@ -0,0 +1,40 @@
|
||||
JC := javac
|
||||
JCFLAGS := -encoding UTF-8 -implicit:none
|
||||
JVM := java
|
||||
JVMFLAGS :=
|
||||
|
||||
SRCDIR := ./src
|
||||
OUTDIR := ./build
|
||||
DOCDIR := ./doc
|
||||
SRC := $(wildcard $(SRCDIR)/*.java)
|
||||
OFILES := $(SRC:$(SRCDIR)/%.java=$(OUTDIR)/%.class)
|
||||
|
||||
### REGLES ESSENTIELLES ###
|
||||
|
||||
$(OUTDIR)/%.class : $(SRCDIR)/%.java
|
||||
@mkdir -p $(@D)
|
||||
${JC} ${JCFLAGS} -cp $(SRCDIR) -d $(OUTDIR) $<
|
||||
|
||||
|
||||
### REGLES OPTIONNELLES ###
|
||||
|
||||
all:
|
||||
|
||||
GridMaker : $(OFILES)
|
||||
${JVM} ${JVMFLAGS} -cp $(OUTDIR) GridMaker $(RUN_ARGS)
|
||||
|
||||
GridSolver : $(OFILES)
|
||||
${JVM} ${JVMFLAGS} -cp $(OUTDIR) GridSolver $(RUN_ARGS)
|
||||
|
||||
clean :
|
||||
-rm -rf $(OUTDIR)
|
||||
-rm -rf $(DOCDIR)
|
||||
|
||||
doc :
|
||||
javadoc -d $(DOCDIR) $(SRC)
|
||||
|
||||
### BUTS FACTICES ###
|
||||
|
||||
.PHONY: all GridMaker GridSolver clean doc
|
||||
|
||||
### FIN ###
|
Loading…
Reference in New Issue
Block a user