comparison src/g23m-gsm/alr2/alr.mak @ 3:b4c81ea2d291

src/g23m-gsm/alr2: initial import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 04:43:28 +0000
parents
children
comparison
equal deleted inserted replaced
2:e636eadcad21 3:b4c81ea2d291
1 #-----------------------------------------------------------------------------
2 # Project :
3 # Modul : J:\g23m-gsm\alr\alr.mak
4 #-----------------------------------------------------------------------------
5 # Copyright 2002 Texas Instruments Berlin, AG
6 # All rights reserved.
7 #
8 # This file is confidential and a trade secret of Texas
9 # Instruments Berlin, AG
10 # The receipt of or possession of this file does not convey
11 # any rights to reproduce or disclose its contents or to
12 # manufacture, use, or sell anything it may describe, in
13 # whole, or in part, without the specific written consent of
14 # Texas Instruments Berlin, AG.
15 #-----------------------------------------------------------------------------
16 #| Purpose :
17 #-----------------------------------------------------------------------------
18 #
19 # Setting Directory for ALR Objects
20 #
21 OBJ := $(L23_OBJ_DIR)/alr
22
23 SRCALR=$(CONDAT_DIR)/ms/src/alr
24
25 ifneq ($(PMODE),0)
26 ALRCONFIG=-DHAS_FLASH_EPROM -DALR=1 -DCHIPSET=$(CHIPSET) -DFF_MULTIBAND
27 ALROBJ = $(OBJ)/alr_cs.$(OBJ_TAIL) $(OBJ)/alr_csf.$(OBJ_TAIL) $(OBJ)/alr_main.$(OBJ_TAIL) \
28 $(OBJ)/alr_nc.$(OBJ_TAIL) $(OBJ)/alr_pch.$(OBJ_TAIL) $(OBJ)/alr_pei.$(OBJ_TAIL) \
29 $(OBJ)/alr_rach.$(OBJ_TAIL) $(OBJ)/alr_sc.$(OBJ_TAIL) $(OBJ)/alr_dedi.$(OBJ_TAIL)\
30 $(OBJ)/alr_mmi.$(OBJ_TAIL) $(OBJ)/alr_cbch.$(OBJ_TAIL) $(OBJ)/alr_trc.$(OBJ_TAIL)\
31 $(OBJ)/alr_tim.$(OBJ_TAIL)
32 endif
33
34 ifeq ($(EM),1)
35 ALROBJ += $(OBJ)/alr_em.$(OBJ_TAIL)
36 endif
37
38 # Necessary for dummy functions in alr_main.c
39 ifneq ($(SRVC),0)
40 COPT += -dFAX_AND_DATA
41 endif
42
43 ifeq ($(PMODE),2)
44 ALROBJ += $(OBJ)/alr_gprs.$(OBJ_TAIL)
45 endif
46 #
47 # ---------------- create TI++ ---------------------
48 #
49 $(TOP_DIR)/$(ALR_LIB) : $(OBJ) $(ALROBJ)
50 -$(PERL) $(CONDAT_DIR)/int/bin/make_ver.pl
51 $(AR) r $(TOP_DIR)/$(ALR_LIB) $(ALROBJ) ver.$(OBJ_TAIL)
52
53
54 $(OBJ):
55 mkdir $(subst /,$(SLASH),$(OBJ))
56
57 clean:
58 $(REMOVE) $(subst /,$(SLASH),$(OBJ))
59
60 $(ALROBJ) : $(OBJ)/%.$(OBJ_TAIL) : $(SRCALR)/%.c
61 echo -D$(NCONFIG) > cmd
62 echo -D$(NWARN) >> cmd
63 echo $(ALRCONFIG) >> cmd
64 echo $(COPT) >> cmd
65 echo $(COPT1) >> cmd
66 echo $(COTAR) >> cmd
67 echo -I$(ICOM) >> cmd
68 echo $(INCDRV2) >> cmd
69 echo -I$(ICDG) >> cmd
70 echo -i$(SRCALR) >> cmd
71 echo -fr$(OBJ) >> cmd
72 $(CC_PRE) $^ -@cmd
73 $(CC_INT) $(addsuffix .pp,$(basename $^))
74 $(CC_COM) $(addsuffix .pp_,$(basename $^)) -@cmd