Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (1.4 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
# Java file compilation instructions
20

    
21
default: $(DIR) $(DIR)/Colonet.class $(DIR)/Colonet.jar
22

    
23
$(DIR):
24
	mkdir $(DIR)
25

    
26
$(DIR)/Colonet.jar: $(DIR)/Colonet.class
27
	@echo --- Creating archive file ---
28
	cd $(DIR); jar cf Colonet.jar *.class; jarsigner -keystore ../colonetkey -storepass colonet Colonet.jar colonet
29
	@echo --- Done ---
30

    
31
$(DIR)/Colonet.class: Colonet.java
32
	@echo --- Compiling ---
33
	$(CC) $(CCWARN) $(CCFLAGS) Colonet.java
34

    
35
# Install into the local computer's www directory.
36
# The user should use sudo when running make install.
37

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

    
46
clean:
47
	$(RM) -rf $(DIR)
48

    
49
run:
50
	appletviewer http://128.2.99.176/colonet