1 | # $Id: Makefile.kmk 62534 2016-07-22 19:30:22Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for zlib.
|
---|
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 | LIBRARIES += VBox-zlib
|
---|
22 | if1of ($(KBUILD_TARGET),os2 win)
|
---|
23 | # only required for vbox-img
|
---|
24 | LIBRARIES += VBox-zlib-static
|
---|
25 | endif
|
---|
26 | VBox-zlib_TEMPLATE = VBoxR3RuntimeDll
|
---|
27 | VBox-zlib_DEFS = verbose=-1 NO_VIZ=1
|
---|
28 | VBox-zlib_SOURCES = \
|
---|
29 | adler32.c \
|
---|
30 | compress.c \
|
---|
31 | crc32.c \
|
---|
32 | gzclose.c \
|
---|
33 | gzlib.c \
|
---|
34 | gzread.c \
|
---|
35 | gzwrite.c \
|
---|
36 | uncompr.c \
|
---|
37 | deflate.c \
|
---|
38 | trees.c \
|
---|
39 | zutil.c \
|
---|
40 | inflate.c \
|
---|
41 | infback.c \
|
---|
42 | inftrees.c \
|
---|
43 | inffast.c
|
---|
44 |
|
---|
45 | VBox-zlib-static_TEMPLATE = VBOXR3STATIC
|
---|
46 | VBox-zlib-static_DEFS = $(VBox-zlib_DEFS)
|
---|
47 | VBox-zlib-static_SOURCES = $(VBox-zlib_SOURCES)
|
---|
48 |
|
---|
49 | ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition.
|
---|
50 | LIBRARIES += VBox-zlib-x86
|
---|
51 | VBox-zlib-x86_TEMPLATE = VBoxR3Dll-x86
|
---|
52 | VBox-zlib-x86_EXTENDS = VBox-zlib
|
---|
53 | endif
|
---|
54 |
|
---|
55 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
56 |
|
---|