1 | # $Id: Makefile.kmk 8760 2008-05-11 18:39:30Z 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 | DEPTH ?= ../../../../..
|
---|
23 | SUB_DEPTH = ../..
|
---|
24 | include $(KBUILD_PATH)/subheader.kmk
|
---|
25 |
|
---|
26 | #
|
---|
27 | # vditool - useful too for manipulating VDIs.
|
---|
28 | #
|
---|
29 | PROGRAMS += vditool
|
---|
30 | ifeq ($(KBUILD_TARGET),l4)
|
---|
31 | vditool_TEMPLATE = VBOXLNXHOSTR3EXE
|
---|
32 | vditool_LIBS = \
|
---|
33 | $(PATH_LIB)/VBoxDDULnxHostR3.a \
|
---|
34 | $(PATH_LIB)/RuntimeLnxHostR3.a
|
---|
35 | else
|
---|
36 | vditool_TEMPLATE = VBOXR3EXE
|
---|
37 | vditool_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
|
---|
38 | endif
|
---|
39 | vditool_SOURCES = vditool.cpp
|
---|
40 |
|
---|
41 |
|
---|
42 | #
|
---|
43 | # Basic testcase for the VDI code.
|
---|
44 | #
|
---|
45 | ifdef VBOX_WITH_TESTCASES
|
---|
46 | PROGRAMS += tstVDI
|
---|
47 | ifeq ($(KBUILD_TARGET),l4)
|
---|
48 | tstVDI_TEMPLATE = VBOXLNXHOSTR3EXE
|
---|
49 | else
|
---|
50 | tstVDI_TEMPLATE = VBOXR3TSTEXE
|
---|
51 | endif
|
---|
52 | tstVDI_LIBS = $(vditool_LIBS)
|
---|
53 | tstVDI_SOURCES = tstVDI.cpp
|
---|
54 | endif
|
---|
55 |
|
---|
56 | #
|
---|
57 | # Basic testcase for the VD code.
|
---|
58 | #
|
---|
59 | ifdef VBOX_WITH_TESTCASES
|
---|
60 | PROGRAMS += tstVD
|
---|
61 | ifeq ($(KBUILD_TARGET),l4)
|
---|
62 | tstVD_TEMPLATE = VBOXLNXHOSTR3EXE
|
---|
63 | else
|
---|
64 | tstVD_TEMPLATE = VBOXR3TSTEXE
|
---|
65 | endif
|
---|
66 | tstVD_LIBS = $(vditool_LIBS)
|
---|
67 | tstVD_SOURCES = tstVD.cpp
|
---|
68 | endif
|
---|
69 |
|
---|
70 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
71 |
|
---|