# Colonet GUI Makefile
# Gregory Tress
#
# DIR is the name of the output directory
# JCFLAGS are the compiler options
# JCWARN specifies which warnings should be displayed
#
# Complier Flags
# -g Generate all debugging info
# -d
Specify where to place generated class files
# -target Generate class files for a specific VM release (i.e. 1.6)
# -Xlint Enable warnings
JC = javac
DIR = build
JCFLAGS = -g -d $(DIR) -target 1.5
JCWARN = -Xlint:deprecation,unchecked,fallthrough,path,finally
# Jar Flags
# c Create new archive
# v Generate verbose output while archiving
# f Specify archive file name
JAR = jar
JARFLAGS = cvf
# Java file compilation instructions
# For default compilation, archive classes into Colonet.jar
default: $(DIR)/Colonet.class build/ColonetServerInterface.class
$(JAR) $(JARFLAGS) $(DIR)/Colonet.jar $(DIR)/*.class
$(DIR)/Colonet.class: ColonetServerInterface.java
$(JC) $(JCWARN) $(JCFLAGS) Colonet.java
$(DIR)/ColonetServerInterface.class: ColonetServerInterface.java
$(JC) $(JCWARN) $(JCFLAGS) ColonetServerInterface.java
clean:
$(RM) $(DIR)/*.class
$(RM) $(DIR)/*.jar