VirtualBox

Changeset 38915 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 30, 2011 10:14:42 AM (13 years ago)
Author:
vboxsync
Message:

Main/glue: update Makefile for Java sample, so that it can be used by humans

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/tests/Makefile

    r38914 r38915  
     1## @file
     2# Makefile for a sample/testcase using the 'glue' Java API bindings
     3
    14#
    25# Copyright (C) 2010-2011 Oracle Corporation
     
    1114#
    1215
     16#
     17# User serviceable parts: adjust the following lines appropriately
     18#
     19
     20# The host OS: linux, solaris, win, darwin, freebsd
    1321HOSTOS=linux
    14 VBOX_BIN = ../../../..
     22# Absolute (!) path to the VirtualBox install directory
     23VBOX_BIN = /opt/VirtualBox
     24# Path to the sdk directory of the unpacked VirtualBox SDK
    1525VBOX_SDK = ../../..
     26# On Windows, if you want to use the COM API: install directory of Jacob lib
    1627JACOB_DIR =
    17 CLASSPATH = .
     28# Extra classpath entries needed for compiling/running the sample
     29CLASSPATH =
     30# Java compiler to use
     31JAVAC = javac
     32# Java VM to use
     33JAVA = java
     34
     35
     36#
     37# No changes should be necessary after this point.
     38#
    1839
    1940ifeq ($(HOSTOS),win)
     
    3859com/TestVBox.class:
    3960        @mkdir com 2>/dev/null || true
    40         javac -g -d com -cp $(VBOX_JAR)$(SEP)$(CLASSPATH) TestVBox.java
     61        $(JAVAC) -d com -cp $(VBOX_JAR)$(SEP)$(CLASSPATH) TestVBox.java
    4162
    4263com/test-TestVBox: com/TestVBox.class
    43         java $(JAVA_COM_ARGS) -cp com$(SEP)$(VBOX_JAR)$(SEP)$(CLASSPATH) TestVBox
     64        $(JAVA) $(JAVA_COM_ARGS) -cp com$(SEP)$(VBOX_JAR)$(SEP)$(CLASSPATH) TestVBox
    4465
    4566ws/TestVBox.class:
    4667        @mkdir ws 2>/dev/null || true
    47         javac -d ws -cp $(VBOX_JAR_WS)$(SEP)$(CLASSPATH) TestVBox.java
     68        $(JAVAC) -d ws -cp $(VBOX_JAR_WS)$(SEP)$(CLASSPATH) TestVBox.java
    4869
    4970ws/test-TestVBox: ws/TestVBox.class
    50         java $(JAVA_WS_ARGS) -cp ws$(SEP)$(VBOX_JAR_WS)$(SEP)$(CLASSPATH) TestVBox -w -url http://localhost:18083/
     71        $(JAVA) $(JAVA_WS_ARGS) -cp ws$(SEP)$(VBOX_JAR_WS)$(SEP)$(CLASSPATH) TestVBox -w -url http://localhost:18083/
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette