root / trunk / code / projects / colonet / ColonetGUI / Makefile @ 386
History | View | Annotate | Download (1022 Bytes)
1 | 372 | gtress | # Colonet GUI Makefile |
---|---|---|---|
2 | # Gregory Tress |
||
3 | # |
||
4 | # DIR is the name of the output directory |
||
5 | # JCFLAGS are the compiler options |
||
6 | # JCWARN 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 | JC = javac |
||
15 | DIR = build |
||
16 | JCFLAGS = -g -d $(DIR) -target 1.5 |
||
17 | JCWARN = -Xlint:deprecation,unchecked,fallthrough,path,finally |
||
18 | |||
19 | # Java file compilation instructions |
||
20 | |||
21 | 376 | gtress | default: $(DIR)/Colonet.class $(DIR)/ColonetServerInterface.class |
22 | 384 | gtress | jar cvf $(DIR)/Colonet.jar $(DIR)/*.class |
23 | 372 | gtress | |
24 | $(DIR)/Colonet.class: ColonetServerInterface.java |
||
25 | $(JC) $(JCWARN) $(JCFLAGS) Colonet.java |
||
26 | |||
27 | $(DIR)/ColonetServerInterface.class: ColonetServerInterface.java |
||
28 | $(JC) $(JCWARN) $(JCFLAGS) ColonetServerInterface.java |
||
29 | |||
30 | 374 | gtress | install: |
31 | 384 | gtress | cp $(DIR)/Colonet.jar /var/www/colonet |
32 | 374 | gtress | cp index.html /var/www/colonet |
33 | 372 | gtress | |
34 | clean: |
||
35 | $(RM) $(DIR)/*.class |
||
36 | $(RM) $(DIR)/*.jar |