1 | # $Id: Makefile.kmk 5999 2007-12-07 15:05:06Z 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 (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | DEPTH = ../../../..
|
---|
19 | include $(PATH_KBUILD)/header.kmk
|
---|
20 |
|
---|
21 | ifdef VBOX_WITH_TESTCASES
|
---|
22 | PROGRAMS = tstAPI
|
---|
23 | PROGRAMS.linux = tstVBoxAPILinux
|
---|
24 | PROGRAMS.win = tstVBoxAPIWin
|
---|
25 | else ifeq ($(USERNAME),dmik)
|
---|
26 | PROGRAMS = tstAPI
|
---|
27 | PROGRAMS.linux = tstVBoxAPILinux
|
---|
28 | PROGRAMS.win = tstVBoxAPIWin
|
---|
29 | endif # VBOX_WITH_TESTCASES
|
---|
30 |
|
---|
31 | INSTALLS = samples
|
---|
32 |
|
---|
33 | #
|
---|
34 | # The samples
|
---|
35 | #
|
---|
36 | samples_INST = $(INST_SDK_SAMPLES)/API/
|
---|
37 | samples_MODE = a+r,u+w
|
---|
38 | ifeq ($(BUILD_TARGET),win)
|
---|
39 | samples_SOURCES = tstVBoxAPIWin.cpp
|
---|
40 | else
|
---|
41 | samples_SOURCES = tstVBoxAPILinux.cpp makefile.tstVBoxAPILinux=>Makefile
|
---|
42 | ifdef VBOX_WITH_TESTCASES
|
---|
43 | samples_SYMLINKS = tstVBoxAPILinux=>../../../tstVBoxAPILinux
|
---|
44 | endif
|
---|
45 | endif
|
---|
46 |
|
---|
47 | #
|
---|
48 | # tstAPI
|
---|
49 | #
|
---|
50 | tstAPI_TEMPLATE = VBOXMAINCLIENTEXE
|
---|
51 | tstAPI_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 | #
|
---|
59 | tstVBoxAPILinux_TEMPLATE = VBOXR3
|
---|
60 | tstVBoxAPILinux_SOURCES = tstVBoxAPILinux.cpp
|
---|
61 | tstVBoxAPILinux_CXXFLAGS = -Wno-non-virtual-dtor -fshort-wchar
|
---|
62 | tstVBoxAPILinux_INCS = \
|
---|
63 | $(VBOX_XPCOM_INCS) \
|
---|
64 | $(PATH_BIN)/sdk/include
|
---|
65 | tstVBoxAPILinux_LIBPATH = $(LIBPATH_XPCOM)
|
---|
66 | tstVBoxAPILinux_LIBS = $(LIB_XPCOM)
|
---|
67 |
|
---|
68 | #
|
---|
69 | # tstVBoxAPIWin
|
---|
70 | #
|
---|
71 | tstVBoxAPIWin_TEMPLATE = VBOXMAINCLIENTEXE
|
---|
72 | tstVBoxAPIWin_SOURCES = \
|
---|
73 | tstVBoxAPIWin.cpp \
|
---|
74 | $(PATH_BIN)/sdk/lib/VirtualBox_i.c
|
---|
75 |
|
---|
76 | # generate rules.
|
---|
77 | include $(PATH_KBUILD)/footer.kmk
|
---|
78 |
|
---|