1 | # $Id: Makefile.kmk 28800 2010-04-27 08:22:32Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the storage device & driver testcases.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Oracle Corporation
|
---|
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 | SUB_DEPTH = ../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # vditool - useful too for manipulating VDIs, but now pretty obsolete and
|
---|
23 | # probably will go away soon. Testcase only now.
|
---|
24 | #
|
---|
25 | ifdef VBOX_WITH_TESTCASES
|
---|
26 | PROGRAMS += vditool
|
---|
27 | vditool_TEMPLATE = VBOXR3TSTEXE
|
---|
28 | vditool_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
|
---|
29 | vditool_SOURCES = vditool.cpp
|
---|
30 | endif
|
---|
31 |
|
---|
32 |
|
---|
33 | #
|
---|
34 | # Basic testcase for the VDI code.
|
---|
35 | #
|
---|
36 | #ifdef VBOX_WITH_TESTCASES
|
---|
37 | # PROGRAMS += tstVDI
|
---|
38 | # ifeq ($(KBUILD_TARGET),l4)
|
---|
39 | # tstVDI_TEMPLATE = VBOXLNXHOSTR3EXE
|
---|
40 | # else
|
---|
41 | # tstVDI_TEMPLATE = VBOXR3TSTEXE
|
---|
42 | # endif
|
---|
43 | # tstVDI_LIBS = $(vditool_LIBS)
|
---|
44 | # tstVDI_SOURCES = tstVDI.cpp
|
---|
45 | #endif
|
---|
46 |
|
---|
47 | #
|
---|
48 | # Basic testcases for the VD code.
|
---|
49 | #
|
---|
50 | ifdef VBOX_WITH_TESTCASES
|
---|
51 | PROGRAMS += tstVD tstVD-2 tstVDCopy tstVDSnap
|
---|
52 | ifeq ($(KBUILD_TARGET),l4)
|
---|
53 | tstVD_TEMPLATE = VBOXLNXHOSTR3EXE
|
---|
54 | tstVD-2_TEMPLATE = VBOXLNXHOSTR3EXE
|
---|
55 | tstVDCopy_TEMPLATE = VBOXLNXHOSTR3EXE
|
---|
56 | tstVDSnap_TEMPLATE = VBOXLNXHOSTR3EXE
|
---|
57 | else
|
---|
58 | tstVD_TEMPLATE = VBOXR3TSTEXE
|
---|
59 | tstVD-2_TEMPLATE = VBOXR3TSTEXE
|
---|
60 | tstVDCopy_TEMPLATE = VBOXR3TSTEXE
|
---|
61 | tstVDSnap_TEMPLATE = VBOXR3TSTEXE
|
---|
62 | endif
|
---|
63 | tstVD_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
|
---|
64 | tstVD-2_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
|
---|
65 | tstVDCopy_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
|
---|
66 | tstVDSnap_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
|
---|
67 | tstVD_SOURCES = tstVD.cpp
|
---|
68 | tstVD-2_SOURCES = tstVD-2.cpp
|
---|
69 | tstVDCopy_SOURCES = tstVDCopy.cpp
|
---|
70 | tstVDSnap_SOURCES = tstVDSnap.cpp
|
---|
71 | endif
|
---|
72 |
|
---|
73 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
74 |
|
---|