2024-05-04 18:05:16 +02:00
|
|
|
JC := javac
|
|
|
|
JCFLAGS := -encoding UTF-8 -implicit:none
|
|
|
|
JVM := java
|
|
|
|
JVMFLAGS :=
|
2024-05-04 19:43:54 +02:00
|
|
|
|
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)
|
2024-05-04 19:43:54 +02:00
|
|
|
OFILES := $(SRC:$(SRCDIR)/%.java=$(OUTDIR)/%.class)
|
2024-05-03 08:04:15 +02:00
|
|
|
|
|
|
|
### REGLES ESSENTIELLES ###
|
2024-04-09 12:55:46 +02:00
|
|
|
|
2024-05-04 19:43:54 +02:00
|
|
|
$(OUTDIR)/%.class : $(SRCDIR)/%.java
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
${JC} ${JCFLAGS} -cp $(SRCDIR) -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 19:43:54 +02:00
|
|
|
all:
|
2024-05-03 08:04:15 +02:00
|
|
|
|
2024-05-04 19:43:54 +02:00
|
|
|
GridMaker : $(OFILES)
|
|
|
|
${JVM} ${JVMFLAGS} -cp $(OUTDIR) GridMaker $(RUN_ARGS)
|
|
|
|
|
|
|
|
GridSolver : $(OFILES)
|
|
|
|
${JVM} ${JVMFLAGS} -cp $(OUTDIR) GridSolver $(RUN_ARGS)
|
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)
|
|
|
|
|
|
|
|
### BUTS FACTICES ###
|
|
|
|
|
2024-05-04 19:43:54 +02:00
|
|
|
.PHONY: all GridMaker GridSolver clean doc
|
2024-05-04 18:05:16 +02:00
|
|
|
|
2024-05-04 19:39:22 +02:00
|
|
|
### FIN ###
|