Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / colonet / ColonetGUI / Makefile @ 374

History | View | Annotate | Download (1.01 KB)

1

    
2
# Colonet GUI Makefile
3
# Gregory Tress
4
#
5
# DIR is the name of the output directory
6
# JCFLAGS are the compiler options
7
# JCWARN specifies which warnings should be displayed
8
#
9
# Complier Flags
10
#  -g            Generate all debugging info
11
#  -d <dir>      Specify where to place generated class files
12
#  -target <vm>  Generate class files for a specific VM release (i.e. 1.6)
13
#  -Xlint        Enable warnings
14

    
15
JC = javac
16
DIR = build
17
JCFLAGS = -g -d $(DIR) -target 1.5
18
JCWARN = -Xlint:deprecation,unchecked,fallthrough,path,finally
19

    
20

    
21
# Java file compilation instructions
22
# For default compilation, archive classes into Colonet.jar
23

    
24
default: $(DIR)/Colonet.class build/ColonetServerInterface.class
25

    
26
$(DIR)/Colonet.class: ColonetServerInterface.java
27
	$(JC) $(JCWARN) $(JCFLAGS) Colonet.java
28

    
29
$(DIR)/ColonetServerInterface.class: ColonetServerInterface.java
30
	$(JC) $(JCWARN) $(JCFLAGS) ColonetServerInterface.java
31

    
32
install:
33
	cp $(DIR)/*.class /var/www/colonet
34
	cp index.html /var/www/colonet
35

    
36
clean:
37
	$(RM) $(DIR)/*.class
38
	$(RM) $(DIR)/*.jar
39

    
40