wordbubbles/Makefile
2016-02-15 18:59:50 +00:00

31 lines
534 B
Makefile

JAVA = /usr/bin/java
# JAVAFLAGS = -version # -classpath $(LIBS)
JAVAC = /usr/bin/javac
JFLAGS = -g # -classpath $(LIBS)
SRCS = main.java \
uk/org/mafoo/wordbubbles/Cell.java \
uk/org/mafoo/wordbubbles/ImpossibleException.java \
uk/org/mafoo/wordbubbles/Lexicon.java \
uk/org/mafoo/wordbubbles/Prison.java
OBJS = ${SRCS:.java=.class}
.SUFFIXES: .java .class
all: build wordbubbles.jar
run: all
$(JAVA) main
.java.class:
$(JAVAC) $(JFLAGS) $<
build: $(OBJS)
clean:
rm -f $(OBJS)
wordbubbles.jar: build
jar cf $(OBJS)