1 | # $Id: Makefile.kmk 96360 2022-08-19 20:07:33Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for libvorbis.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2022 Oracle Corporation
|
---|
8 | #
|
---|
9 | # Oracle Corporation confidential
|
---|
10 | # All rights reserved
|
---|
11 | #
|
---|
12 |
|
---|
13 | SUB_DEPTH = ../../..
|
---|
14 | include $(KBUILD_PATH)/subheader.kmk
|
---|
15 |
|
---|
16 |
|
---|
17 | #
|
---|
18 | # Need to drop some assembly flags and add some C flags (gcc) present in
|
---|
19 | # VBoxR3DllNonPedantic. So, create or own template deriving from it.
|
---|
20 | #
|
---|
21 | # Note! We ASSUME that see is available here (doesn't build cleanly on 32-bit
|
---|
22 | # linux without this assumption). Too bad for anyone with ancient CPUs.
|
---|
23 | #
|
---|
24 | TEMPLATE_VBOXLIBVORBIS = Template for adjusting assembler and C compiler flags.
|
---|
25 | TEMPLATE_VBOXLIBVORBIS_EXTENDS = VBoxR3DllNonPedanticFast
|
---|
26 | ifeq ($(KBUILD_TARGET),win)
|
---|
27 | TEMPLATE_VBOXLIBVORBIS_ASFLAGS.amd64 = $(filter-out -Worphan-labels -f win64, $(TEMPLATE_VBoxR3DllNonPedanticFast_ASFLAGS.amd64)) \
|
---|
28 | -f x64
|
---|
29 | else
|
---|
30 | TEMPLATE_VBOXLIBVORBIS_CFLAGS = $(filter-out $(VBOX_GCC_fvisibility-hidden), $(TEMPLATE_VBoxR3DllNonPedanticFast_CFLAGS))
|
---|
31 | TEMPLATE_VBOXLIBVORBIS_CFLAGS.amd64 = $(TEMPLATE_VBoxR3DllNonPedanticFast_CFLAGS.amd64) -msse # Needed?
|
---|
32 | TEMPLATE_VBOXLIBVORBIS_CFLAGS.x86 = $(TEMPLATE_VBoxR3DllNonPedanticFast_CFLAGS.x86) -msse
|
---|
33 | TEMPLATE_VBOXLIBVORBIS_ASFLAGS.amd64 = $(filter-out -Worphan-labels, $(TEMPLATE_VBoxR3DllNonPedanticFast_ASFLAGS.amd64))
|
---|
34 | TEMPLATE_VBOXLIBVORBIS_ASFLAGS.x86 = $(filter-out -Worphan-labels, $(TEMPLATE_VBoxR3DllNonPedanticFast_ASFLAGS.x86))
|
---|
35 | endif
|
---|
36 |
|
---|
37 |
|
---|
38 | #
|
---|
39 | # The VBox libvorbis shared library.
|
---|
40 | #
|
---|
41 | LIBRARIES += VBox-libvorbis
|
---|
42 | VBox-libvorbis_TEMPLATE := VBOXLIBVORBIS
|
---|
43 |
|
---|
44 | VBox-libvorbis_INCS := \
|
---|
45 | . \
|
---|
46 | include \
|
---|
47 | lib \
|
---|
48 | ../libogg-1.3.5/include
|
---|
49 |
|
---|
50 | # Include our own config.h. Not required on Windows.
|
---|
51 | ifn1of ($(KBUILD_TARGET), win)
|
---|
52 | VBox-libvorbis_DEFS += HAVE_CONFIG_H
|
---|
53 | endif
|
---|
54 |
|
---|
55 | VBox-libvorbis_SOURCES := \
|
---|
56 | lib/mdct.c \
|
---|
57 | lib/smallft.c \
|
---|
58 | lib/block.c \
|
---|
59 | lib/envelope.c \
|
---|
60 | lib/window.c \
|
---|
61 | lib/lsp.c \
|
---|
62 | lib/lpc.c \
|
---|
63 | lib/analysis.c \
|
---|
64 | lib/synthesis.c \
|
---|
65 | lib/psy.c \
|
---|
66 | lib/info.c \
|
---|
67 | lib/floor1.c \
|
---|
68 | lib/floor0.c \
|
---|
69 | lib/res0.c \
|
---|
70 | lib/mapping0.c \
|
---|
71 | lib/registry.c \
|
---|
72 | lib/codebook.c \
|
---|
73 | lib/sharedbook.c \
|
---|
74 | lib/lookup.c \
|
---|
75 | lib/bitrate.c \
|
---|
76 | lib/vorbisenc.c \
|
---|
77 | lib/vorbisfile.c
|
---|
78 |
|
---|
79 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|