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