VirtualBox

source: vbox/trunk/src/VBox/Main/cbinding/makefile.tstCAPIGlue@ 53007

Last change on this file since 53007 was 50183, checked in by vboxsync, 11 years ago

Main/cbinding: bring the C binding to a new functionality level, making them handle both COM and XPCOM based platforms, plus some xsl cleanup to eliminate the $dispatch case which was unused for many years (and will not be used again)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1# $Revision: 50183 $
2## @file makefile.tstCAPIGlue
3# Makefile for sample program illustrating use of C binding for COM/XPCOM.
4#
5
6#
7# Copyright (C) 2009-2014 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18PATH_SDK = ../../..
19CAPI_INC = -I$(PATH_SDK)/bindings/c/include
20ifeq ($(BUILD_PLATFORM),win)
21PLATFORM_INC = -I$(PATH_SDK)/bindings/mscom/include
22PLATFORM_LIB = $(PATH_SDK)/bindings/mscom/lib
23else
24PLATFORM_INC = -I$(PATH_SDK)/bindings/xpcom/include
25PLATFORM_LIB = $(PATH_SDK)/bindings/xpcom/lib
26endif
27GLUE_DIR = $(PATH_SDK)/bindings/c/glue
28GLUE_INC = -I$(GLUE_DIR)
29
30CC = gcc
31CFLAGS = -g -Wall
32
33.PHONY: all
34all: tstCAPIGlue
35
36.PHONY: clean
37clean:
38 rm -f tstCAPIGlue.o VBoxCAPIGlue.o VirtualBox_i.o tstCAPIGlue
39
40tstCAPIGlue: tstCAPIGlue.o VBoxCAPIGlue.o VirtualBox_i.o
41 $(CC) -o $@ $^ -ldl -lpthread
42
43tstCAPIGlue.o: tstCAPIGlue.c
44 $(CC) $(CFLAGS) $(CAPI_INC) $(PLATFORM_INC) $(GLUE_INC) -o $@ -c $<
45
46VBoxCAPIGlue.o: $(GLUE_DIR)/VBoxCAPIGlue.c
47 $(CC) $(CFLAGS) $(CAPI_INC) $(PLATFORM_INC) $(GLUE_INC) -o $@ -c $<
48
49VirtualBox_i.o: $(PLATFORM_LIB)/VirtualBox_i.c
50 $(CC) $(CFLAGS) $(CAPI_INC) $(PLATFORM_INC) $(GLUE_INC) -o $@ -c $<
Note: See TracBrowser for help on using the repository browser.

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