1 | #
|
---|
2 | # Copyright (C) 2008 Sun Microsystems, Inc.
|
---|
3 | #
|
---|
4 | # Sun Microsystems, Inc. confidential
|
---|
5 | # All rights reserved
|
---|
6 | #
|
---|
7 |
|
---|
8 | JAVA16=java
|
---|
9 | JAVA15=/usr/lib/jvm/java-1.5.0-sun/bin/java
|
---|
10 | JAVAC = javac
|
---|
11 | JAVAC15 = javac -target 1.5
|
---|
12 | JAVAC16 = javac -target 1.6
|
---|
13 | MKDIR = mkdir
|
---|
14 | RM = rm
|
---|
15 |
|
---|
16 | DEST16 = ./gen16
|
---|
17 | DEST15 = ./gen15
|
---|
18 |
|
---|
19 | VBOXWS15 = ../lib/vboxws_java15.jar
|
---|
20 | VBOXWS16 = ../lib/vboxws_java16.jar
|
---|
21 |
|
---|
22 | JAXWS=./jaxws-ri
|
---|
23 | JAXWSLIBS=$(JAXWS)/lib/jaxws-api.jar:$(JAXWS)/lib/jaxb-api.jar:$(JAXWS)/lib/jsr181-api.jar:$(JAXWS)/lib/jaxws-rt.jar
|
---|
24 |
|
---|
25 | all: run16
|
---|
26 |
|
---|
27 | metric: metric16
|
---|
28 |
|
---|
29 | $(DEST16)/clienttest.class: clienttest.java
|
---|
30 | $(MKDIR) -p $(DEST16)
|
---|
31 | $(JAVAC16) -d $(DEST16) -cp $(VBOXWS16) $<
|
---|
32 |
|
---|
33 | $(DEST15)/clienttest.class: clienttest.java
|
---|
34 | $(MKDIR) -p $(DEST15)
|
---|
35 | $(JAVAC15) -d $(DEST15) -cp $(VBOXWS15):$(JAXWSLIBS) $<
|
---|
36 |
|
---|
37 | run16: $(DEST16)/clienttest.class
|
---|
38 | $(JAVA16) -cp $(VBOXWS16):$(DEST16) clienttest show vms
|
---|
39 |
|
---|
40 | run15: $(DEST15)/clienttest.class
|
---|
41 | $(JAVA15) -cp $(VBOXWS15):$(JAXWSLIBS):$(DEST15) clienttest show vms
|
---|
42 |
|
---|
43 | $(DEST16)/metrictest.class: metrictest.java
|
---|
44 | $(MKDIR) -p $(DEST16)
|
---|
45 | $(JAVAC16) -d $(DEST16) -cp $(VBOXWS16) $<
|
---|
46 |
|
---|
47 | $(DEST15)/metrictest.class: metrictest.java
|
---|
48 | $(MKDIR) -p $(DEST15)
|
---|
49 | $(JAVAC15) -d $(DEST15) -cp $(VBOXWS15):$(JAXWSLIBS) $<
|
---|
50 |
|
---|
51 | metric16: $(DEST16)/metrictest.class
|
---|
52 | -$(JAVA16) -cp $(VBOXWS16):$(DEST16) metrictest
|
---|
53 |
|
---|
54 | metric15: $(DEST15)/metrictest.class
|
---|
55 | -$(JAVA15) -cp $(VBOXWS15):$(JAXWSLIBS):$(DEST15) metrictest
|
---|
56 |
|
---|
57 | clean:
|
---|
58 | $(RM) -rf $(DEST15) $(DEST16)
|
---|