0N/A# Sub-Makefile for the VBox C Binding.
0N/A# Copyright (C) 2009 Sun Microsystems, Inc.
0N/A# This file is part of VirtualBox Open Source Edition (OSE), as
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
0N/A# additional information or have any questions.
0N/ASUB_DEPTH = ../../../..
0N/Aif defined(VBOX_WITH_XPCOM) || defined(VBOX_ONLY_SDK)
0N/AINSTALLS += XpComCSamples
0N/AXpComCSamples_MODE = a+r,u+rw
0N/AXpComCSamples_INST = \
0N/AXpComCSamples_SOURCES = \
0N/AINSTALLS += XpComCGlue
0N/AXpComCGlue_MODE = a+r,u+rw
0N/AXpComCGlue_SOURCES = \
0N/AINSTALLS += XpComCHeaders
0N/AXpComCHeaders_MODE = a+r,u+rw
0N/AXpComCHeaders_SOURCES = \
0N/A $(VBOX_XSLTPROC) -o $@ $^
0N/Aendif # VBOX_WITH_XPCOM || SDK
0N/Aif !defined(VBOX_ONLY_SDK) && defined(VBOX_WITH_XPCOM)
0N/A ifdef VBOX_WITH_XPCOM
0N/A VBoxXPCOMC_TEMPLATE = VBOXMAINDLL
0N/A VBoxXPCOMC_DEFS = IN_VBOXXPCOMC
0N/A VBoxXPCOMC_SOURCES = \
0N/A VBoxXPCOMC_INTERMEDIATES = \
0N/A # The C glue library.
0N/A LIBRARIES += VBoxXPCOMCGlue
0N/A VBoxXPCOMCGlue_TEMPLATE = VBOXMAINEXE
0N/A VBoxXPCOMCGlue_DEFS = IN_VBOXXPCOMC
0N/A VBoxXPCOMCGlue_SOURCES = \
73N/A VBoxXPCOMCGlue_INTERMEDIATES = \
73N/A if defined(VBOX_WITH_TESTCASES) && "$(KBUILD_TARGET)" != "darwin"
73N/A # The testcase (also in samples).
73N/A # C testcase using the dynamic glue.
66N/A PROGRAMS += tstXPCOMCGlue
0N/A tstXPCOMCGlue_TEMPLATE = VBOXR3EXE
0N/A tstXPCOMCGlue_INCS = \
0N/A tstXPCOMCGlue_INTERMEDIATES = \
0N/A tstXPCOMCGlue_SOURCES = \
0N/A tstXPCOMCGlue_LIBS = \
0N/A $(VBoxXPCOMCGlue_1_TARGET)
0N/Aendif # ! VBOX_ONLY_SDK