1 | # $Id: Makefile.kmk 96463 2022-08-24 22:18:52Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for liblzf.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2022 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 |
|
---|
29 | SUB_DEPTH = ../../..
|
---|
30 | include $(KBUILD_PATH)/subheader.kmk
|
---|
31 |
|
---|
32 | LIBRARIES += VBox-liblzf
|
---|
33 | if1of ($(KBUILD_TARGET),os2 win)
|
---|
34 | # only required for vbox-img
|
---|
35 | LIBRARIES += VBox-liblzf-static
|
---|
36 | endif
|
---|
37 | VBox-liblzf_TEMPLATE = VBoxR3RuntimeDllNonPedanticFast
|
---|
38 | VBox-liblzf_BLD_TYPE = release # WARNING! Always optimizing this lib.
|
---|
39 | VBox-liblzf_DEFS = ULTRA_FAST=1 HLOG=12
|
---|
40 | VBox-liblzf_DEFS.x86 = STRICT_ALIGN=0
|
---|
41 | VBox-liblzf_DEFS.amd64 = STRICT_ALIGN=0
|
---|
42 | VBox-liblzf_CFLAGS.freebsd = -std=gnu99
|
---|
43 | VBox-liblzf_SOURCES = \
|
---|
44 | lzf_c.c \
|
---|
45 | lzf_d.c
|
---|
46 |
|
---|
47 | VBox-liblzf-static_TEMPLATE = VBoxR3StaticNonPedantic
|
---|
48 | VBox-liblzf-static_EXTENDS = VBox-liblzf
|
---|
49 | ifdef VBOX_WITH_NOCRT_STATIC
|
---|
50 | VBox-liblzf-static_DEFS = $(VBox-liblzf_DEFS) IPRT_NO_CRT_FOR_3RD_PARTY
|
---|
51 | endif
|
---|
52 |
|
---|
53 | ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition.
|
---|
54 | LIBRARIES += VBox-liblzf-x86
|
---|
55 | VBox-liblzf-x86_TEMPLATE = VBoxR3DllNonPedantic-x86
|
---|
56 | VBox-liblzf-x86_EXTENDS = VBox-liblzf
|
---|
57 | endif
|
---|
58 |
|
---|
59 |
|
---|
60 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
61 |
|
---|