1 | #
|
---|
2 | # Makefile for the VBox API testcases.
|
---|
3 | #
|
---|
4 |
|
---|
5 | #
|
---|
6 | # Copyright (C) 2006 InnoTek Systemberatung GmbH
|
---|
7 | #
|
---|
8 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | # available from http://www.virtualbox.org. This file is free software;
|
---|
10 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | # General Public License as published by the Free Software Foundation,
|
---|
12 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
13 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
14 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | #
|
---|
16 | # If you received this file as part of a commercial VirtualBox
|
---|
17 | # distribution, then only the terms of your commercial VirtualBox
|
---|
18 | # license agreement apply instead of the previous paragraph.
|
---|
19 | #
|
---|
20 |
|
---|
21 | DEPTH = ../../../..
|
---|
22 | include $(PATH_KBUILD)/header.kmk
|
---|
23 |
|
---|
24 | ifdef VBOX_WITH_TESTCASES
|
---|
25 | PROGRAMS = tstAPI
|
---|
26 | PROGRAMS.linux = tstVBoxAPILinux
|
---|
27 | PROGRAMS.win = tstVBoxAPIWin
|
---|
28 | endif # VBOX_WITH_TESTCASES
|
---|
29 |
|
---|
30 | INSTALLS = samples
|
---|
31 |
|
---|
32 | #
|
---|
33 | # The samples
|
---|
34 | #
|
---|
35 | samples_INST = $(INST_SDK_SAMPLES)/API/
|
---|
36 | samples_MODE = a+r,u+w
|
---|
37 | ifeq ($(BUILD_TARGET),win)
|
---|
38 | samples_SOURCES = tstVBoxAPIWin.cpp
|
---|
39 | else
|
---|
40 | samples_SOURCES = tstVBoxAPILinux.cpp makefile.tstVBoxAPILinux
|
---|
41 | ifdef VBOX_WITH_TESTCASES
|
---|
42 | samples_SYMLINKS = tstVBoxAPILinux=>../../../tstVBoxAPILinux
|
---|
43 | endif
|
---|
44 | endif
|
---|
45 |
|
---|
46 | #
|
---|
47 | # tstAPI
|
---|
48 | #
|
---|
49 | tstAPI_TEMPLATE = VBOXMAINCLIENT
|
---|
50 | tstAPI_SOURCES = tstAPI.cpp
|
---|
51 |
|
---|
52 | #
|
---|
53 | # tstVBoxAPILinux
|
---|
54 | #
|
---|
55 | # We only build the testcase here to make sure it builds.
|
---|
56 | # It comes with a custom makefile which should be tested as well!
|
---|
57 | #
|
---|
58 | tstVBoxAPILinux_TEMPLATE = VBOXR3
|
---|
59 | tstVBoxAPILinux_SOURCES = tstVBoxAPILinux.cpp
|
---|
60 | tstVBoxAPILinux_CXXFLAGS = -Wno-non-virtual-dtor
|
---|
61 | tstVBoxAPILinux_INCS = \
|
---|
62 | $(VBOX_XPCOM_INCS) \
|
---|
63 | $(PATH_BIN)/sdk/include
|
---|
64 | tstVBoxAPILinux_LIBPATH = $(LIBPATH_XPCOM)
|
---|
65 | tstVBoxAPILinux_LIBS = \
|
---|
66 | $(PATH_BIN)/VBoxXPCOM.so \
|
---|
67 | $(PATH_LIB)/VBoxXPCOMGlue$(VBOX_SUFF_LIB)
|
---|
68 |
|
---|
69 | #
|
---|
70 | # tstVBoxAPIWin
|
---|
71 | #
|
---|
72 | tstVBoxAPIWin_TEMPLATE = VBOXMAINCLIENT
|
---|
73 | tstVBoxAPIWin_SOURCES = \
|
---|
74 | tstVBoxAPIWin.cpp \
|
---|
75 | $(PATH_BIN)/sdk/lib/VirtualBox_i.c
|
---|
76 |
|
---|
77 | # generate rules.
|
---|
78 | include $(PATH_KBUILD)/footer.kmk
|
---|
79 |
|
---|