Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / colonet / client / Makefile @ 776

History | View | Annotate | Download (1.63 KB)

1 372 gtress
# Colonet GUI Makefile
2 635 gtress
# Gregory Tress, Eugene Marinelli
3 372 gtress
#
4 635 gtress
# DIR is the name of the class output directory
5
# CCFLAGS are the compiler options
6
# CCWARN specifies which warnings should be displayed
7 372 gtress
#
8
# Complier Flags
9
#  -g            Generate all debugging info
10
#  -d <dir>      Specify where to place generated class files
11
#  -target <vm>  Generate class files for a specific VM release (i.e. 1.6)
12
#  -Xlint        Enable warnings
13
14 635 gtress
CC = javac
15 372 gtress
DIR = build
16 635 gtress
CCFLAGS = -g -d $(DIR) -target 1.5
17
CCWARN = -Xlint:deprecation,unchecked,fallthrough,path,finally
18 372 gtress
19 708 gtress
COLONETFILES = BatteryIcon.java  Colonet.java  ColonetConstants.java \
20
               ColonetServerInterface.java  GraphicsPanel.java  RobotIcon.java \
21
               RobotList.java  TaskAddWindow.java  VectorController.java
22
23 372 gtress
# Java file compilation instructions
24
25 635 gtress
default: $(DIR) $(DIR)/Colonet.class $(DIR)/Colonet.jar
26 387 gtress
27 575 emarinel
$(DIR):
28
	mkdir $(DIR)
29
30 635 gtress
$(DIR)/Colonet.jar: $(DIR)/Colonet.class
31 400 gtress
	@echo --- Creating archive file ---
32 575 emarinel
	cd $(DIR); jar cf Colonet.jar *.class; jarsigner -keystore ../colonetkey -storepass colonet Colonet.jar colonet
33 400 gtress
	@echo --- Done ---
34 372 gtress
35 708 gtress
$(DIR)/Colonet.class: $(COLONETFILES)
36 400 gtress
	@echo --- Compiling ---
37 635 gtress
	$(CC) $(CCWARN) $(CCFLAGS) Colonet.java
38 372 gtress
39 503 gtress
# Install into the local computer's www directory.
40
# The user should use sudo when running make install.
41
42 555 emarinel
install: default
43 400 gtress
	@echo --- Copying files to /var/www/colonet ---
44 408 emarinel
	rm -rf /var/www/colonet/
45 406 gtress
	mkdir /var/www/colonet/
46 405 gtress
	cp $(DIR)/Colonet.jar /var/www/colonet/Colonet.jar
47 422 gtress
	cp index.xhtml /var/www/colonet/index.xhtml
48 408 emarinel
	cp colonetstyle.css /var/www/colonet/colonetstyle.css
49 372 gtress
50
clean:
51 708 gtress
	$(RM) -r $(DIR)
52 776 gtress
	$(RM) *~
53 567 gtress
54
run:
55
	appletviewer http://128.2.99.176/colonet