Makefile revision c58f1213e628a545081c70e26c6b67a841cff880
0N/A## @file
553N/A# Makefile for a sample/testcase using the 'glue' Java API bindings
0N/A
0N/A#
0N/A# Copyright (C) 2010-2012 Oracle Corporation
0N/A#
0N/A# This file is part of VirtualBox Open Source Edition (OSE), as
0N/A# available from http://www.virtualbox.org. This file is free software;
0N/A# you can redistribute it and/or modify it under the terms of the GNU
0N/A# General Public License (GPL) as published by the Free Software
0N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
0N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
0N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
0N/A#
0N/A
0N/A#
0N/A# User serviceable parts: adjust the following lines appropriately
0N/A#
553N/A
553N/A# The host OS: linux, solaris, win, darwin, freebsd
553N/AHOSTOS=linux
0N/A# Absolute (!) path to the VirtualBox install directory
0N/AVBOX_BIN = /opt/VirtualBox
0N/A# Path to the sdk directory of the unpacked VirtualBox SDK
0N/AVBOX_SDK = ../../..
0N/A# On Windows, if you want to use the COM API: install directory of Jacob lib
0N/AJACOB_DIR =
0N/A# Extra classpath entries needed for compiling/running the sample
0N/ACLASSPATH =
0N/A# Java compiler to use
0N/AJAVAC = javac
0N/A# Java VM to use
0N/AJAVA = java
0N/A
0N/A
0N/A#
0N/A# No changes should be necessary after this point.
0N/A#
0N/A
0N/Aifeq ($(HOSTOS),win)
0N/A JACOB_JAR=$(JACOB_DIR)/jacob.jar
0N/A VBOX_JAR=$(VBOX_SDK)/bindings/mscom/java/vboxjmscom.jar
0N/A SEP=\;
0N/A JAVA_COM_ARGS += -Djava.library.path=$(JACOB_DIR)
0N/A CLASSPATH += $(JACOB_JAR)$(SEP)
0N/Aelse
0N/A VBOX_JAR=$(VBOX_SDK)/bindings/xpcom/java/vboxjxpcom.jar
0N/A SEP=:
0N/A JAVA_COM_ARGS += -Dvbox.home=$(VBOX_BIN)
0N/Aendif
0N/A
0N/AVBOX_JAR_WS=$(VBOX_SDK)/bindings/webservice/java/jax-ws/vboxjws.jar
0N/A
0N/A
0N/Aall: ws/TestVBox.class com/TestVBox.class
0N/A
0N/Atest: ws/test-TestVBox com/test-TestVBox
0N/A
0N/Acom/TestVBox.class:
0N/A @mkdir com 2>/dev/null || true
0N/A $(JAVAC) -d com -cp $(VBOX_JAR)$(SEP)$(CLASSPATH) TestVBox.java
0N/A
0N/Acom/test-TestVBox: com/TestVBox.class
0N/A $(JAVA) $(JAVA_COM_ARGS) -cp com$(SEP)$(VBOX_JAR)$(SEP)$(CLASSPATH) TestVBox
0N/A
0N/Aws/TestVBox.class:
0N/A @mkdir ws 2>/dev/null || true
0N/A $(JAVAC) -d ws -cp $(VBOX_JAR_WS)$(SEP)$(CLASSPATH) TestVBox.java
0N/A
0N/Aws/test-TestVBox: ws/TestVBox.class
0N/A $(JAVA) $(JAVA_WS_ARGS) -cp ws$(SEP)$(VBOX_JAR_WS)$(SEP)$(CLASSPATH) TestVBox -w -url http://localhost:18083/
0N/A