VierGewinnt/Makefile

53 lines
1 KiB
Makefile
Raw Normal View History

2017-10-13 11:04:14 +02:00
JAVA=java
JAVAC=javac
JAVADOC=javadoc
JAR=jar
JAVAC_OPTIONS=-Xlint:all
JAVADOC_OPTIONS=-Xdoclint:all -private -encoding UTF-8 -charset UTF-8 -docencoding UTF-8
BUILDS=builds
DOC=doc
CLASSPATH=src
LIBARIES=
CLASSES=\
src/game/Main.java \
src/game/Game.java \
src/game/GameHistory.java \
src/game/GameEntry.java \
src/game/PlayerObject.java \
2017-10-13 14:43:08 +02:00
src/player/Player.java \
src/player/Human.java \
2017-10-18 14:07:16 +02:00
src/player/malte/MalteAI.java \
2017-10-21 20:27:52 +02:00
src/player/malte/Position.java \
2017-10-18 14:07:16 +02:00
src/player/maurizio/MaurizioAI.java
2017-10-13 11:04:14 +02:00
OBJECTS=$($(subst $(CLASSPATH),$(BUILDS),$(CLASSES)):.java=.class)
BUILDFILES=$(OBJECTS) $(FXMLS_BUILD)
MAIN=game.Main
2017-10-18 23:21:13 +02:00
N=100
P1=
P2=
2017-10-18 23:21:13 +02:00
2017-10-13 11:04:14 +02:00
all: $(CLASSES) $(FXMLS_BUILD)
$(JAVAC) $(JAVAC_OPTIONS) -cp $(CLASSPATH) $(CLASSES) -d $(BUILDS)
2017-10-13 11:04:14 +02:00
run: $(CLASSES)
$(JAVA) -cp $(BUILDS) $(MAIN) $(P1) $(P2)
2017-10-13 11:04:14 +02:00
2017-10-18 23:21:13 +02:00
simulate: $(CLASSES)
$(JAVA) -cp $(BUILDS) $(MAIN) $(N)
2017-10-18 23:21:13 +02:00
2017-10-13 11:04:14 +02:00
doc: $(CLASSES)
$(JAVADOC) $(JAVADOC_OPTIONS) -cp $(CLASSPATH):$(LIBARIES) $(CLASSES) -d $(DOC)
jar: all
$(JAR) -cfe VierGewinnt.jar $(MAIN) -C $(BUILDS) .
clean:
rm -rf $(BUILDS)\* $(DOC)\* VierGewinnt.jar