blob: 20f44b7f56d8652e1062a8fb4691c84ef95b29c7 [file] [log] [blame]
all: $(DIR_MAKEFILE)/audio-ctrl-service-bin
LDFLAGS= -Wl,--hash-style=gnu -Wl,--copy-dt-needed-entries
INCLUDE= ${BB_INCLUDE_ADD} \
-I./$(DIR_MAKEFILE) \
-I=${includedir}/libspeech_drv \
-I=${includedir}
CSRC= $(DIR_MAKEFILE)/audio-ctrl-service.c
LIB_INCLUDE = -llog \
-lxml2 \
-lpthread \
-lfake_libspeech_drv \
-lspeech_drv \
-lasound \
-lmodemafectrl \
-lsamplerate \
-laudioparamparser
CFLAGS = -DMTK_YOCTO_AUDIO \
-DMTK_SPEECH_VM_SUPPORT \
-DMTK_SPEECH_BGS_SUPPORT \
# -DMTK_AUDIO_BRINGUP \
# -DMTK_DUMMY_AUDIO_PARSER \
# -DMTK_SPH_PARAM_V1 \
# -DMTK_SPEECH_RECORD_SUPPORT \
$(DIR_MAKEFILE)/audio-ctrl-service-bin:
$(CC) ${CSRC} ${LDFLAGS} ${CFLAGS} $(INCLUDE) $(LIB_INCLUDE) -o audio-ctrl-service
clean:
rm -f audio-ctrl-service