FreeCalypso > hg > leo2moko-debug
comparison chipsetsw/services/atp/atp.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 the ATP (Agnostic TransPort) Riviera service (ARM compiler) | |
3 # | |
4 # Copyright (c) Texas Instruments 2001 | |
5 # | |
6 # Author: Cristian Livadiotti | |
7 # Date : 12 December 2001 | |
8 | |
9 | |
10 # Compilation flags | |
11 ATP_FLAGS = $(NODBG) $(16INST) -mn $(CFLAGSSERVICES_ATP) | |
12 WIN_ATP_FLAGS = $($(TP)CFLAGS) $(CFLAGSSERVICES_ATP) | |
13 | |
14 | |
15 # Libraries definition | |
16 LIB_ATP := $(OUT_LIB_DIR)/atp.lib | |
17 CFG_LIBS += $(LIB_ATP) | |
18 | |
19 | |
20 # Source definition | |
21 ifdef ATP_SOURCE | |
22 COMMON_SRC_ATP := $(SERVICES_DIR)/atp/atp_cmd.c \ | |
23 $(SERVICES_DIR)/atp/atp_env.c \ | |
24 $(SERVICES_DIR)/atp/atp_services.c \ | |
25 $(SERVICES_DIR)/atp/atp_sw_ent.c \ | |
26 $(SERVICES_DIR)/atp/atp_port.c \ | |
27 $(SERVICES_DIR)/atp/atp_gsm_bt_api.c | |
28 | |
29 SRC_ATP += $(COMMON_SRC_ATP) \ | |
30 $(SERVICES_DIR)/atp/atp_gsm_bt_api_misc.c | |
31 ifdef BLUETOOTH | |
32 SRC_ATP += $(SERVICES_DIR)/atp/atp_spp_api.c | |
33 endif | |
34 | |
35 WIN_SRC_ATP += $(COMMON_SRC_ATP) \ | |
36 $(SERVICES_DIR)/atp/atp_gsm_gsm_api_dummy.c \ | |
37 $(SERVICES_DIR)/atp/atp_uart.c \ | |
38 $(SERVICES_DIR)/atp/atp_uart_api.c \ | |
39 $(SERVICES_DIR)/atp/atp_uart_env.c \ | |
40 $(SERVICES_DIR)/atp/atp_uart_handle_msg.c | |
41 endif | |
42 | |
43 | |
44 # Objects and dependencies definition | |
45 OBJ_ATP := $(patsubst ../%.c,$(TEMPORARY_FILE_DIR)/%.obj,$(filter %.c,$($(TP)SRC_ATP))) | |
46 CFG_OBJS += $(OBJ_ATP) | |
47 CFG_DEPS += $(OBJ_ATP:.obj=.d) | |
48 | |
49 | |
50 ######## LIBRARIES ############# | |
51 $(LIB_ATP) : $(OBJ_ATP) | |
52 $(MKDIR) $(dir $@) | |
53 $($(TP)LINKER) $($(TP)LFLAGS) $($(TP)LOUTOUT_FLAG)$@ $^ | |
54 | |
55 ######## OBJECTS ############# | |
56 $(OBJ_ATP) : $(TEMPORARY_FILE_DIR)/%.obj: ../%.c | |
57 $($(TP)COMPILER) $($(TP)ATP_FLAGS) $($(TP)COUTPUT_FLAG)$(@D)/ $< | |
58 |