FreeCalypso > hg > fc-magnetite
comparison src/aci2/mfw/mfw.mak @ 3:93999a60b835
src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 26 Sep 2016 00:29:36 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:c41a534f33c6 | 3:93999a60b835 |
---|---|
1 # | |
2 # Setting Directory for Layer4 Objects | |
3 # | |
4 #OBJ := $(L23_OBJ_DIR)/mfw | |
5 TARID := mfw$(NSRVC)$(NTK)$(NWAP)$(NBT)$(NCOMPTRC)$(NUNIC)$(NEM) | |
6 OBJ := $(CONDAT_DIR)/obj/obj_$(TARID) | |
7 | |
8 #containing compileroptions specific for this library | |
9 SPECOPT = $(FDOPT) $(MMIOPT) $(BTOPT) $(CPHSOPT) | |
10 | |
11 # must not be empty. set to "-D" for no local flags. | |
12 #MY_OPTIONS = -D | |
13 MY_OPTIONS = -DUMTS -DTARGET -D_RVF -DFF_SAT_E -DFF_2TO1_PS | |
14 | |
15 #INCLAYER4 = -I$(SRCMFW) -I$(SRCACI) -I$(SRCSMI) -I$(SRCKSD) $(INCBTI) | |
16 INCLAYER4 = -I$(SRCMFW) -I$(SRCACI) -I$(SRCACIDTI) -I$(SRCACIEXT) -I$(SRCSMI) -I$(SRCKSD) $(INCBTI) | |
17 | |
18 SRCOBJ = $(MFWOBJ) | |
19 SRCATB = $(CONDAT_DIR)/ms/src/atb | |
20 # New editor. 1 -> Compile. 0 -> Don't compile, compile old editor. | |
21 NEWED = 1 | |
22 | |
23 # | |
24 # Sim apllication setting | |
25 # | |
26 ifeq ($(TK),1) | |
27 COPT1 += -dSIM_TOOLKIT | |
28 else | |
29 COPT1 += -uSIM_TOOLKIT | |
30 endif | |
31 | |
32 # | |
33 # Support for light version | |
34 # | |
35 #JVJ-SPR-1298. Provisional until a new option in the .inf file is inserted. | |
36 | |
37 ifeq ($(SRVC),0) | |
38 COPT1 += -dMMI_LITE | |
39 else | |
40 COPT1 += -uMMI_LITE | |
41 endif | |
42 | |
43 | |
44 | |
45 #SMS PDU mode settings | |
46 ifeq ($(PDU),1) | |
47 COPT1 += -dSMS_PDU_SUPPORT | |
48 else | |
49 COPT1 += -uSMS_PDU_SUPPORT | |
50 endif | |
51 | |
52 # | |
53 # Support for UNICODE | |
54 # | |
55 ifeq ($(UNIC),1) | |
56 COPT1 += -dNO_ASCIIZ | |
57 endif | |
58 | |
59 # Support for MMI gprs | |
60 ifeq ($(PMODE),2) | |
61 COPT1 += -dMMI_GPRS_ENABLED | |
62 else | |
63 COPT1 += -uMMI_GPRS_ENABLED | |
64 endif | |
65 | |
66 # | |
67 # Internal Phonebook | |
68 # Currently always on | |
69 # | |
70 #ifeq ($(INTPB),1) | |
71 COPT1 += -dINT_PHONEBOOK | |
72 #else | |
73 #COPT1 += -uINT_PHONEBOOK | |
74 #endif | |
75 | |
76 # | |
77 # New editor (SPR#1428 - SH) | |
78 # | |
79 ifeq ($(NEWED),1) | |
80 COPT1 += -dNEW_EDITOR | |
81 else | |
82 COPY1 += -uNEW_EDITOR | |
83 endif | |
84 | |
85 # | |
86 # Begin MFW | |
87 # | |
88 ifeq ($(TK),0) | |
89 MFWOBJ := $(OBJ)/ti1_key.$(OBJ_TAIL) \ | |
90 $(OBJ)/ti1_tmr.$(OBJ_TAIL) \ | |
91 $(OBJ)/mfw_mfw.$(OBJ_TAIL) \ | |
92 $(OBJ)/mfw_win.$(OBJ_TAIL) \ | |
93 $(OBJ)/mfw_kbd.$(OBJ_TAIL) \ | |
94 $(OBJ)/mfw_tim.$(OBJ_TAIL) \ | |
95 $(OBJ)/mfw_mnu.$(OBJ_TAIL) \ | |
96 $(OBJ)/mfw_icn.$(OBJ_TAIL) $(OBJ)/mfw_ext.$(OBJ_TAIL) \ | |
97 $(OBJ)/mfw_cm.$(OBJ_TAIL) $(OBJ)/mfw_ss.$(OBJ_TAIL) \ | |
98 $(OBJ)/mfw_nm.$(OBJ_TAIL) $(OBJ)/mfw_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| |
122 $(OBJ)/mfw_sim.$(OBJ_TAIL) \ | |
123 $(OBJ)/mfw_sima.$(OBJ_TAIL) \ | |
124 $(OBJ)/mfw_sms.$(OBJ_TAIL) \ | |
125 $(OBJ)/mfw_phb.$(OBJ_TAIL) \ | |
126 $(OBJ)/mfw_mme.$(OBJ_TAIL) \ | |
127 $(OBJ)/mfw_cb.$(OBJ_TAIL) \ | |
128 $(OBJ)/mfw_acie.$(OBJ_TAIL) \ | |
129 $(OBJ)/mfw_sat.$(OBJ_TAIL) \ | |
130 $(OBJ)/mfw_lng.$(OBJ_TAIL) \ | |
131 $(OBJ)/mfw_cnvt.$(OBJ_TAIL) \ | |
132 $(OBJ)/mfw_cphs.$(OBJ_TAIL) \ | |
133 $(OBJ)/mfw_str.$(OBJ_TAIL) \ | |
134 $(OBJ)/mfw_ffs.$(OBJ_TAIL) \ | |
135 $(OBJ)/mfw_band.$(OBJ_TAIL) \ | |
136 $(OBJ)/mfw_utils.$(OBJ_TAIL) \ | |
137 $(OBJ)/mfw_aud.$(OBJ_TAIL) \ | |
138 $(OBJ)/mfw_td.$(OBJ_TAIL) \ | |
139 # $(OBJ)/mfw_mp3test.$(OBJ_TAIL) \ | |
140 # $(OBJ)/mfw_cam.$(OBJ_TAIL) | |
141 | |
142 endif | |
143 | |
144 # SH - Only compile mfw_edt if new editor is not defined | |
145 ifeq ($(NEWED),0) | |
146 MFWOBJ += $(OBJ)/mfw_edt.$(OBJ_TAIL) | |
147 endif | |
148 | |
149 ifeq ($(BT),2) | |
150 MFWOBJ += $(OBJ)/mfw_bt.$(OBJ_TAIL) $(OBJ)/mfw_bta.$(OBJ_TAIL) | |
151 endif | |
152 | |
153 ifeq ($(EM),1) | |
154 MFWOBJ += $(OBJ)/mfw_em.$(OBJ_TAIL) #SPR1209 | |
155 endif | |
156 # | |
157 # Add necessary GPRS modules when GPRS is requested | |
158 # | |
159 ifeq ($(PMODE),2) | |
160 MFWOBJ += $(OBJ)/mfw_gprs.$(OBJ_TAIL) | |
161 endif | |
162 | |
163 | |
164 # | |
165 # Common files for ATB | |
166 # | |
167 ifeq ($(NEWED),1) | |
168 MFWATBOBJ :=$(OBJ)/ATBCommon.$(OBJ_TAIL) \ | |
169 $(OBJ)/ATBDisplay.$(OBJ_TAIL) | |
170 endif | |
171 | |
172 | |
173 # | |
174 # New Editor | |
175 # | |
176 ifeq ($(NEWED),1) | |
177 MFWATBOBJ += $(OBJ)/ATBEditor.$(OBJ_TAIL) | |
178 endif | |
179 | |
180 # | |
181 # Internal phonebook | |
182 # Currently always on | |
183 # | |
184 #ifeq ($(INTPB),1) | |
185 MFWATBOBJ += $(OBJ)/ATBPb.$(OBJ_TAIL) \ | |
186 $(OBJ)/ATBPbGI.$(OBJ_TAIL) \ | |
187 $(OBJ)/ATBPbFS.$(OBJ_TAIL) | |
188 #endif | |
189 | |
190 # | |
191 # End MFW | |
192 # | |
193 | |
194 | |
195 # | |
196 # Creating mfw.lib | |
197 # | |
198 | |
199 | |
200 $(TOP_DIR)/$(MFW_LIB) : $(OBJ) $(SRCOBJ) $(MFWATBOBJ) | |
201 -$(PERL) $(CONDAT_DIR)/int/bin/make_ver.pl | |
202 $(AR) r $(TOP_DIR)/$(MFW_LIB) $(SRCOBJ) $(MFWATBOBJ) ver.$(OBJ_TAIL) | |
203 | |
204 $(OBJ): | |
205 mkdir $(subst /,$(SLASH),$(OBJ)) | |
206 | |
207 clean: | |
208 $(REMOVE) $(subst /,$(SLASH),$(OBJ)) | |
209 | |
210 | |
211 $(MFWOBJ): $(OBJ)/%.$(OBJ_TAIL) : $(SRCMFW)/%.c | |
212 echo -D$(NCONFIG) > cmd | |
213 echo $(MY_OPTIONS) >> cmd | |
214 echo -D$(NTRACE) >> cmd | |
215 echo -D$(NWARN) >> cmd | |
216 echo $(SPECOPT) >> cmd | |
217 echo $(COPT) >> cmd | |
218 echo $(COPT1) >> cmd | |
219 echo $(COTAR) >> cmd | |
220 echo $(FDOPT) >> cmd | |
221 echo $(INCDRV1) >> cmd | |
222 echo -I$(ICOM) >> cmd | |
223 echo $(INCDRV2) >> cmd | |
224 echo -I$(ICDG) >> cmd | |
225 echo -I$(SRCATB) >> cmd | |
226 echo $(INCLAYER4) >> cmd | |
227 echo -I$(SRCACIEXT) >> cmd | |
228 echo -I$(SRCACIDTI) >> cmd | |
229 echo -fr$(OBJ) >> cmd | |
230 $(CC_PRE) $^ -@cmd | |
231 $(CC_INT) $(addsuffix .pp,$(basename $^)) | |
232 $(CC_COM) $(addsuffix .pp_,$(basename $^)) -@cmd | |
233 | |
234 $(MFWATBOBJ): $(OBJ)/%.$(OBJ_TAIL) : $(SRCATB)/%.c | |
235 echo -D$(NCONFIG) > cmd | |
236 echo $(MY_OPTIONS) >> cmd | |
237 echo -D$(NTRACE) >> cmd | |
238 echo -D$(NWARN) >> cmd | |
239 echo $(SPECOPT) >> cmd | |
240 echo $(COPT) >> cmd | |
241 echo $(COPT1) >> cmd | |
242 echo $(COTAR) >> cmd | |
243 echo $(FDOPT) >> cmd | |
244 echo $(INCDRV1) >> cmd | |
245 echo -I$(ICOM) >> cmd | |
246 echo $(INCDRV2) >> cmd | |
247 echo -I$(ICDG) >> cmd | |
248 echo -I$(SRCATB) >> cmd | |
249 echo $(INCLAYER4) >> cmd | |
250 echo -fr$(OBJ) >> cmd | |
251 $(CC_PRE) $^ -@cmd | |
252 $(CC_INT) $(addsuffix .pp,$(basename $^)) | |
253 $(CC_COM) $(addsuffix .pp_,$(basename $^)) -@cmd |