makefile.tstVBoxAPILinux revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering# tstVBoxAPILinux makefile
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering# Copyright (C) 2006 InnoTek Systemberatung GmbH
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering# This file is part of VirtualBox Open Source Edition (OSE), as
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering# available from http://www.virtualbox.org. This file is free software;
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering# you can redistribute it and/or modify it under the terms of the GNU
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering# General Public License as published by the Free Software Foundation,
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering# distribution. VirtualBox OSE is distributed in the hope that it will
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering# be useful, but WITHOUT ANY WARRANTY of any kind.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering# If you received this file as part of a commercial VirtualBox
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering# distribution, then only the terms of your commercial VirtualBox
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering# license agreement apply instead of the previous paragraph.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart PoetteringPATH_XPCOM = ..
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart PoetteringPATH_XPCOM_IDL = $(PATH_XPCOM)/idl
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart PoetteringINCS_XPCOM = $(PATH_XPCOM)/include \
7e8e0422aeb16f2a09a40546c61df753d10029b6Lennart Poettering# Link with the public XPCOM libraries
7e8e0422aeb16f2a09a40546c61df753d10029b6Lennart Poettering g++ -g -o $@ $(addprefix -L, $(LIBPATH_XPCOM)) $^ \
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering ../lib/VBoxXPCOMGlue.a ../../VBoxXPCOM.so \
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering -ldl -lpthread
1716f6dcf54d4c181c2e2558e3d5414f54c8d9caLennart Poettering g++ -c -g $(addprefix -I, $(INCS_XPCOM)) -o $@ tstVBoxAPILinux.cpp
1716f6dcf54d4c181c2e2558e3d5414f54c8d9caLennart Poettering rm -f tstVBoxAPILinux tstVBoxAPILinux.o