1 | # $Id: Makefile.kmk 63788 2016-09-09 22:27:48Z 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 | VDVfs.cpp \
|
---|
41 | VDIfVfs.cpp \
|
---|
42 | VDIfVfs2.cpp \
|
---|
43 | VDI.cpp \
|
---|
44 | VMDK.cpp \
|
---|
45 | VHD.cpp \
|
---|
46 | DMG.cpp \
|
---|
47 | Parallels.cpp \
|
---|
48 | ISCSI.cpp \
|
---|
49 | RAW.cpp \
|
---|
50 | QED.cpp \
|
---|
51 | QCOW.cpp \
|
---|
52 | VHDX.cpp \
|
---|
53 | VCICache.cpp
|
---|
54 | endif
|
---|
55 |
|
---|
56 | if defined(VBOX_WITH_EXTPACK_PUEL) && defined(VBOX_WITH_EXTPACK_PUEL_BUILD)
|
---|
57 | if defined(VBOX_WITH_PLUGIN_CRYPT)
|
---|
58 | DLLS += VDPluginCrypt
|
---|
59 | VDPluginCrypt_TEMPLATE = VBoxR3ExtPackPuel
|
---|
60 | VDPluginCrypt_SDKS = VBoxOpenSslExtPack
|
---|
61 | VDPluginCrypt_LDFLAGS.linux = -Wl,--no-undefined
|
---|
62 |
|
---|
63 | VDPluginCrypt_SOURCES = \
|
---|
64 | VDFilterCrypt.cpp \
|
---|
65 | VDKeyStore.cpp
|
---|
66 | VDPluginCrypt_SOURCES.win = VDPluginCrypt.rc
|
---|
67 | endif
|
---|
68 | endif # VBOX_WITH_EXTPACK_PUEL
|
---|
69 |
|
---|
70 | #StorageLibNoDB_TEMPLATE = VBOXR3
|
---|
71 | #StorageLibNoDB_DEFS = IN_VBOXDDU VBOX_HDD_NO_DYNAMIC_BACKENDS
|
---|
72 | #StorageLibNoDB_SOURCES = \
|
---|
73 | # $(StorageLib_SOURCES)
|
---|
74 |
|
---|
75 | # generate rules
|
---|
76 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
77 |
|
---|