comparison chipsetsw/services/dar/dar.mak @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 #
2 # Makefile for DAR Riviera service (ARM compiler)
3 #
4 # Copyright (c) Texas Instruments 2001
5 #
6 # Author: Stephanie Gerthoux
7 # Date : 24 october 2001
8
9 # Compilation flags
10 DAR_FLAGS = $(NODBG) $(16INST) -mn $(CFLAGSSERVICES)
11 WIN_DAR_FLAGS = $($(TP)CFLAGS) $(CFLAGSSERVICES)
12
13 # Libraries definition
14 LIB_DAR := $(OUT_LIB_DIR)/dar.lib
15 LIB_DAR_GBL_VAR := $(OUT_LIB_DIR)/dar_gbl_var.lib
16 CFG_LIBS += $(LIB_DAR)
17
18 ifneq ($(GSMLITE),1)
19 CFG_LIBS += $(LIB_DAR_GBL_VAR)
20 endif
21
22
23 # Source definition
24 ifdef DAR_SOURCE
25 COMMON_SRC_DAR += $(SERVICES_DIR)/dar/dar_env.c \
26 $(SERVICES_DIR)/dar/dar_api.c \
27 $(SERVICES_DIR)/dar/dar_task.c \
28 $(SERVICES_DIR)/dar/dar_handle_message.c \
29 $(SERVICES_DIR)/dar/dar_diagnose.c \
30 $(SERVICES_DIR)/dar/dar_error_hdlr.c \
31 $(SERVICES_DIR)/dar/dar_msg_ft.c \
32 $(SERVICES_DIR)/dar/dar_watchdog.c \
33 $(SERVICES_DIR)/dar/dar_emergency.c
34
35 SRC_DAR += $(COMMON_SRC_DAR)
36 WIN_SRC_DAR += $(COMMON_SRC_DAR)
37
38 COMMON_SRC_DAR_GBL_VAR := $(SERVICES_DIR)/dar/dar_gbl_var.c
39 SRC_DAR_GBL_VAR := $(COMMON_SRC_DAR_GBL_VAR)
40 WIN_SRC_DAR_GBL_VAR := $(COMMON_SRC_DAR_GBL_VAR)
41 endif
42
43
44 # Objects and dependencies definition
45 OBJ_DAR := $(patsubst ../%.c,$(TEMPORARY_FILE_DIR)/%.obj,$(filter %.c,$($(TP)SRC_DAR)))
46 OBJ_DAR_GBL_VAR := $(patsubst ../%.c,$(TEMPORARY_FILE_DIR)/%.obj,$(filter %.c,$($(TP)SRC_DAR_GBL_VAR)))
47 CFG_OBJS += $(OBJ_DAR)
48 CFG_DEPS += $(OBJ_DAR:.obj=.d)
49
50 ifneq ($(GSMLITE),1)
51 CFG_OBJS += $(OBJ_DAR_GBL_VAR)
52 CFG_DEPS += $(OBJ_DAR_GBL_VAR:.obj=.d)
53 endif
54
55
56 ######## LIBRARIES #############
57 $(LIB_DAR) : $(OBJ_DAR)
58 $(MKDIR) $(dir $@)
59 $($(TP)LINKER) $($(TP)LFLAGS) $($(TP)LOUTOUT_FLAG)$@ $^
60
61 ifneq ($(GSMLITE),1)
62 $(LIB_DAR_GBL_VAR) : $(OBJ_DAR_GBL_VAR)
63 $(MKDIR) $(dir $@)
64 $($(TP)LINKER) $($(TP)LFLAGS) $($(TP)LOUTOUT_FLAG)$@ $^
65 endif
66
67
68 ######## OBJECTS #############
69 $(OBJ_DAR) $(OBJ_DAR_GBL_VAR): $(TEMPORARY_FILE_DIR)/%.obj: ../%.c
70 $($(TP)COMPILER) $($(TP)DAR_FLAGS) $($(TP)COUTPUT_FLAG)$(@D)/ $<