SAE21_2023/Makefile

40 lines
708 B
Makefile
Raw Normal View History

JC := javac
JCFLAGS := -encoding UTF-8 -implicit:none
JVM := java
JVMFLAGS :=
2024-05-04 19:43:54 +02:00
SRCDIR := ./src
OUTDIR := ./build
DOCDIR := ./doc
SRC := $(wildcard $(SRCDIR)/*.java)
2024-05-04 19:43:54 +02:00
OFILES := $(SRC:$(SRCDIR)/%.java=$(OUTDIR)/%.class)
### REGLES ESSENTIELLES ###
2024-05-04 19:43:54 +02:00
$(OUTDIR)/%.class : $(SRCDIR)/%.java
@mkdir -p $(@D)
${JC} ${JCFLAGS} -cp $(SRCDIR) -d $(OUTDIR) $<
### REGLES OPTIONNELLES ###
2024-05-03 08:58:05 +02:00
2024-05-04 19:43:54 +02:00
all:
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)
clean :
-rm -rf $(OUTDIR)
-rm -rf $(DOCDIR)
doc :
javadoc -d $(DOCDIR) $(SRC)
### BUTS FACTICES ###
2024-05-04 19:43:54 +02:00
.PHONY: all GridMaker GridSolver clean doc
2024-05-04 19:39:22 +02:00
### FIN ###