Project

General

Profile

Revision 635

Added by Greg Tress about 16 years ago

Moved some code. Added documentation. Enabled multiple timings for requests

View differences:

Makefile
1 1
# Colonet GUI Makefile
2
# Gregory Tress
2
# Gregory Tress, Eugene Marinelli
3 3
#
4
# DIR is the name of the output directory
5
# JCFLAGS are the compiler options
6
# JCWARN specifies which warnings should be displayed
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 7
#
8 8
# Complier Flags
9 9
#  -g            Generate all debugging info
......
11 11
#  -target <vm>  Generate class files for a specific VM release (i.e. 1.6)
12 12
#  -Xlint        Enable warnings
13 13

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

  
19 19
# Java file compilation instructions
20 20

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

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

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

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

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

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

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

  

Also available in: Unified diff