2015-04-29 15:00:04 +00:00
|
|
|
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
|
|
|
|
|
2016-04-24 08:56:31 +00:00
|
|
|
#
|
|
|
|
# Set include paths up before adding the dde_bsd_audio_include library
|
|
|
|
# because it will use INC_DIR += and must be at the end
|
|
|
|
#
|
2015-04-29 15:00:04 +00:00
|
|
|
INC_DIR += $(LIB_DIR)
|
|
|
|
INC_DIR += $(LIB_INC_DIR)
|
|
|
|
INC_DIR += $(AUDIO_CONTRIB_DIR)
|
|
|
|
|
2016-04-24 08:56:31 +00:00
|
|
|
LIBS += dde_bsd_audio_include
|
|
|
|
|
2020-06-19 12:38:37 +00:00
|
|
|
SRC_CC += dummies.cc driver.cc irq.cc mem.cc misc.cc scheduler.cc timer.cc
|
2015-04-29 15:00:04 +00:00
|
|
|
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
|
|
|
|
|
2020-06-19 13:30:33 +00:00
|
|
|
# libkern
|
|
|
|
SRC_C += lib/libkern/strlcpy.c
|
|
|
|
|
2016-04-24 08:56:31 +00:00
|
|
|
# disable false warning in audio.c:786
|
|
|
|
CC_C_OPT += -Wno-maybe-uninitialized
|
|
|
|
|
2015-04-29 15:00:04 +00:00
|
|
|
# enable when debugging
|
2019-10-16 09:57:44 +00:00
|
|
|
#CC_OPT += -DAUDIO_DEBUG
|
2015-04-29 15:00:04 +00:00
|
|
|
|
|
|
|
# audio interface
|
2016-04-24 08:56:31 +00:00
|
|
|
SRC_C += dev/audio.c
|
2015-04-29 15:00:04 +00:00
|
|
|
SRC_C += dev/mulaw.c
|
|
|
|
|
|
|
|
vpath %.c $(AUDIO_CONTRIB_DIR)
|
|
|
|
vpath %.c $(LIB_DIR)
|
|
|
|
vpath %.cc $(LIB_DIR)
|
|
|
|
|
|
|
|
# vi: set ft=make :
|