Statistics
| Revision:

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

History | View | Annotate | Download (1.63 KB)

1
# Colonet GUI Makefile
2
# Gregory Tress, Eugene Marinelli
3
#
4
# DIR is the name of the class output directory
5
# CCFLAGS are the compiler options
6
# CCWARN specifies which warnings should be displayed
7
#
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
CC = javac
15
DIR = build
16
CCFLAGS = -g -d $(DIR) -target 1.5
17
CCWARN = -Xlint:deprecation,unchecked,fallthrough,path,finally
18

    
19
COLONETFILES = BatteryIcon.java  Colonet.java  ColonetConstants.java \
20
               ColonetServerInterface.java  GraphicsPanel.java  RobotIcon.java \
21
               RobotList.java  TaskAddWindow.java  VectorController.java
22

    
23
# Java file compilation instructions
24

    
25
default: $(DIR) $(DIR)/Colonet.class $(DIR)/Colonet.jar
26

    
27
$(DIR):
28
	mkdir $(DIR)
29

    
30
$(DIR)/Colonet.jar: $(DIR)/Colonet.class
31
	@echo --- Creating archive file ---
32
	cd $(DIR); jar cf Colonet.jar *.class; jarsigner -keystore ../colonetkey -storepass colonet Colonet.jar colonet
33
	@echo --- Done ---
34

    
35
$(DIR)/Colonet.class: $(COLONETFILES)
36
	@echo --- Compiling ---
37
	$(CC) $(CCWARN) $(CCFLAGS) Colonet.java
38

    
39
# Install into the local computer's www directory.
40
# The user should use sudo when running make install.
41

    
42
install: default
43
	@echo --- Copying files to /var/www/colonet ---
44
	rm -rf /var/www/colonet/
45
	mkdir /var/www/colonet/
46
	cp $(DIR)/Colonet.jar /var/www/colonet/Colonet.jar
47
	cp index.xhtml /var/www/colonet/index.xhtml
48
	cp colonetstyle.css /var/www/colonet/colonetstyle.css
49

    
50
clean:
51
	$(RM) -r $(DIR)
52
	$(RM) *~
53

    
54
run:
55
	appletviewer http://128.2.99.176/colonet