makefile.tstCAPIGlue revision 681bb0bf6e9ab5a590d8afcdf37634e2fc29f595
6253N/A# $Revision$
6238N/A## @file makefile.tstCAPIGlue
6238N/A# Makefile for sample program illustrating use of C binding for COM/XPCOM.
6253N/A#
6253N/A
6253N/A#
6253N/A# Copyright (C) 2009-2014 Oracle Corporation
6253N/A#
6253N/A# This file is part of VirtualBox Open Source Edition (OSE), as
6253N/A# available from http://www.virtualbox.org. This file is free software;
6253N/A# you can redistribute it and/or modify it under the terms of the GNU
6253N/A# General Public License (GPL) as published by the Free Software
6253N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
6288N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
6253N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
6253N/A#
6279N/A
6253N/APATH_SDK = ../../..
6253N/ACAPI_INC = -I$(PATH_SDK)/bindings/c/include
6253N/Aifeq ($(BUILD_PLATFORM),win)
6253N/APLATFORM_INC = -I$(PATH_SDK)/bindings/mscom/include
6279N/APLATFORM_LIB = $(PATH_SDK)/bindings/mscom/lib
6279N/Aelse
6279N/APLATFORM_INC = -I$(PATH_SDK)/bindings/xpcom/include
6253N/APLATFORM_LIB = $(PATH_SDK)/bindings/xpcom/lib
6253N/Aendif
6253N/AGLUE_DIR = $(PATH_SDK)/bindings/c/glue
6253N/AGLUE_INC = -I$(GLUE_DIR)
6253N/A
6253N/ACC = gcc
6253N/ACFLAGS = -g -Wall
6253N/A
6253N/A.PHONY: all
6253N/Aall: tstCAPIGlue
6253N/A
6253N/A.PHONY: clean
6253N/Aclean:
6253N/A rm -f tstCAPIGlue.o VBoxCAPIGlue.o VirtualBox_i.o tstCAPIGlue
6253N/A
6294N/AtstCAPIGlue: tstCAPIGlue.o VBoxCAPIGlue.o VirtualBox_i.o
6294N/A $(CC) -o $@ $^ -ldl -lpthread
6253N/A
6253N/AtstCAPIGlue.o: tstCAPIGlue.c
6238N/A $(CC) $(CFLAGS) $(CAPI_INC) $(PLATFORM_INC) $(GLUE_INC) -o $@ -c $<
6238N/A
VBoxCAPIGlue.o: $(GLUE_DIR)/VBoxCAPIGlue.c
$(CC) $(CFLAGS) $(CAPI_INC) $(PLATFORM_INC) $(GLUE_INC) -o $@ -c $<
VirtualBox_i.o: $(PLATFORM_LIB)/VirtualBox_i.c
$(CC) $(CFLAGS) $(CAPI_INC) $(PLATFORM_INC) $(GLUE_INC) -o $@ -c $<