root / trunk / code / projects / colonet / ColonetGUI / Makefile @ 373
History | View | Annotate | Download (1.16 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 |
|
25 |
JAR = jar |
26 |
JARFLAGS = cvf |
27 |
|
28 |
# Java file compilation instructions |
29 |
# For default compilation, archive classes into Colonet.jar |
30 |
|
31 |
default: $(DIR)/Colonet.class build/ColonetServerInterface.class |
32 |
$(JAR) $(JARFLAGS) $(DIR)/Colonet.jar $(DIR)/*.class |
33 |
|
34 |
$(DIR)/Colonet.class: ColonetServerInterface.java |
35 |
$(JC) $(JCWARN) $(JCFLAGS) Colonet.java |
36 |
|
37 |
$(DIR)/ColonetServerInterface.class: ColonetServerInterface.java |
38 |
$(JC) $(JCWARN) $(JCFLAGS) ColonetServerInterface.java |
39 |
|
40 |
|
41 |
clean: |
42 |
$(RM) $(DIR)/*.class |
43 |
$(RM) $(DIR)/*.jar |
44 |
|
45 |
|