Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (1.21 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
# Jar Flags
21
#  c             Create new archive
22
#  v             Generate verbose output while archiving
23
#  f             Specify archive file name
24
#  i             Generate index information
25

    
26
JAR = jar
27
JARFLAGS = cvfi
28

    
29
# Java file compilation instructions
30
# For default compilation, archive classes into Colonet.jar
31

    
32
default: $(DIR)/Colonet.class build/ColonetServerInterface.class
33
	$(JAR) $(JARFLAGS) $(DIR)/Colonet.jar $(DIR)/*.class
34

    
35
$(DIR)/Colonet.class: ColonetServerInterface.java
36
	$(JC) $(JCWARN) $(JCFLAGS) Colonet.java
37

    
38
$(DIR)/ColonetServerInterface.class: ColonetServerInterface.java
39
	$(JC) $(JCWARN) $(JCFLAGS) ColonetServerInterface.java
40

    
41

    
42
clean:
43
	$(RM) $(DIR)/*.class
44
	$(RM) $(DIR)/*.jar
45

    
46