1 | # $Id: Makefile.kmk 96360 2022-08-19 20:07:33Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the libogg.
|
---|
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_VBOXLIBOGG = Template for adjusting assembler and C compiler flags.
|
---|
25 | TEMPLATE_VBOXLIBOGG_EXTENDS = VBoxR3DllNonPedanticFast
|
---|
26 | ifeq ($(KBUILD_TARGET),win)
|
---|
27 | TEMPLATE_VBOXLIBOGG_ASFLAGS.amd64 = $(filter-out -Worphan-labels -f win64, $(TEMPLATE_VBoxR3DllNonPedanticFast_ASFLAGS.amd64)) \
|
---|
28 | -f x64
|
---|
29 | else
|
---|
30 | TEMPLATE_VBOXLIBOGG_CFLAGS = $(filter-out $(VBOX_GCC_fvisibility-hidden), $(TEMPLATE_VBoxR3DllNonPedanticFast_CFLAGS))
|
---|
31 | TEMPLATE_VBOXLIBOGG_CFLAGS.amd64 = $(TEMPLATE_VBoxR3DllNonPedanticFast_CFLAGS.amd64) -msse # Needed?
|
---|
32 | TEMPLATE_VBOXLIBOGG_CFLAGS.x86 = $(TEMPLATE_VBoxR3DllNonPedanticFast_CFLAGS.x86) -msse
|
---|
33 | TEMPLATE_VBOXLIBOGG_ASFLAGS.amd64 = $(filter-out -Worphan-labels, $(TEMPLATE_VBoxR3DllNonPedanticFast_ASFLAGS.amd64))
|
---|
34 | TEMPLATE_VBOXLIBOGG_ASFLAGS.x86 = $(filter-out -Worphan-labels, $(TEMPLATE_VBoxR3DllNonPedanticFast_ASFLAGS.x86))
|
---|
35 | endif
|
---|
36 |
|
---|
37 |
|
---|
38 | #
|
---|
39 | # The VBox Ogg shared library.
|
---|
40 | #
|
---|
41 | LIBRARIES += VBox-libogg
|
---|
42 | VBox-libogg_TEMPLATE := VBOXLIBOGG
|
---|
43 |
|
---|
44 | VBox-libogg_INCS := \
|
---|
45 | . \
|
---|
46 | include/ \
|
---|
47 | include/ogg \
|
---|
48 | src
|
---|
49 |
|
---|
50 | VBox-libogg_SOURCES := \
|
---|
51 | src/bitwise.c \
|
---|
52 | src/framing.c
|
---|
53 |
|
---|
54 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
55 |
|
---|