Makefile revision 2c76fd8cdec6f32663a03b16fb5871f7c54330a6
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync#
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync# Copyright (C) 2010-2011 Oracle Corporation
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync#
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync# available from http://www.virtualbox.org. This file is free software;
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync# you can redistribute it and/or modify it under the terms of the GNU
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync# General Public License (GPL) as published by the Free Software
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync#
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsyncHOSTOS=linux
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsyncVBOX_BIN = ../../../..
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsyncVBOX_SDK = ../../..
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsyncJACOB_DIR =
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsyncCLASSPATH = .
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsyncifeq ($(HOSTOS),win)
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync JACOB_JAR=$(JACOB_DIR)/jacob.jar
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync VBOX_JAR=$(VBOX_SDK)/bindings/mscom/java/vboxjmscom.jar
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync SEP=\;
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync JAVA_COM_ARGS += -Djava.library.path=$(JACOB_DIR)
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync CLASSPATH += $(JACOB_JAR)$(SEP)
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsyncelse
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync VBOX_JAR=$(VBOX_SDK)/bindings/xpcom/java/vboxjxpcom.jar
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync SEP=:
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync JAVA_COM_ARGS += -Dvbox.home=$(VBOX_BIN)
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsyncendif
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsyncVBOX_JAR_WS=$(VBOX_SDK)/bindings/webservice/java/jax-ws/vboxjws.jar
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsyncall: ws/TestVBox.class com/TestVBox.class
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsynctest: ws/test-TestVBox com/test-TestVBox
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsynccom/TestVBox.class:
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync @mkdir com 2>/dev/null || true
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync javac -g -d com -cp $(VBOX_JAR)$(SEP)$(CLASSPATH) TestVBox.java
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsynccom/test-TestVBox: com/TestVBox.class
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync java $(JAVA_COM_ARGS) -cp com$(SEP)$(VBOX_JAR)$(SEP)$(CLASSPATH) TestVBox
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsyncws/TestVBox.class:
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync @mkdir ws 2>/dev/null || true
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync javac -d ws -cp $(VBOX_JAR_WS)$(SEP)$(CLASSPATH) TestVBox.java
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsyncws/test-TestVBox: ws/TestVBox.class
2c76fd8cdec6f32663a03b16fb5871f7c54330a6vboxsync java $(JAVA_WS_ARGS) -cp ws$(SEP)$(VBOX_JAR_WS)$(SEP)$(CLASSPATH) TestVBox -w -url http://localhost:18083/