# Colonet GUI Makefile # Gregory Tress, Eugene Marinelli # # DIR is the name of the class output directory # CCFLAGS are the compiler options # CCWARN 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 CC = javac DIR = build CCFLAGS = -g -d $(DIR) -target 1.5 CCWARN = -Xlint:deprecation,unchecked,fallthrough,path,finally COLONETFILES = BatteryIcon.java Colonet.java ColonetConstants.java \ ColonetServerInterface.java GraphicsPanel.java RobotIcon.java \ RobotList.java TaskAddWindow.java VectorController.java # Java file compilation instructions default: $(DIR) $(DIR)/Colonet.class $(DIR)/Colonet.jar $(DIR): mkdir $(DIR) $(DIR)/Colonet.jar: $(DIR)/Colonet.class @echo --- Creating archive file --- cd $(DIR); jar cf Colonet.jar *.class; jarsigner -keystore ../colonetkey -storepass colonet Colonet.jar colonet @echo --- Done --- $(DIR)/Colonet.class: $(COLONETFILES) @echo --- Compiling --- $(CC) $(CCWARN) $(CCFLAGS) Colonet.java # Install into the local computer's www directory. # The user should use sudo when running make install. install: default @echo --- Copying files to /var/www/colonet --- rm -rf /var/www/colonet/ mkdir /var/www/colonet/ cp $(DIR)/Colonet.jar /var/www/colonet/Colonet.jar cp index.xhtml /var/www/colonet/index.xhtml cp colonetstyle.css /var/www/colonet/colonetstyle.css clean: $(RM) -r $(DIR) $(RM) *~ run: appletviewer http://128.2.99.176/colonet