comparison src/cs/services/etm/etm.mak @ 0:92470e5d0b9e

src: partial import from FC Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 15 May 2020 01:28:16 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:92470e5d0b9e
1 #
2 # Makefile for ETM Riviera service (ARM compiler)
3 #
4 # Copyright (c) Texas Instruments 2001
5 #
6 # Author: Stephanie Gerthoux
7 # Date : 24 october 2001
8
9
10 # Compilation flags
11 ETM_FLAGS := $(NODBG) $(16INST) -mn $(CFLAGSSERVICES)
12 WIN_ETM_FLAGS = $($(TP)CFLAGS) $(CFLAGSSERVICES)
13
14
15 # Libraries definition
16 LIB_ETM := $(OUT_LIB_DIR)/etm.lib
17 CFG_LIBS += $(LIB_ETM)
18
19
20 # Source definition
21 ifdef ETM_SOURCE
22 COMMON_SRC_ETM := $(SERVICES_DIR)/etm/etm_task.c \
23 $(SERVICES_DIR)/etm/etm_env.c \
24 $(SERVICES_DIR)/etm/etm_api.c \
25 $(SERVICES_DIR)/etm/etm_trace.c \
26 $(SERVICES_DIR)/etm/etm_at.c \
27 $(SERVICES_DIR)/etm/etm_audio.c \
28 $(SERVICES_DIR)/etm/etm_tmcore.c \
29 $(SERVICES_DIR)/etm/etm_tmpwr.c
30 SRC_ETM := $(COMMON_SRC_ETM)
31 WIN_SRC_ETM := $(COMMON_SRC_ETM)
32 endif
33
34
35 # Objects and dependencies definition
36 OBJ_ETM := $(patsubst ../%.c,$(TEMPORARY_FILE_DIR)/%.obj,$(filter %.c,$($(TP)SRC_ETM)))
37 CFG_OBJS += $(OBJ_ETM)
38 CFG_DEPS += $(OBJ_ETM:.obj=.d)
39
40
41 ######## LIBRARIES #############
42 $(LIB_ETM) : $(OBJ_ETM)
43 $(MKDIR) $(dir $@)
44 $($(TP)LINKER) $($(TP)LFLAGS) $($(TP)LOUTOUT_FLAG)$@ $^
45
46 ######## OBJECTS #############
47 $(OBJ_ETM) : $(TEMPORARY_FILE_DIR)/%.obj: ../%.c
48 $($(TP)COMPILER) $($(TP)ETM_FLAGS) $($(TP)COUTPUT_FLAG)$(@D)/ $<
49