rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | all: $(DIR_MAKEFILE)/audio-ctrl-service-bin |
| 2 | |
| 3 | LDFLAGS= -Wl,--hash-style=gnu -Wl,--copy-dt-needed-entries |
| 4 | |
| 5 | INCLUDE= ${BB_INCLUDE_ADD} \ |
| 6 | -I./$(DIR_MAKEFILE) \ |
| 7 | -I=${includedir}/libspeech_drv \ |
| 8 | -I=${includedir} |
| 9 | |
| 10 | CSRC= $(DIR_MAKEFILE)/audio-ctrl-service.c |
| 11 | |
| 12 | LIB_INCLUDE = -llog \ |
| 13 | -lxml2 \ |
| 14 | -lpthread \ |
| 15 | -lfake_libspeech_drv \ |
| 16 | -lspeech_drv \ |
| 17 | -lasound \ |
| 18 | -lmodemafectrl \ |
| 19 | -lsamplerate \ |
| 20 | -laudioparamparser |
| 21 | |
| 22 | CFLAGS = -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 | |
| 33 | clean: |
| 34 | rm -f audio-ctrl-service |