VirtualBox

source: vbox/trunk/src/libs/liblzf-3.4/Makefile.kmk@ 94130

Last change on this file since 94130 was 77127, checked in by vboxsync, 6 years ago

libs/liblzf-3.4,libs/openssl-1.1.0j: Use -std=gnu99 when compiling on FreeBSD (recent clang) to allow use of the asm GNU extension

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1# $Id: Makefile.kmk 77127 2019-02-01 16:18:33Z vboxsync $
2## @file
3# Sub-Makefile for liblzf.
4#
5
6#
7# Copyright (C) 2006-2017 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
19SUB_DEPTH = ../../..
20include $(KBUILD_PATH)/subheader.kmk
21
22LIBRARIES += VBox-liblzf
23if1of ($(KBUILD_TARGET),os2 win)
24 # only required for vbox-img
25 LIBRARIES += VBox-liblzf-static
26endif
27VBox-liblzf_TEMPLATE = VBoxR3RuntimeDllNonPedanticFast
28VBox-liblzf_BLD_TYPE = release # WARNING! Always optimizing this lib.
29VBox-liblzf_DEFS = ULTRA_FAST=1 HLOG=12
30VBox-liblzf_DEFS.x86 = STRICT_ALIGN=0
31VBox-liblzf_DEFS.amd64 = STRICT_ALIGN=0
32VBox-liblzf_CFLAGS.freebsd = -std=gnu99
33VBox-liblzf_SOURCES = \
34 lzf_c.c \
35 lzf_d.c
36
37VBox-liblzf-static_TEMPLATE = VBoxR3StaticNonPedantic
38VBox-liblzf-static_BLD_TYPE = $(VBox-liblzf_BLD_TYPE)
39VBox-liblzf-static_DEFS = $(VBox-liblzf_DEFS)
40VBox-liblzf-static_DEFS.x86 = $(VBox-liblzf_DEFS.x86)
41VBox-liblzf-static_DEFS.amd64 = $(VBox-liblzf_DEFS.amd64)
42VBox-liblzf-static_SOURCES = $(VBox-liblzf_SOURCES)
43
44ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition.
45 LIBRARIES += VBox-liblzf-x86
46 VBox-liblzf-x86_TEMPLATE = VBoxR3DllNonPedantic-x86
47 VBox-liblzf-x86_EXTENDS = VBox-liblzf
48endif
49
50
51include $(FILE_KBUILD_SUB_FOOTER)
52
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette