1 | # $Id: Makefile.kmk 66378 2017-03-31 11:20:50Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Storage library.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2016 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 | VBOX_PATH_STORAGE_SRC := $(PATH_SUB_CURRENT)
|
---|
22 |
|
---|
23 | if !defined(VBOX_ONLY_EXTPACKS)
|
---|
24 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
25 | include $(PATH_SUB_CURRENT)/Debug/Makefile.kmk
|
---|
26 |
|
---|
27 | #
|
---|
28 | # StorageLib - The storage Library.
|
---|
29 | #
|
---|
30 | LIBRARIES += StorageLib #StorageLibNoDB
|
---|
31 |
|
---|
32 | StorageLib_TEMPLATE = VBOXR3
|
---|
33 | StorageLib_DEFS = IN_VBOXDDU
|
---|
34 | ifeq ($(USER),bird)
|
---|
35 | StorageLib_DEFS.debug += RTMEM_WRAP_TO_EF_APIS
|
---|
36 | endif
|
---|
37 |
|
---|
38 | StorageLib_SOURCES = \
|
---|
39 | VD.cpp \
|
---|
40 | VDPlugin.cpp \
|
---|
41 | VDVfs.cpp \
|
---|
42 | VDIfVfs.cpp \
|
---|
43 | VDIfVfs2.cpp \
|
---|
44 | VDI.cpp \
|
---|
45 | VMDK.cpp \
|
---|
46 | VHD.cpp \
|
---|
47 | DMG.cpp \
|
---|
48 | Parallels.cpp \
|
---|
49 | ISCSI.cpp \
|
---|
50 | RAW.cpp \
|
---|
51 | QED.cpp \
|
---|
52 | QCOW.cpp \
|
---|
53 | VHDX.cpp \
|
---|
54 | CUE.cpp \
|
---|
55 | VCICache.cpp
|
---|
56 | endif
|
---|
57 |
|
---|
58 | if defined(VBOX_WITH_EXTPACK_PUEL) && defined(VBOX_WITH_EXTPACK_PUEL_BUILD)
|
---|
59 | if defined(VBOX_WITH_PLUGIN_CRYPT)
|
---|
60 | DLLS += VDPluginCrypt
|
---|
61 | VDPluginCrypt_TEMPLATE = VBoxR3ExtPackPuelWithOpenSsl
|
---|
62 | VDPluginCrypt_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
63 |
|
---|
64 | VDPluginCrypt_SOURCES = \
|
---|
65 | VDFilterCrypt.cpp \
|
---|
66 | VDKeyStore.cpp
|
---|
67 | VDPluginCrypt_SOURCES.win = VDPluginCrypt.rc
|
---|
68 | endif
|
---|
69 | endif # VBOX_WITH_EXTPACK_PUEL
|
---|
70 |
|
---|
71 | #StorageLibNoDB_TEMPLATE = VBOXR3
|
---|
72 | #StorageLibNoDB_DEFS = IN_VBOXDDU VBOX_HDD_NO_DYNAMIC_BACKENDS
|
---|
73 | #StorageLibNoDB_SOURCES = \
|
---|
74 | # $(StorageLib_SOURCES)
|
---|
75 |
|
---|
76 | # generate rules
|
---|
77 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
78 |
|
---|