makefile.tstVBoxAPIWin revision 97f18fc3d908924a073e536c0eedb296a1f774ee
98N/A#
98N/A# tstVBoxAPILinux makefile
98N/A#
98N/A#
98N/A# Copyright (C) 2006-2013 Oracle Corporation
98N/A#
98N/A# This file is part of VirtualBox Open Source Edition (OSE), as
98N/A# available from http://www.virtualbox.org. This file is free software;
98N/A# you can redistribute it and/or modify it under the terms of the GNU
98N/A# General Public License (GPL) as published by the Free Software
98N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
98N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
98N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
98N/A#
98N/A# Several assumptions and propositions:
98N/A# - Visual Studio has already installed on machine or you already have nmake.exe, cl.exe, link.exe
98N/A# - Windows SDK has already installed on machine or you already have Uuid.Lib Ole32.Lib OleAut32.Lib OleDlg.Lib
98N/A# - VirtualBox SDK was downloaded and was placed into folder where VirtualBox had been installed.
98N/A# - nmake is a default tool that builds projects based on commands contained in this description file
98N/A# - cl is cl.exe - Windows compiler
98N/A# - link is link.exe - Windows linker
98N/A# - all needed paths have been set in working environment. It means that when you type "cl" from the console,
98N/A# Windows shall find cl.exe by using enviroment variable PATH or something similar.
98N/A#
98N/A# The best way to accomplish it is to run a script vcvars32.bat located in the Visual studio "bin" directory.
98N/A# This script installs needed paths in your working environment.
98N/A# Important!!!
98N/A# Script vcvars32.bat sets up needed paths only for local console session.
98N/A# For permanent using, needed paths must be added globally.
98N/A#
98N/A# Several possible examples of paths:
98N/A# VS_INSTALL_PATH = "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\"
113N/A# VS_INCLUDE_PATH = "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include"
98N/A# VS_ATLMFC_INCLUDE_PATH = "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include"
98N/A# WIN_SDK_INCLUDE_PATH = "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include"
98N/A# WIN_SDK_LIB_PATH = "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\x64\"
98N/A# VB_INSTALL_PATH = "C:\Program Files\Oracle\VirtualBox"
98N/A#
98N/A
98N/A
98N/ACXX = cl
98N/ALINK = link
113N/APATH_MSCOM = ../../../bindings/mscom
98N/AINCS_MSCOM = $(PATH_MSCOM)/include
98N/ALIBS_MSCOM = $(PATH_MSCOM)/lib
98N/A
98N/ALIBS_DEPS = "Uuid.Lib" "Ole32.Lib" "OleAut32.Lib" "OleDlg.Lib"
98N/A
98N/AtstVBoxAPIWin_SOURCES = $(LIBS_MSCOM)/VirtualBox_i.c
98N/AtstVBoxAPIWin_DEPS = $(INCS_MSCOM)
98N/A
98N/ACOMPILER_CMDLINE = /Zi /nologo /W3 /WX- /Od /Oy- /Gm /EHsc /RTC1 /GS /fp:precise /Gd /analyze- /errorReport:queue
98N/A
98N/ALINKER_CMDLINE = /INCREMENTAL /DEBUG /SUBSYSTEM:CONSOLE
98N/A
98N/A# default linking
98N/AtstVBoxAPIWin.exe: tstVBoxAPIWin.obj VirtualBox_i.obj
98N/A $(LINK) /out:tstVBoxAPIWin.exe $** $(LIBS_DEPS)
98N/A
98N/A# default compilation
98N/AtstVBoxAPIWin.obj:
98N/A $(CXX) /c /I$(INCS_MSCOM) tstVBoxAPIWin.cpp
98N/A
98N/A# default compilation
VirtualBox_i.obj:
$(CXX) /c /I$(INCS_MSCOM) $(tstVBoxAPIWin_SOURCES)
# linking with defined linker's options
#tstVBoxAPIWin.exe: tstVBoxAPIWin.obj VirtualBox_i.obj
# $(LINK) $(LINKER_CMDLINE) /out:tstVBoxAPIWin.exe $** $(LIBS_DEPS)
# compile with pre-defined compiler's options and locally defined paths
#tstVBoxAPIWin.obj:
# $(CXX) /c $(COMPILER_CMDLINE) /I$(INCS_MSCOM) /I$(WIN_SDK_INCLUDE_PATH) /I$(VS_INCLUDE_PATH) tstVBoxAPIWin.cpp
# compile with locally defined paths
#tstVBoxAPIWin.obj:
# $(CXX) /c /I$(INCS_MSCOM) /I$(WIN_SDK_INCLUDE_PATH) /I$(VS_INCLUDE_PATH) tstVBoxAPIWin.cpp
# compile with pre-defined compiler's options and locally defined paths
#VirtualBox_i.obj:
# $(CXX) /c $(COMPILER_CMDLINE) /I$(INCS_MSCOM) /I$(WIN_SDK_INCLUDE_PATH) /I$(VS_INCLUDE_PATH) $(tstVBoxAPIWin_SOURCES)
# compile with locally defined paths
#VirtualBox_i.obj:
# $(CXX) /c /I$(INCS_MSCOM) /I$(WIN_SDK_INCLUDE_PATH) /I$(VS_INCLUDE_PATH) $(tstVBoxAPIWin_SOURCES)