comparison src/cs/services/tty/tty.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 TTY Riviera service (ARM compiler)
3 #
4 # Copyright (c) Texas Instruments 2003
5 #
6 # Author: Frederic Turgis & Gerard Cauvy
7 # Date : 01/27/2003
8
9
10 # Compilation flags
11 TTY_FLAGS := $(NODBG) $(16INST) -mn $(CFLAGSSERVICES)
12 WIN_TTY_FLAGS := $($(TP)CFLAGS) $(CFLAGSSERVICES)
13
14
15 # Libraries definition
16 LIB_TTY := $(OUT_LIB_DIR)/tty.lib
17 CFG_LIBS += $(LIB_TTY)
18
19
20 # Source definition
21 COMMON_SRC_TTY += $(SERVICES_DIR)/tty/tty_api.c \
22 $(SERVICES_DIR)/tty/tty_env.c \
23 $(SERVICES_DIR)/tty/tty_task.c \
24 $(SERVICES_DIR)/tty/tty.c
25 SRC_TTY := $(COMMON_SRC_TTY)
26 WIN_SRC_TTY := $(COMMON_SRC_TTY)
27
28
29 # Objects and dependencies definition
30 OBJ_TTY := $(patsubst ../%.c,$(TEMPORARY_FILE_DIR)/%.obj,$(filter %.c,$($(TP)SRC_TTY)))
31 CFG_OBJS += $(OBJ_TTY)
32 CFG_DEPS += $(OBJ_TTY:.obj=.d)
33
34
35 ######## LIBRARIES #############
36 $(LIB_TTY) : $(OBJ_TTY)
37 $(MKDIR) $(dir $@)
38 $($(TP)LINKER) $($(TP)LFLAGS) $($(TP)LOUTOUT_FLAG)$@ $^
39
40 ######## OBJECTS #############
41 $(OBJ_TTY) : $(TEMPORARY_FILE_DIR)/%.obj: ../%.c
42 $($(TP)COMPILER) $($(TP)TTY_FLAGS) $($(TP)COUTPUT_FLAG)$(@D)/ $<
43