wordbubbles/Makefile

30 lines
535 B
Makefile
Raw Normal View History

2016-02-15 18:59:50 +00:00
JAVA = /usr/bin/java
# JAVAFLAGS = -version # -classpath $(LIBS)
JAVAC = /usr/bin/javac
JFLAGS = -g # -classpath $(LIBS)
SRCS = uk/org/mafoo/wordbubbles/Cell.java \
2016-02-15 18:59:50 +00:00
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) main.class
2016-02-15 18:59:50 +00:00
clean:
rm -f $(OBJS)
wordbubbles.jar: build
2016-02-15 19:01:51 +00:00
jar cf $@ $(OBJS)