comparison src/cs/services/mks/mks.mak @ 0:945cf7f506b2

src/cs: chipsetsw import from tcs211-fcmodem binary blobs and LCD demo files have been excluded, all line endings are LF only
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2016 22:50:11 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:945cf7f506b2
1 #
2 # Makefile for MKS Riviera service (ARM compiler)
3 #
4 # Copyright (c) Texas Instruments 2001
5 #
6 # Author: Laurent Sollier
7 # Date : 04 December 2001
8
9 # Compilation flags
10 MKS_FLAGS = $(NODBG) $(16INST) -mn $(CFLAGSSERVICES)
11 WIN_MKS_FLAGS = $($(TP)CFLAGS) $(CFLAGSSERVICES)
12
13
14 # Libraries definition
15 LIB_MKS := $(OUT_LIB_DIR)/mks.lib
16 CFG_LIBS += $(LIB_MKS)
17
18
19 # Source definition
20 ifdef MKS_SOURCE
21 COMMON_SRC_MKS += $(SERVICES_DIR)/mks/mks_env.c \
22 $(SERVICES_DIR)/mks/mks_api.c \
23 $(SERVICES_DIR)/mks/mks_functions.c \
24 $(SERVICES_DIR)/mks/mks_handle_message.c \
25 $(SERVICES_DIR)/mks/mks_handle_timer.c \
26 $(SERVICES_DIR)/mks/mks_task.c
27 SRC_MKS += $(COMMON_SRC_MKS)
28 WIN_SRC_MKS += $(COMMON_SRC_MKS)
29 endif
30
31
32 # Objects and dependencies definition
33 OBJ_MKS := $(patsubst ../%.c,$(TEMPORARY_FILE_DIR)/%.obj,$(filter %.c,$($(TP)SRC_MKS)))
34 CFG_OBJS += $(OBJ_MKS)
35 CFG_DEPS += $(OBJ_MKS:.obj=.d)
36
37
38 ######## LIBRARIES #############
39 $(LIB_MKS) : $(OBJ_MKS)
40 $(MKDIR) $(dir $@)
41 $($(TP)LINKER) $($(TP)LFLAGS) $($(TP)LOUTOUT_FLAG)$@ $^
42
43 ######## OBJECTS #############
44 $(OBJ_MKS) : $(TEMPORARY_FILE_DIR)/%.obj: ../%.c
45 $($(TP)COMPILER) $($(TP)MKS_FLAGS) $($(TP)COUTPUT_FLAG)$(@D)/ $<
46