1 | # $Id: Makefile.kmk 4071 2007-08-07 17:07:59Z 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 as published by the Free Software Foundation,
|
---|
13 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
14 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
15 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 |
|
---|
17 | DEPTH ?= ../../../../..
|
---|
18 | SUB_DEPTH = ../..
|
---|
19 | include $(PATH_KBUILD)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # vditool - useful too for manipulating VDIs.
|
---|
23 | #
|
---|
24 | PROGRAMS += vditool
|
---|
25 | vditool_TEMPLATE = VBOXR3EXE
|
---|
26 | vditool_SOURCES = vditool.cpp
|
---|
27 | ifeq ($(BUILD_TARGET),win)
|
---|
28 | vditool_LIBS = $(PATH_LIB)/VBoxDDU$(VBOX_SUFF_LIB)
|
---|
29 | else
|
---|
30 | vditool_LIBS = $(PATH_BIN)/VBoxDDU$(VBOX_SUFF_DLL)
|
---|
31 | endif
|
---|
32 | vditool_LIBS += $(LIB_RUNTIME)
|
---|
33 |
|
---|
34 |
|
---|
35 | #
|
---|
36 | # Basic testcase for the VDI code.
|
---|
37 | #
|
---|
38 | ifdef VBOX_WITH_TESTCASES
|
---|
39 | PROGRAMS += tstVDI
|
---|
40 | tstVDI_TEMPLATE = VBOXR3TSTEXE
|
---|
41 | tstVDI_SOURCES = tstVDI.cpp
|
---|
42 | tstVDI_LIBS = $(vditool_LIBS)
|
---|
43 | endif
|
---|
44 |
|
---|
45 |
|
---|
46 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
47 |
|
---|