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
|
2017-10-23 13:28:12 +02:00
|
|
|
LIBRARIES=\
|
2017-10-20 14:50:43 +02:00
|
|
|
lib/jansi-1.16.jar
|
2017-10-13 11:04:14 +02:00
|
|
|
CLASSES=\
|
2017-10-23 13:28:12 +02:00
|
|
|
src/game/Main.java \
|
|
|
|
src/game/Game.java \
|
|
|
|
src/game/GameHistory.java \
|
|
|
|
src/game/GameEntry.java \
|
|
|
|
src/game/PlayerObject.java \
|
|
|
|
src/player/Player.java \
|
|
|
|
src/player/Human.java \
|
|
|
|
src/player/malte/MalteAI.java \
|
2017-10-21 20:27:52 +02:00
|
|
|
src/player/malte/Position.java \
|
2017-10-23 14:07:25 +02:00
|
|
|
src/player/malte/Sequence.java \
|
2017-10-23 13:28:12 +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
|
2017-10-20 22:58:07 +02:00
|
|
|
P1=
|
|
|
|
P2=
|
2017-10-18 23:21:13 +02:00
|
|
|
|
2017-10-13 11:04:14 +02:00
|
|
|
|
|
|
|
all: $(CLASSES) $(FXMLS_BUILD)
|
2017-10-24 21:32:39 +02:00
|
|
|
$(JAVAC) $(JAVAC_OPTIONS) -cp $(CLASSPATH);$(LIBRARIES) $(CLASSES) -d $(BUILDS)
|
2017-10-13 11:04:14 +02:00
|
|
|
|
|
|
|
run: $(CLASSES)
|
2017-10-24 21:32:39 +02:00
|
|
|
$(JAVA) -cp $(BUILDS);$(LIBRARIES) $(MAIN) $(P1) $(P2)
|
2017-10-13 11:04:14 +02:00
|
|
|
|
2017-10-18 23:21:13 +02:00
|
|
|
simulate: $(CLASSES)
|
2017-10-24 21:32:39 +02:00
|
|
|
$(JAVA) -cp $(BUILDS);$(LIBRARIES) $(MAIN) $(N)
|
2017-10-18 23:21:13 +02:00
|
|
|
|
2017-10-13 11:04:14 +02:00
|
|
|
doc: $(CLASSES)
|
2017-10-24 21:32:39 +02:00
|
|
|
$(JAVADOC) $(JAVADOC_OPTIONS) -cp $(CLASSPATH);$(LIBARIES) $(CLASSES) -d $(DOC)
|
2017-10-13 11:04:14 +02:00
|
|
|
|
|
|
|
jar: all
|
|
|
|
$(JAR) -cfe VierGewinnt.jar $(MAIN) -C $(BUILDS) .
|
|
|
|
|
|
|
|
clean:
|
2017-10-20 21:49:05 +02:00
|
|
|
rm -rf $(BUILDS)\* $(DOC)\* VierGewinnt.jar
|