mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 16:31:06 +00:00
bdb71d94c2
For historical reason the 'strlcpy' implemention was directly pull in into the emulation environment. There is, however, no reason not to use the contrib sources in the usual fashion. Issue #3929.
46 lines
1.0 KiB
Makefile
46 lines
1.0 KiB
Makefile
LIB_DIR = $(REP_DIR)/src/lib/audio
|
|
LIB_INC_DIR = $(LIB_DIR)/include
|
|
|
|
AUDIO_CONTRIB_DIR := $(call select_from_ports,dde_bsd)/src/lib/audio
|
|
|
|
#
|
|
# Set include paths up before adding the dde_bsd_audio_include library
|
|
# because it will use INC_DIR += and must be at the end
|
|
#
|
|
INC_DIR += $(LIB_DIR)
|
|
INC_DIR += $(LIB_INC_DIR)
|
|
INC_DIR += $(AUDIO_CONTRIB_DIR)
|
|
|
|
LIBS += dde_bsd_audio_include
|
|
|
|
SRC_CC += dummies.cc driver.cc irq.cc mem.cc misc.cc scheduler.cc timer.cc
|
|
SRC_C += bsd_emul.c
|
|
SRC_S += setjmp.S
|
|
|
|
CC_OPT += -Wno-unused-but-set-variable
|
|
|
|
# disable builtins
|
|
CC_OPT += -fno-builtin-printf -fno-builtin-snprintf -fno-builtin-vsnprintf \
|
|
-fno-builtin-malloc -fno-builtin-free -fno-builtin-log -fno-builtin-log2
|
|
|
|
CC_OPT += -D_KERNEL
|
|
|
|
# libkern
|
|
SRC_C += lib/libkern/strlcpy.c
|
|
|
|
# disable false warning in audio.c:786
|
|
CC_C_OPT += -Wno-maybe-uninitialized
|
|
|
|
# enable when debugging
|
|
#CC_OPT += -DAUDIO_DEBUG
|
|
|
|
# audio interface
|
|
SRC_C += dev/audio.c
|
|
SRC_C += dev/mulaw.c
|
|
|
|
vpath %.c $(AUDIO_CONTRIB_DIR)
|
|
vpath %.c $(LIB_DIR)
|
|
vpath %.cc $(LIB_DIR)
|
|
|
|
# vi: set ft=make :
|