1 | #
|
---|
2 | # Copyright (C) 2008-2010 Oracle Corporation
|
---|
3 | #
|
---|
4 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
5 | # available from http://www.virtualbox.org. This file is free software;
|
---|
6 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
7 | # General Public License (GPL) as published by the Free Software
|
---|
8 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
9 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
10 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
11 | #
|
---|
12 |
|
---|
13 | JAVA16=java
|
---|
14 | JAVA15=/usr/lib/jvm/java-1.5.0-sun/bin/java
|
---|
15 | JAVAC = javac
|
---|
16 | JAVAC15 = javac -target 1.5
|
---|
17 | JAVAC16 = javac -target 1.6
|
---|
18 | MKDIR = mkdir
|
---|
19 | RM = rm
|
---|
20 |
|
---|
21 | DEST16 = ./gen16
|
---|
22 | DEST15 = ./gen15
|
---|
23 |
|
---|
24 | VBOXWS15 = ../lib/vboxws_java15.jar
|
---|
25 | VBOXWS16 = ../lib/vboxws_java16.jar
|
---|
26 |
|
---|
27 | JAXWS=./jaxws-ri
|
---|
28 | JAXWSLIBS=$(JAXWS)/lib/jaxws-api.jar:$(JAXWS)/lib/jaxb-api.jar:$(JAXWS)/lib/jsr181-api.jar:$(JAXWS)/lib/jaxws-rt.jar
|
---|
29 |
|
---|
30 | all: run16
|
---|
31 |
|
---|
32 | metric: metric16
|
---|
33 |
|
---|
34 | $(DEST16)/clienttest.class: clienttest.java
|
---|
35 | $(MKDIR) -p $(DEST16)
|
---|
36 | $(JAVAC16) -d $(DEST16) -cp $(VBOXWS16) $<
|
---|
37 |
|
---|
38 | $(DEST15)/clienttest.class: clienttest.java
|
---|
39 | $(MKDIR) -p $(DEST15)
|
---|
40 | $(JAVAC15) -d $(DEST15) -cp $(VBOXWS15):$(JAXWSLIBS) $<
|
---|
41 |
|
---|
42 | run16: $(DEST16)/clienttest.class
|
---|
43 | $(JAVA16) -cp $(VBOXWS16):$(DEST16) clienttest show vms
|
---|
44 |
|
---|
45 | run15: $(DEST15)/clienttest.class
|
---|
46 | $(JAVA15) -cp $(VBOXWS15):$(JAXWSLIBS):$(DEST15) clienttest show vms
|
---|
47 |
|
---|
48 | $(DEST16)/metrictest.class: metrictest.java
|
---|
49 | $(MKDIR) -p $(DEST16)
|
---|
50 | $(JAVAC16) -d $(DEST16) -cp $(VBOXWS16) $<
|
---|
51 |
|
---|
52 | $(DEST15)/metrictest.class: metrictest.java
|
---|
53 | $(MKDIR) -p $(DEST15)
|
---|
54 | $(JAVAC15) -d $(DEST15) -cp $(VBOXWS15):$(JAXWSLIBS) $<
|
---|
55 |
|
---|
56 | metric16: $(DEST16)/metrictest.class
|
---|
57 | -$(JAVA16) -cp $(VBOXWS16):$(DEST16) metrictest
|
---|
58 |
|
---|
59 | metric15: $(DEST15)/metrictest.class
|
---|
60 | -$(JAVA15) -cp $(VBOXWS15):$(JAXWSLIBS):$(DEST15) metrictest
|
---|
61 |
|
---|
62 | clean:
|
---|
63 | $(RM) -rf $(DEST15) $(DEST16)
|
---|