diff src/cs/services/audio/audio_bgd/audio_bgd.mak @ 52:1eb391057168

Main and Audio source directories lowercased
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 19 Jul 2018 22:49:10 +0000
parents src/cs/services/Audio/Audio_bgd/audio_bgd.mak@b6a5e36de839
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cs/services/audio/audio_bgd/audio_bgd.mak	Thu Jul 19 22:49:10 2018 +0000
@@ -0,0 +1,39 @@
+#
+#       Makefile for Audio Riviera service (ARM compiler)
+#
+#       Copyright (c) Texas Instruments 2001
+#
+#               Author: Mazard Francois
+#       Date : 12 July 2001
+
+# Compilation flags
+AUDIO_BGD_FLAGS     = $(NODBG) $(16INST) -mn $(CFLAGSSERVICES)
+WIN_AUDIO_BGD_FLAGS = $($(TP)CFLAGS) $(CFLAGSSERVICES)
+
+# Libraries definition
+LIB_AUDIO_BGD := $(OUT_LIB_DIR)/audio_bgd.lib
+CFG_LIBS  += $(LIB_AUDIO_BGD)
+
+# Source definition
+ifdef AUDIO_SOURCE
+COMMON_SRC_AUDIO_BGD := $(SERVICES_DIR)/audio/audio_bgd/audio_bgd_env.c \
+                        $(SERVICES_DIR)/audio/audio_bgd/audio_bgd_task.c
+
+SRC_AUDIO_BGD        := $(COMMON_SRC_AUDIO_BGD)
+WIN_SRC_AUDIO_BGD    := $(COMMON_SRC_AUDIO_BGD)
+endif
+
+# Objects and dependencies definition
+OBJ_AUDIO_BGD := $(patsubst ../%.c,$(TEMPORARY_FILE_DIR)/%.obj,$(filter %.c,$($(TP)SRC_AUDIO_BGD)))
+CFG_OBJS += $(OBJ_AUDIO_BGD)
+CFG_DEPS += $(OBJ_AUDIO_BGD:.obj=.d)
+
+
+######## LIBRARIES #############
+$(LIB_AUDIO_BGD) : $(OBJ_AUDIO_BGD)
+	$(MKDIR) $(dir $@)
+	$($(TP)LINKER) $($(TP)LFLAGS) $($(TP)LOUTOUT_FLAG)$@ $^
+
+######## OBJECTS #############
+$(OBJ_AUDIO_BGD) : $(TEMPORARY_FILE_DIR)/%.obj: ../%.c
+	$($(TP)COMPILER) $($(TP)AUDIO_BGD_FLAGS) $($(TP)COUTPUT_FLAG)$(@D)/ $<