1 | # $Id: Makefile.kmk 14779 2008-11-28 14:28:02Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the storage device & driver testcases.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
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 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | SUB_DEPTH = ../../../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 | #
|
---|
26 | # vditool - useful too for manipulating VDIs, but now pretty obsolete and
|
---|
27 | # probably will go away soon. Testcase only now.
|
---|
28 | #
|
---|
29 | PROGRAMS += vditool
|
---|
30 | ifdef VBOX_WITH_TESTCASES
|
---|
31 | ifeq ($(KBUILD_TARGET),l4)
|
---|
32 | vditool_TEMPLATE = VBOXLNXHOSTR3EXE
|
---|
33 | vditool_LIBS = \
|
---|
34 | $(PATH_LIB)/VBoxDDULnxHostR3.a \
|
---|
35 | $(PATH_LIB)/RuntimeLnxHostR3.a
|
---|
36 | else
|
---|
37 | vditool_TEMPLATE = VBOXR3TSTEXE
|
---|
38 | vditool_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
|
---|
39 | endif
|
---|
40 | vditool_SOURCES = vditool.cpp
|
---|
41 | endif
|
---|
42 |
|
---|
43 |
|
---|
44 | #
|
---|
45 | # Basic testcase for the VDI code.
|
---|
46 | #
|
---|
47 | ifdef VBOX_WITH_TESTCASES
|
---|
48 | PROGRAMS += tstVDI
|
---|
49 | ifeq ($(KBUILD_TARGET),l4)
|
---|
50 | tstVDI_TEMPLATE = VBOXLNXHOSTR3EXE
|
---|
51 | else
|
---|
52 | tstVDI_TEMPLATE = VBOXR3TSTEXE
|
---|
53 | endif
|
---|
54 | tstVDI_LIBS = $(vditool_LIBS)
|
---|
55 | tstVDI_SOURCES = tstVDI.cpp
|
---|
56 | endif
|
---|
57 |
|
---|
58 | #
|
---|
59 | # Basic testcases for the VD code.
|
---|
60 | #
|
---|
61 | ifdef VBOX_WITH_TESTCASES
|
---|
62 | PROGRAMS += tstVD tstVD-2
|
---|
63 | ifeq ($(KBUILD_TARGET),l4)
|
---|
64 | tstVD_TEMPLATE = VBOXLNXHOSTR3EXE
|
---|
65 | tstVD-2_TEMPLATE = VBOXLNXHOSTR3EXE
|
---|
66 | else
|
---|
67 | tstVD_TEMPLATE = VBOXR3TSTEXE
|
---|
68 | tstVD-2_TEMPLATE = VBOXR3TSTEXE
|
---|
69 | endif
|
---|
70 | tstVD_LIBS = $(vditool_LIBS)
|
---|
71 | tstVD-2_LIBS = $(vditool_LIBS)
|
---|
72 | tstVD_SOURCES = tstVD.cpp
|
---|
73 | tstVD-2_SOURCES = tstVD-2.cpp
|
---|
74 | endif
|
---|
75 |
|
---|
76 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
77 |
|
---|