1 | # $Id: Makefile.kmk 5999 2007-12-07 15:05:06Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the storage device & driver 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 | SUB_DEPTH = ../..
|
---|
20 | include $(PATH_KBUILD)/subheader.kmk
|
---|
21 |
|
---|
22 | #
|
---|
23 | # vditool - useful too for manipulating VDIs.
|
---|
24 | #
|
---|
25 | PROGRAMS += vditool
|
---|
26 | vditool_TEMPLATE = VBOXR3EXE
|
---|
27 | vditool_SOURCES = vditool.cpp
|
---|
28 | ifeq ($(BUILD_TARGET),win)
|
---|
29 | vditool_LIBS = $(PATH_LIB)/VBoxDDU$(VBOX_SUFF_LIB)
|
---|
30 | else
|
---|
31 | vditool_LIBS = $(PATH_BIN)/VBoxDDU$(VBOX_SUFF_DLL)
|
---|
32 | endif
|
---|
33 | vditool_LIBS += $(LIB_RUNTIME)
|
---|
34 |
|
---|
35 |
|
---|
36 | #
|
---|
37 | # Basic testcase for the VDI code.
|
---|
38 | #
|
---|
39 | ifdef VBOX_WITH_TESTCASES
|
---|
40 | PROGRAMS += tstVDI
|
---|
41 | tstVDI_TEMPLATE = VBOXR3TSTEXE
|
---|
42 | tstVDI_SOURCES = tstVDI.cpp
|
---|
43 | tstVDI_LIBS = $(vditool_LIBS)
|
---|
44 | endif
|
---|
45 |
|
---|
46 |
|
---|
47 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
48 |
|
---|