VirtualBox

source: vbox/trunk/src/VBox/Main/testcase/Makefile.kmk@ 3077

Last change on this file since 3077 was 2981, checked in by vboxsync, 18 years ago

InnoTek -> innotek: all the headers and comments.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Makefile.kmk 2981 2007-06-01 16:01:28Z vboxsync $
2## @file
3# Makefile for the VBox API testcases.
4#
5
6#
7# Copyright (C) 2006-2007 innotek GmbH
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 as published by the Free Software Foundation,
13# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14# distribution. VirtualBox OSE is distributed in the hope that it will
15# be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# If you received this file as part of a commercial VirtualBox
18# distribution, then only the terms of your commercial VirtualBox
19# license agreement apply instead of the previous paragraph.
20#
21
22DEPTH = ../../../..
23include $(PATH_KBUILD)/header.kmk
24
25ifdef VBOX_WITH_TESTCASES
26 PROGRAMS = tstAPI
27 PROGRAMS.linux = tstVBoxAPILinux
28 PROGRAMS.win = tstVBoxAPIWin
29endif # VBOX_WITH_TESTCASES
30
31INSTALLS = samples
32
33#
34# The samples
35#
36samples_INST = $(INST_SDK_SAMPLES)/API/
37samples_MODE = a+r,u+w
38ifeq ($(BUILD_TARGET),win)
39 samples_SOURCES = tstVBoxAPIWin.cpp
40else
41 samples_SOURCES = tstVBoxAPILinux.cpp makefile.tstVBoxAPILinux=>Makefile
42 ifdef VBOX_WITH_TESTCASES
43 samples_SYMLINKS = tstVBoxAPILinux=>../../../tstVBoxAPILinux
44 endif
45endif
46
47#
48# tstAPI
49#
50tstAPI_TEMPLATE = VBOXMAINCLIENT
51tstAPI_SOURCES = tstAPI.cpp
52
53#
54# tstVBoxAPILinux
55#
56# We only build the testcase here to make sure it builds.
57# It comes with a custom makefile which should be tested as well!
58#
59tstVBoxAPILinux_TEMPLATE = VBOXR3
60tstVBoxAPILinux_SOURCES = tstVBoxAPILinux.cpp
61tstVBoxAPILinux_CXXFLAGS = -Wno-non-virtual-dtor
62tstVBoxAPILinux_INCS = \
63 $(VBOX_XPCOM_INCS) \
64 $(PATH_BIN)/sdk/include
65tstVBoxAPILinux_LIBPATH = $(LIBPATH_XPCOM)
66tstVBoxAPILinux_LIBS = \
67 $(PATH_BIN)/VBoxXPCOM.so \
68 $(PATH_LIB)/VBoxXPCOMGlue$(VBOX_SUFF_LIB)
69
70#
71# tstVBoxAPIWin
72#
73tstVBoxAPIWin_TEMPLATE = VBOXMAINCLIENT
74tstVBoxAPIWin_SOURCES = \
75 tstVBoxAPIWin.cpp \
76 $(PATH_BIN)/sdk/lib/VirtualBox_i.c
77
78# generate rules.
79include $(PATH_KBUILD)/footer.kmk
80
Note: See TracBrowser for help on using the repository browser.

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