comparison g23m/condat/ms/src/bmi/bmi.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 # Setting Directory for Layer4 Objects
3 #
4 TARID := bmi
5 OBJ := $(CONDAT_DIR)/obj/obj_$(TARID)
6
7 #INCLAYER4 = -I$(SRCMFW) -I$(SRCACI) -I$(SRCSMI) -I$(SRCKSD)
8 INCLAYER4 = -I$(SRCMFW) -I$(SRCACI) -I$(SRCSMI) -I$(SRCKSD) -I$(SRCMMS)
9
10 # must not be empty. set to "-D" for no local flags.
11 MY_OPTIONS = -D
12
13
14 SRCWAP=$(CONDAT_DIR)/ms/src/wapaus
15 SRCEZI=$(CONDAT_DIR)/ms/src/ezitxt
16 SRCCE=$(CONDAT_DIR)/ms/src/agfa
17 SRCATB=$(CONDAT_DIR)/ms/src/atb
18 COLOUR_MMI = 0
19 # New editor. 1 -> Compile. 0 -> Don't compile, compile old editor.
20 NEWED = 1
21
22
23 #
24 # Sim application setting
25 #
26
27 ifeq ($(TK),1)
28 COPT1 += -dSIM_TOOLKIT
29 else
30 COPT1 += -uSIM_TOOLKIT
31 endif
32
33 ifeq ($(MELGEN),1)
34 COPT1 += -dMMI_MELODYGENERATOR
35 else
36 COPT1 += -uMMI_MELODYGENERATOR
37 endif
38
39 ifeq ($(GAME),1)
40 COPT1 += -dMMIGAME
41 else
42 COPT1 += -uMMIGAME
43 endif
44
45
46 ifeq ($(CHIMMI),1)
47 COPT1+= -dCHINESE_MMI
48 else
49 COPT1+= -uCHINESE_MMI
50 endif
51
52
53 ifeq ($(ETXT),1)
54 COPT1 += -dEASY_TEXT_ENABLED
55 else
56 COPT1 += -uEASY_TEXT_ENABLED
57 endif
58
59
60 ifeq ($(WAP),1)
61 COPT1 += -dMMI_WAP_ENABLED
62 else
63 COPT1 += -uMMI_WAP_ENABLED
64 endif
65
66 #
67 # Support for Homezone
68
69 ifeq ($(HZONE),1)
70 COPT1 += -dMMI_HOMEZONE_ENABLED
71 else
72 COPT1 += -uMMI_HOMEZONE_ENABLED
73 endif
74
75
76 #
77 # Support for UNICODE
78 #
79
80 ifeq ($(UNIC),1)
81 COPT1 += -dNO_ASCIIZ
82 endif
83
84 #SPR890 - SH - Test mode menu
85 ifeq ($(MMITEST),1)
86 COPT1 += -dMMI_TEST_MODE
87 else
88 COPT1 += -uMMI_TEST_MODE
89 endif
90
91 #
92 # Support for GPRS
93 #
94 ifeq ($(PMODE),2)
95 COPT1 += -dMMI_GPRS_ENABLED
96 else
97 COPT1 += -uMMI_GPRS_ENABLED
98 endif
99
100 #
101 # Support for light version
102 #
103 #JVJ-SPR-1298. Provisional until a new option in the .inf file is inserted.
104
105 ifeq ($(SRVC),0)
106 COPT1 += -dMMI_LITE
107 else
108 COPT1 += -uMMI_LITE
109 endif
110
111
112 #
113 # Support for ENGINEERING MODE
114 #
115 ifeq ($(EM),1)
116 COPT1 += -dMMI_EM_ENABLED
117 else
118 COPT1 += -uMMI_EM_ENABLED
119 endif
120
121
122 #
123 # Support for Colour display
124 #
125 ifeq ($(BOARD),41)
126 LSCREEN = 1
127 COLOUR_MMI = 1
128 endif
129
130 ifeq ($(BOARD),40)
131 LSCREEN = 1
132 COLOUR_MMI = 1
133 endif
134
135 ifeq ($(SRVC),0)
136 COLOUR_MMI = 0
137 endif
138
139 ifeq ($(LSCREEN),1)
140 COPT1 += -dLSCREEN
141 else
142 COPT1 += -uLSCREEN
143 endif
144
145
146 ifeq ($(COLOUR_MMI),1)
147 COPT1 += -dCOLOURDISPLAY
148 else
149 COPT1 += -uCOLOURDISPLAY
150 endif
151
152 #TTY settings
153 ifeq ($(FF_TTY),1)
154 COPT1 += -dMMI_TTY_ENABLED
155 else
156 COPT1 += -uMMI_TTY_ENABLED
157 endif
158
159 #
160 # Internal Phonebook
161 # Currently always on
162 #
163 COPT1 += -dINT_PHONEBOOK
164
165 # temporary addition for 2TO1 stack; the assumption is that 2.1.x and 3.1 don't
166 # use this makefile; 2.0 and 1.0 will be on the g23m branch; so it should be
167 # safe to put the 2to1 related definition here without enclosing them within
168 # conditions
169
170 COPT1 += -dFF_2TO1_PS
171 #
172 # New editor (SPR#1428 - SH)
173 #
174 ifeq ($(NEWED),1)
175 COPT1 += -dNEW_EDITOR
176 else
177 COPT1 += -uNEW_EDITOR
178 endif
179
180 COREOBJ = $(OBJ)/MmiCall.$(OBJ_TAIL) \
181 $(OBJ)/MmiResources.$(OBJ_TAIL) \
182 $(OBJ)/MmiBlkLangDB.$(OBJ_TAIL) \
183 $(OBJ)/MmiBlkManager.$(OBJ_TAIL) \
184 $(OBJ)/MmiBlkResources.$(OBJ_TAIL) \
185 $(OBJ)/MmiBookCallDetailsWindow.$(OBJ_TAIL) \
186 $(OBJ)/MmiBookCallListWindow.$(OBJ_TAIL) \
187 $(OBJ)/MmiBookController.$(OBJ_TAIL) \
188 $(OBJ)/MmiBookDetailsWindow.$(OBJ_TAIL) \
189 $(OBJ)/MmiBookMenuWindow.$(OBJ_TAIL) \
190 $(OBJ)/MmiBookPhonebook.$(OBJ_TAIL) \
191 $(OBJ)/MmiBookSDNWindow.$(OBJ_TAIL) \
192 $(OBJ)/MmiBookSearchWindow.$(OBJ_TAIL) \
193 $(OBJ)/MmiBookServices.$(OBJ_TAIL) \
194 $(OBJ)/MmiBookShared.$(OBJ_TAIL) \
195 $(OBJ)/MmiBookUtils.$(OBJ_TAIL) \
196 $(OBJ)/MmiDialogs.$(OBJ_TAIL) \
197 $(OBJ)/MmiDummy.$(OBJ_TAIL) \
198 $(OBJ)/MmiIcons.$(OBJ_TAIL) \
199 $(OBJ)/MmiIdle.$(OBJ_TAIL) \
200 $(OBJ)/MmiLists.$(OBJ_TAIL) \
201 $(OBJ)/MmiLists2.$(OBJ_TAIL) \
202 $(OBJ)/MmiMain.$(OBJ_TAIL) \
203 $(OBJ)/MmiMenu.$(OBJ_TAIL) \
204 $(OBJ)/MmiMmi.$(OBJ_TAIL) \
205 $(OBJ)/MmiNetwork.$(OBJ_TAIL) \
206 $(OBJ)/MmiPins.$(OBJ_TAIL) \
207 $(OBJ)/MmiServices.$(OBJ_TAIL) \
208 $(OBJ)/MmiSettings.$(OBJ_TAIL) \
209 $(OBJ)/MmiSmsBroadcast.$(OBJ_TAIL) \
210 $(OBJ)/MmiSounds.$(OBJ_TAIL) \
211 $(OBJ)/MmiSmsIdle.$(OBJ_TAIL) \
212 $(OBJ)/MmiSmsMenu.$(OBJ_TAIL) \
213 $(OBJ)/MmiSmsSend.$(OBJ_TAIL) \
214 $(OBJ)/MmiSmsRead.$(OBJ_TAIL) \
215 $(OBJ)/MmiSoftkeys.$(OBJ_TAIL) \
216 $(OBJ)/MmiStart.$(OBJ_TAIL) \
217 $(OBJ)/MmiTimeDate.$(OBJ_TAIL) \
218 $(OBJ)/MmiUserData.$(OBJ_TAIL)\
219 $(OBJ)/MmiSatcall.$(OBJ_TAIL) \
220 $(OBJ)/MmiSatinfo.$(OBJ_TAIL) \
221 $(OBJ)/MmiSatinput.$(OBJ_TAIL) \
222 $(OBJ)/MmiSatmenu.$(OBJ_TAIL) \
223 $(OBJ)/MmiSimtoolkit.$(OBJ_TAIL) \
224 $(OBJ)/MmiVoiceMemo.$(OBJ_TAIL)\
225 $(OBJ)/MmiCalculatorMain.$(OBJ_TAIL) \
226 $(OBJ)/MmiMelody_data.$(OBJ_TAIL) \
227 $(OBJ)/MmiTimers.$(OBJ_TAIL) \
228 $(OBJ)/MmiAoc.$(OBJ_TAIL) \
229 $(OBJ)/MmiCPHS.$(OBJ_TAIL) \
230 $(OBJ)/MmiBand.$(OBJ_TAIL) \
231 $(OBJ)/MmiSatClassE.$(OBJ_TAIL) \
232
233 BMIOBJ = $(COREOBJ)
234
235 ifeq ($(NEWED),1)
236 NEWEDOBJ = $(OBJ)/AUIEditor.$(OBJ_TAIL)\
237 $(OBJ)/AUISymbol.$(OBJ_TAIL)\
238 $(OBJ)/AUITextEntry.$(OBJ_TAIL)\
239 $(OBJ)/AUICalcEditor.$(OBJ_TAIL)\
240 $(OBJ)/AUIPINEditor.$(OBJ_TAIL)
241 else
242 NEWEDOBJ += $(OBJ)/MmiBookInputWindow.$(OBJ_TAIL) \
243 $(OBJ)/MmiEditor.$(OBJ_TAIL)
244 endif
245 BMIOBJ += $(NEWEDOBJ)
246 EXTRAOBJ += $(NEWEDOBJ)
247
248
249 ifeq ($(HZONE),1)
250 BMIOBJ += $(OBJ)/MmiHomezone.$(OBJ_TAIL)
251 EXTRAOBJ += $(OBJ)/MmiHomezone.$(OBJ_TAIL)
252 endif
253
254 # aka GPRS
255 ifeq ($(PMODE),2)
256 BMIOBJ += $(OBJ)/MmiGprs.$(OBJ_TAIL)
257 EXTRAOBJ += $(OBJ)/MmiGprs.$(OBJ_TAIL)
258 endif
259
260 ifeq ($(EM),1)
261 BMIOBJ += $(OBJ)/MmiEm.$(OBJ_TAIL)
262 EXTRAOBJ += $(OBJ)/MmiEm.$(OBJ_TAIL)
263 endif
264
265 ifeq ($(ETXT),1)
266 BMIOBJ += $(OBJ)/MmiDictionary.$(OBJ_TAIL)
267 EXTRAOBJ += $(OBJ)/MmiDictionary.$(OBJ_TAIL)
268 # SH - Only compile MmiLatinPredText.c if new editor is switched OFF
269 ifeq ($(NEWED),0)
270 BMIOBJ += $(OBJ)/MmiLatinPredText.$(OBJ_TAIL)
271 EXTRAOBJ += $(OBJ)/MmiLatinPredText.$(OBJ_TAIL)
272 endif
273 endif
274
275 ifeq ($(CHIMMI),1)
276 BMIOBJ += $(OBJ)/MmiChineseInput.$(OBJ_TAIL)
277 EXTRAOBJ += $(OBJ)/MmiChineseInput.$(OBJ_TAIL)
278 endif
279
280 ifeq ($(MELGEN),1)
281 BMIOBJ += $(OBJ)/MmiMelodygeneratorMain.$(OBJ_TAIL)
282 EXTRAOBJ += $(OBJ)/MmiMelodygeneratorMain.$(OBJ_TAIL)
283 endif
284
285 ifeq ($(GAME),1)
286 BMIOBJ += $(OBJ)/Mmigame.$(OBJ_TAIL)
287 EXTRAOBJ += $(OBJ)/Mmigame.$(OBJ_TAIL)
288 endif
289
290 ifeq ($(WAP),1)
291 BMIWAPOBJ = $(OBJ)/wap_codec.$(OBJ_TAIL)
292 EXTRAOBJ += $(OBJ)/wap_codec.$(OBJ_TAIL)
293
294 WAPOBJ = $(OBJ)/MmiWapFfs.$(OBJ_TAIL) \
295 $(OBJ)/ATBWapAUI.$(OBJ_TAIL) \
296 $(OBJ)/ATBWapACI.$(OBJ_TAIL) \
297 $(OBJ)/AUIWap.$(OBJ_TAIL)
298 BMIOBJ += $(WAPOBJ)
299 EXTRAOBJ += $(WAPOBJ)
300 endif
301
302 #
303 # Creating bmi.lib
304 #
305 # Note: AR reached its limit in terms of command line length so we need to
306 # split the creation of $(BMI_LIB) into 2 steps: initial creation of a new
307 # library; then separate addition of "extra" objects. There are therefore
308 # 2 groups of objects - one for compilation (BMIOBJ/BMIWAPOBJ), and one for
309 # archiving (COREOBJ/EXTRAOBJ). AR does allow a 'command file' to be used
310 # instead of the command line; however, this has its own file formatting
311 # requirements and line length limits (neither of which are very clear) and
312 # there is no ready access to individual object file names, so the
313 # "COREOBJ/EXTRAOBJ" method is used - for now. Something similar is done in
314 # the ACI.
315
316 $(TOP_DIR)/$(BMI_LIB) : $(OBJ) $(COREOBJ) $(EXTRAOBJ)
317 -$(PERL) $(CONDAT_DIR)/int/bin/make_ver.pl
318 @cp ver.$(OBJ_TAIL) $(subst /,$(SLASH),$(OBJ)/ver.$(OBJ_TAIL))
319 cd $(subst /,$(SLASH),$(OBJ)) $(DELIMITER) $(AR) r $(TOP_DIR)/$(BMI_LIB) $(patsubst $(OBJ)/%,%,$(COREOBJ))
320 cd $(subst /,$(SLASH),$(OBJ)) $(DELIMITER) $(AR) r $(TOP_DIR)/$(BMI_LIB) $(patsubst $(OBJ)/%,%,$(EXTRAOBJ) ver.$(OBJ_TAIL))
321
322 $(OBJ):
323 mkdir $(subst /,$(SLASH),$(OBJ))
324
325 clean:
326 $(REMOVE) $(subst /,$(SLASH),$(OBJ))
327
328 $(BMIOBJ): $(OBJ)/%.$(OBJ_TAIL) : $(SRCBMI)/%.c
329 echo -D$(NCONFIG) > cmd
330 #HHV: Added FF_SAT_E for compilation of BMI. Must be removed after TCS4 merge!!!
331 echo -DFF_SAT_E >> cmd
332 # echo $(MY_OPTIONS) >> cmd
333 echo -D$(NTRACE) >> cmd
334 echo -D$(NWARN) >> cmd
335 echo -DTRGT_G23 >> cmd
336 echo -DAUS_CONDAT_TYPE_PORTING >> cmd
337 echo -DUSE_WIP_MALLOC >> cmd
338 echo $(COPT) >> cmd
339 echo $(COPT1) >> cmd
340 echo $(COTAR) >> cmd
341 echo $(FDOPT) >> cmd
342 echo $(INCDRV1) >> cmd
343 echo -I$(ICOM) >> cmd
344 echo $(INCDRV2) >> cmd
345 echo -I$(ICDG) >> cmd
346 echo -I$(IAUS) >> cmd
347 echo -I$(IGLE) >> cmd
348 echo -I$(IAUSC) >> cmd
349 echo -I$(SRCWAP) >> cmd
350 echo -I$(SRCATB) >> cmd
351 echo -I$(TOP_DIR)/zi/include >> cmd
352 echo $(INCLAYER4) >> cmd
353 echo -I$(SRCACIEXT) >> cmd
354 echo -I$(SRCACIDTI) >> cmd
355 echo -fr$(OBJ) >> cmd
356 $(CC_PRE) $^ -@cmd
357 $(CC_INT) $(addsuffix .pp,$(basename $^))
358 $(CC_COM) $(addsuffix .pp_,$(basename $^)) -@cmd
359
360 $(BMIWAPOBJ): $(OBJ)/%.$(OBJ_TAIL) : $(SRCWAP)/%.c
361 echo -D$(NCONFIG) > cmd
362 # echo $(MY_OPTIONS) >> cmd
363 echo -D$(NTRACE) >> cmd
364 echo -D$(NWARN) >> cmd
365 echo -DTRGT_G23 >> cmd
366 echo -DAUS_CONDAT_TYPE_PORTING >> cmd
367 echo $(COPT) >> cmd
368 echo $(COPT1) >> cmd
369 echo $(COTAR) >> cmd
370 echo $(FDOPT) >> cmd
371 echo $(INCDRV1) >> cmd
372 echo -I$(ICOM) >> cmd
373 echo $(INCDRV2) >> cmd
374 echo -I$(ICDG) >> cmd
375 echo -I$(IAUS) >> cmd
376 echo -I$(IAUSC) >> cmd
377 echo -I$(IGLE) >> cmd
378 echo -I$(SRCWAP) >> cmd
379 echo -I$(SRCATB) >> cmd
380 echo $(INCLAYER4) >> cmd
381 echo -I$(SRCACIEXT) >> cmd
382 echo -I$(SRCACIDTI) >> cmd
383 echo -fr$(OBJ) >> cmd
384 $(CC_PRE) $^ -@cmd
385 $(CC_INT) $(addsuffix .pp,$(basename $^))
386 $(CC_COM) $(addsuffix .pp_,$(basename $^)) -@cmd
387
388 # files to be added for MMS
389 # $(OBJ)/MmiMMSMenu.$(OBJ_TAIL) \
390 # $(OBJ)/MmiEMSCreate.$(OBJ_TAIL) \
391 # $(OBJ)/MmiMMSCreate.$(OBJ_TAIL) \
392 # $(OBJ)/MmiMMSBox.$(OBJ_TAIL) \
393 # $(OBJ)/Auiwapmms.$(OBJ_TAIL) \
394 # $(OBJ)/MmiMMSom.$(OBJ_TAIL) \
395 # $(OBJ)/MmiWindow.$(OBJ_TAIL) \
396 # $(OBJ)/MmiMmsSetting.$(OBJ_TAIL)
397 # $(OBJ)/AUIWap.$(OBJ_TAIL)\
398 # $(OBJ)/AUIWapPush.$(OBJ_TAIL)
399 # $(OBJ)/MmiMP3Test.$(OBJ_TAIL)