comparison src/cs/services/lls/lls.mak @ 0:4e78acac3d88

src/{condat,cs,gpf,nucleus}: import from Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:23:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4e78acac3d88
1 #
2 # Makefile for LLS Riviera service (ARM compiler)
3 #
4 # Copyright (c) Texas Instruments 2002
5 #
6 # Author: Laurent Sollier
7 # Date : 12 March 2002
8
9 # Compilation flags
10 LLS_FLAGS = $(NODBG) $(16INST) -mn $(CFLAGSSERVICES)
11 WIN_LLS_FLAGS = $($(TP)CFLAGS) $(CFLAGSSERVICES)
12
13
14 # Libraries definition
15 LIB_LLS := $(OUT_LIB_DIR)/lls.lib
16 CFG_LIBS += $(LIB_LLS)
17
18
19 # Source definition
20 ifdef LLS_SOURCE
21 COMMON_SRC_LLS := $(SERVICES_DIR)/lls/lls_env.c \
22 $(SERVICES_DIR)/lls/lls_api.c \
23 $(SERVICES_DIR)/lls/lls_functions.c
24 SRC_LLS := $(COMMON_SRC_LLS)
25 WIN_SRC_LLS := $(COMMON_SRC_LLS)
26 endif
27
28
29 # Objects and dependencies definition
30 OBJ_LLS := $(patsubst ../%.c,$(TEMPORARY_FILE_DIR)/%.obj,$(filter %.c,$($(TP)SRC_LLS)))
31 CFG_OBJS += $(OBJ_LLS)
32 CFG_DEPS += $(OBJ_LLS:.obj=.d)
33
34
35 ######## LIBRARIES #############
36 $(LIB_LLS) : $(OBJ_LLS)
37 $(MKDIR) $(dir $@)
38 $($(TP)LINKER) $($(TP)LFLAGS) $($(TP)LOUTOUT_FLAG)$@ $^
39
40 ######## OBJECTS #############
41 $(OBJ_LLS) : $(TEMPORARY_FILE_DIR)/%.obj: ../%.c
42 $($(TP)COMPILER) $($(TP)LLS_FLAGS) $($(TP)COUTPUT_FLAG)$(@D)/ $<