blob: 20f44b7f56d8652e1062a8fb4691c84ef95b29c7 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001all: $(DIR_MAKEFILE)/audio-ctrl-service-bin
2
3LDFLAGS= -Wl,--hash-style=gnu -Wl,--copy-dt-needed-entries
4
5INCLUDE= ${BB_INCLUDE_ADD} \
6 -I./$(DIR_MAKEFILE) \
7 -I=${includedir}/libspeech_drv \
8 -I=${includedir}
9
10CSRC= $(DIR_MAKEFILE)/audio-ctrl-service.c
11
12LIB_INCLUDE = -llog \
13 -lxml2 \
14 -lpthread \
15 -lfake_libspeech_drv \
16 -lspeech_drv \
17 -lasound \
18 -lmodemafectrl \
19 -lsamplerate \
20 -laudioparamparser
21
22CFLAGS = -DMTK_YOCTO_AUDIO \
23 -DMTK_SPEECH_VM_SUPPORT \
24 -DMTK_SPEECH_BGS_SUPPORT \
25# -DMTK_AUDIO_BRINGUP \
26# -DMTK_DUMMY_AUDIO_PARSER \
27# -DMTK_SPH_PARAM_V1 \
28# -DMTK_SPEECH_RECORD_SUPPORT \
29
30$(DIR_MAKEFILE)/audio-ctrl-service-bin:
31 $(CC) ${CSRC} ${LDFLAGS} ${CFLAGS} $(INCLUDE) $(LIB_INCLUDE) -o audio-ctrl-service
32
33clean:
34 rm -f audio-ctrl-service