# $Id: Makefile.kmk 106061 2024-09-16 14:03:52Z vboxsync $ ## @file # Sub-Makefile for zlib. # # # Copyright (C) 2006-2024 Oracle and/or its affiliates. # # This file is part of VirtualBox base platform packages, as # available from https://www.virtualbox.org. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation, in version 3 of the # License. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # SPDX-License-Identifier: GPL-3.0-only # SUB_DEPTH = ../../.. include $(KBUILD_PATH)/subheader.kmk LIBRARIES += VBox-zlib if1of ($(KBUILD_TARGET), os2 win) # only required for vbox-img LIBRARIES += VBox-zlib-static endif VBox-zlib_TEMPLATE = VBoxR3RuntimeDllNonPedanticFast VBox-zlib_DEFS = verbose=-1 NO_VIZ=1 ifn1of ($(KBUILD_TARGET), win) VBox-zlib_DEFS = Z_HAVE_UNISTD_H endif VBox-zlib_SOURCES = \ adler32.c \ compress.c \ crc32.c \ gzclose.c \ gzlib.c \ gzread.c \ gzwrite.c \ uncompr.c \ deflate.c \ trees.c \ zutil.c \ inflate.c \ infback.c \ inftrees.c \ inffast.c VBox-zlib-static_TEMPLATE = VBoxR3StaticNonPedantic VBox-zlib-static_DEFS = $(VBox-zlib_DEFS) ifdef VBOX_WITH_NOCRT_STATIC VBox-zlib-static_DEFS += IPRT_NO_CRT_FOR_3RD_PARTY endif VBox-zlib-static_SOURCES = $(VBox-zlib_SOURCES) ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition. LIBRARIES += VBox-zlib-x86 VBox-zlib-x86_TEMPLATE = VBoxR3DllNonPedantic-x86 VBox-zlib-x86_EXTENDS = VBox-zlib endif include $(FILE_KBUILD_SUB_FOOTER)