2024-04-09 12:55:46 +02:00
|
|
|
|
|
|
|
JC := javac
|
|
|
|
JCFLAGS := -encoding UTF-8 -implicit:none
|
|
|
|
JVM := java
|
|
|
|
JVMFLAGS :=
|
|
|
|
|
2024-04-29 16:26:16 +02:00
|
|
|
SRCDIR := ./src
|
2024-04-29 18:20:37 +02:00
|
|
|
OUTDIR := ./build
|
2024-04-09 12:55:46 +02:00
|
|
|
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) $<
|
|
|
|
|
2024-04-29 18:20:37 +02:00
|
|
|
|
2024-04-09 12:55:46 +02:00
|
|
|
### REGLES OPTIONNELLES ###
|
|
|
|
|
2024-04-29 16:26:16 +02:00
|
|
|
GridMaker : $(OFILES)
|
|
|
|
${JVM} ${JVMFLAGS} -cp $(OUTDIR) GridMaker $(RUN_ARGS)
|
|
|
|
|
|
|
|
GridSolver : $(OFILES)
|
|
|
|
${JVM} ${JVMFLAGS} -cp $(OUTDIR) GridSolver $(RUN_ARGS)
|
2024-04-09 12:55:46 +02:00
|
|
|
|
|
|
|
clean :
|
|
|
|
-rm -rf $(OUTDIR)
|
|
|
|
-rm -rf $(DOCDIR)
|
|
|
|
|
|
|
|
doc :
|
|
|
|
javadoc -d $(DOCDIR) $(SRC)
|
|
|
|
|
2024-04-29 18:20:37 +02:00
|
|
|
default:
|
|
|
|
|
2024-04-09 12:55:46 +02:00
|
|
|
### BUTS FACTICES ###
|
|
|
|
|
|
|
|
.PHONY : run clean doc
|
|
|
|
|
2024-04-29 14:34:45 +02:00
|
|
|
### FIN ###
|