makefile.tstVBoxAPIXPCOM revision 3d9b2bf0cd2b26ada853ec1b9df753d352679a44
1740N/A#
2362N/A# tstVBoxAPIXPCOM makefile
1740N/A#
1740N/A#
1740N/A# Copyright (C) 2006-2014 Oracle Corporation
1740N/A#
1740N/A# This file is part of VirtualBox Open Source Edition (OSE), as
1740N/A# available from http://www.virtualbox.org. This file is free software;
1740N/A# you can redistribute it and/or modify it under the terms of the GNU
1740N/A# General Public License (GPL) as published by the Free Software
1740N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
1740N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
1740N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
1740N/A#
1740N/A
1740N/APATH_XPCOM = ..
1740N/APATH_BIN = ../../../../
1740N/A
2362N/A# This setting must be the same as used when building VBoxXPCOM.so.
2362N/A# If you get a lot of unresolved symbols, try commenting it out.
2362N/AVBOX_WITH_XPCOM_NAMESPACE_CLEANUP=1
1740N/A
1740N/APATH_XPCOM_IDL = $(PATH_XPCOM)/idl
1740N/AINCS_XPCOM = $(PATH_XPCOM)/include \
1740N/A $(PATH_XPCOM)/include/nsprpub \
1740N/A $(PATH_XPCOM)/include/string \
1740N/A $(PATH_XPCOM)/include/xpcom \
1740N/A $(PATH_XPCOM)/include/ipcd
1740N/A
1740N/Aifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
1740N/A DEFS_XPCOM += VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
1740N/Aendif
1740N/A
1740N/A# Adjust this to match your platform, pick from RT_OS_LINUX, RT_OS_WINDOWS,
1740N/A# RT_OS_DARWIN, RT_OS_SOLARIS...
1740N/ADEFS_XPCOM += RT_OS_LINUX
1740N/A
1740N/A
1740N/A#
1740N/A# Link with the public XPCOM libraries
1740N/A#
1740N/AtstVBoxAPIXPCOM: tstVBoxAPIXPCOM.o
1740N/A g++ -g -o $@ $^ \
1740N/A $(PATH_BIN)/VBoxXPCOM.so \
1740N/A -Wl,-rpath $(PATH_BIN)/ \
1740N/A -ldl -lpthread
1740N/A
1740N/AtstVBoxAPIXPCOM.o: tstVBoxAPIXPCOM.cpp
1740N/A g++ -c -g -fshort-wchar $(addprefix -I, $(INCS_XPCOM)) $(addprefix -D, $(DEFS_XPCOM)) -o $@ tstVBoxAPIXPCOM.cpp
1740N/A
1740N/Aclean:
1740N/A rm -f tstVBoxAPIXPCOM tstVBoxAPIXPCOM.o
1740N/A