update dev300-m58
[ooovba.git] / solenv / inc / _tg_def.mk
blobcae6cd48a6b1f3f387e9329c86ea976bd40ee062
1 # unroll begin
3 .IF "$(DEF1TARGETN)"!=""
5 #to make intuitiv naming work
6 .IF "$(DEF1LIBNAME)"!=""
7 DEFLIB1NAME*=$(DEF1LIBNAME)
8 .ENDIF # "$(DEF1LIBNAME)"!=""
10 .IF "$(DEFLIB1NAME)"!=""
11 DEF1DEPN+=$(foreach,i,$(DEFLIB1NAME) $(SLB)/$(i).lib)
12 .ENDIF
14 .IF "$(SHL1VERSIONMAP)"!=""
15 .IF "$(DEF1EXPORTFILE)"==""
16 .IF "$(GUI)"=="WNT"
17 DEF1EXPORTFILE=$(MISC)/$(SHL1VERSIONMAP:b)_$(SHL1TARGET).dxp
18 .IF "$(COM)"=="GCC"
19 $(DEF1EXPORTFILE) : $(SHL1OBJS) $(SHL1LIBS)
20 .ENDIF # .IF "$(COM)"=="GCC"
22 $(DEF1EXPORTFILE) : $(SHL1VERSIONMAP)
23 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
24 .IF "$(COM)"=="GCC"
25 -$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
26 -$(GREP) "\*\|?" $@ > $@.symbols-regexp
27 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
28 # Extract RTTI symbols from all the objects that will be used to build a shared library
29 nm -gP $(SHL1OBJS) \
30 `$(TYPE) /dev/null $(foreach,j,$(SHL1LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
31 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
32 # overwrite the map file generate into the local output tree with the generated
33 # exported symbols list
34 $(RENAME) $@.exported-symbols $@
35 .ENDIF # .IF "$(COM)"=="GCC"
37 .ENDIF # "$(GUI)"=="WNT"
39 .IF "$(GUI)"=="OS2"
40 DEF1EXPORTFILE=$(MISC)/$(SHL1VERSIONMAP:b)_$(SHL1TARGET).dxp
41 $(DEF1EXPORTFILE) : $(SHL1VERSIONMAP)
42 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
43 .ENDIF # "$(GUI)"=="OS2"
45 .ENDIF # "$(DEF1EXPORTFILE)"==""
46 .ENDIF # "$(SHL1VERSIONMAP)"!=""
48 .IF "$(GUI)"=="WNT"
50 DEF1FILTER=$(SOLARENV)/inc/dummy.flt
52 RMHACK1:=$(RM)
54 .IF "$(DEF1CEXP)"!=""
55 EXPORT_ALL_SWITCH=-A $(DEF1CEXP)
56 .ENDIF
58 .IF "$(link_always)"==""
59 $(DEF1TARGETN) : \
60 $(DEF1DEPN) \
61 $(DEF1EXPORTFILE)
62 .ELSE # "$(link_always)"==""
63 $(DEF1TARGETN) .PHONY :
64 .ENDIF # "$(link_always)"==""
65 @-$(RM) $@.tmpfile
66 @echo ------------------------------
67 @echo Making Module-Definitionfile : $@
68 @echo LIBRARY $(EMQ)"$(SHL1TARGETN:f)$(EMQ)" >$@.tmpfile
69 .IF "$(COM)"!="GCC"
70 @echo HEAPSIZE 0 >>$@.tmpfile
71 .ENDIF
72 @echo EXPORTS >>$@.tmpfile
73 .IF "$(VERSIONOBJ)"!=""
74 # getversioninfo fuer alle!!
75 @echo GetVersionInfo >>$@.tmpfile
76 .ENDIF
77 .IF "$(DEFLIB1NAME)"!=""
78 .IF "$(COM)"=="GCC"
79 @-$(RM) $(MISC)/$(SHL1TARGET).exp
80 dlltool --output-def $(MISC)/$(SHL1TARGET).exp --export-all-symbols \
81 `$(TYPE) $(foreach,i,$(DEFLIB1NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
82 tail --lines +3 $(MISC)/$(SHL1TARGET).exp | sed '/^;/d' >>$@.tmpfile
83 @-$(RM) $(MISC)/$(SHL1TARGET).exp
84 .ELSE
85 .IF "$(SHL1USE_EXPORTS)"==""
86 @-$(RMHACK1) $(MISC)/$(SHL1TARGET).exp
87 @$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL1TARGET).exp $(SLB)/$(DEFLIB1NAME).lib
88 @$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL1TARGET).flt $(MISC)/$(SHL1TARGET).exp >>$@.tmpfile
89 $(RMHACK1) $(MISC)/$(SHL1TARGET).exp
90 .ELSE # "$(SHL1USE_EXPORTS)"==""
91 @$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB1NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL1TARGET).direct
92 @$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF1FILTER) $(MISC)/$(SHL1TARGET).direct >>$@.tmpfile
93 .ENDIF # "$(SHL1USE_EXPORTS)"==""
94 .ENDIF
95 .ENDIF # "$(DEFLIB1NAME)"!=""
96 .IF "$(DEF1EXPORT1)"!=""
97 @echo $(DEF1EXPORT1) >>$@.tmpfile
98 .ENDIF
99 .IF "$(DEF1EXPORT2)"!=""
100 @echo $(DEF1EXPORT2) >>$@.tmpfile
101 .ENDIF
102 .IF "$(DEF1EXPORT3)"!=""
103 @echo $(DEF1EXPORT3) >>$@.tmpfile
104 .ENDIF
105 .IF "$(DEF1EXPORT4)"!=""
106 @echo $(DEF1EXPORT4) >>$@.tmpfile
107 .ENDIF
108 .IF "$(DEF1EXPORT5)"!=""
109 @echo $(DEF1EXPORT5) >>$@.tmpfile
110 .ENDIF
111 .IF "$(DEF1EXPORT6)"!=""
112 @echo $(DEF1EXPORT6) >>$@.tmpfile
113 .ENDIF
114 .IF "$(DEF1EXPORT7)"!=""
115 @echo $(DEF1EXPORT7) >>$@.tmpfile
116 .ENDIF
117 .IF "$(DEF1EXPORT8)"!=""
118 @echo $(DEF1EXPORT8) >>$@.tmpfile
119 .ENDIF
120 .IF "$(DEF1EXPORT9)"!=""
121 @echo $(DEF1EXPORT9) >>$@.tmpfile
122 .ENDIF
123 .IF "$(DEF1EXPORT10)"!=""
124 @echo $(DEF1EXPORT10) >>$@.tmpfile
125 .ENDIF
126 .IF "$(DEF1EXPORT11)"!=""
127 @echo $(DEF1EXPORT11) >>$@.tmpfile
128 .ENDIF
129 .IF "$(DEF1EXPORT12)"!=""
130 @echo $(DEF1EXPORT12) >>$@.tmpfile
131 .ENDIF
132 .IF "$(DEF1EXPORT13)"!=""
133 @echo $(DEF1EXPORT13) >>$@.tmpfile
134 .ENDIF
135 .IF "$(DEF1EXPORT14)"!=""
136 @echo $(DEF1EXPORT14) >>$@.tmpfile
137 .ENDIF
138 .IF "$(DEF1EXPORT15)"!=""
139 @echo $(DEF1EXPORT15) >>$@.tmpfile
140 .ENDIF
141 .IF "$(DEF1EXPORT16)"!=""
142 @echo $(DEF1EXPORT16) >>$@.tmpfile
143 .ENDIF
144 .IF "$(DEF1EXPORT17)"!=""
145 @echo $(DEF1EXPORT17) >>$@.tmpfile
146 .ENDIF
147 .IF "$(DEF1EXPORT18)"!=""
148 @echo $(DEF1EXPORT18) >>$@.tmpfile
149 .ENDIF
150 .IF "$(DEF1EXPORT19)"!=""
151 @echo $(DEF1EXPORT19) >>$@.tmpfile
152 .ENDIF
153 .IF "$(DEF1EXPORT20)"!=""
154 @echo $(DEF1EXPORT20) >>$@.tmpfile
155 .ENDIF
156 .IF "$(DEF1EXPORTFILE)"!=""
157 .IF "$(COM)"=="GCC"
158 $(TYPE) $(DEF1EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
159 .ELSE
160 $(TYPE) $(DEF1EXPORTFILE) >> $@.tmpfile
161 .ENDIF
162 .ENDIF
163 @-$(RM) $@
164 @$(RENAME) $@.tmpfile $@
165 .ENDIF # "$(GUI)"=="WNT"
167 .IF "$(GUI)"=="OS2"
169 #21/02/2006 YD dll names must be 8.3, invoke fix script
170 #check osl/os2/module.c/osl_loadModule()
171 SHL1TARGET8=$(shell @fix_shl $(SHL1TARGETN:f))
173 DEF1FILTER=$(SOLARENV)/inc/dummy.flt
174 DEF1NAMELIST=$(foreach,i,$(DEFLIB1NAME) $(SLB)/$(i).lib)
176 .IF "$(link_always)"==""
177 $(DEF1TARGETN) : \
178 $(DEF1DEPN) \
179 $(DEF1EXPORTFILE)
180 .ELSE # "$(link_always)"==""
181 $(DEF1TARGETN) .PHONY :
182 .ENDIF # "$(link_always)"==""
183 @+-$(RM) $@.tmpfile
184 @echo ------------------------------
185 @echo Making Module-Definitionfile : $@
186 @echo LIBRARY $(SHL1TARGET8) INITINSTANCE TERMINSTANCE >$@.tmpfile
187 @echo DATA MULTIPLE >>$@.tmpfile
188 @echo DESCRIPTION 'StarView 3.00 $(DEF1DES) $(UPD) $(UPDMINOR)' >>$@.tmpfile
189 @echo EXPORTS >>$@.tmpfile
190 .IF "$(VERSIONOBJ)"!=""
191 # getversioninfo fuer alle!!
192 @echo _GetVersionInfo >$@.tmp_ord
193 .ENDIF
195 .IF "$(DEFLIB1NAME)"!=""
196 @+echo $(SLB)/$(DEFLIB1NAME).lib
197 @+emxexpr $(DEF1NAMELIST) | fix_exp_file >> $@.tmp_ord
198 .ENDIF # "$(DEFLIB1NAME)"!=""
200 .IF "$(DEF1EXPORT1)"!=""
201 @echo $(DEF1EXPORT1) >>$@.tmpfile
202 .ENDIF
203 .IF "$(DEF1EXPORT2)"!=""
204 @echo $(DEF1EXPORT2) >>$@.tmpfile
205 .ENDIF
206 .IF "$(DEF1EXPORT3)"!=""
207 @echo $(DEF1EXPORT3) >>$@.tmpfile
208 .ENDIF
209 .IF "$(DEF1EXPORT4)"!=""
210 @echo $(DEF1EXPORT4) >>$@.tmpfile
211 .ENDIF
212 .IF "$(DEF1EXPORT5)"!=""
213 @echo $(DEF1EXPORT5) >>$@.tmpfile
214 .ENDIF
215 .IF "$(DEF1EXPORT6)"!=""
216 @echo $(DEF1EXPORT6) >>$@.tmpfile
217 .ENDIF
218 .IF "$(DEF1EXPORT7)"!=""
219 @echo $(DEF1EXPORT7) >>$@.tmpfile
220 .ENDIF
221 .IF "$(DEF1EXPORT8)"!=""
222 @echo $(DEF1EXPORT8) >>$@.tmpfile
223 .ENDIF
224 .IF "$(DEF1EXPORT9)"!=""
225 @echo $(DEF1EXPORT9) >>$@.tmpfile
226 .ENDIF
227 .IF "$(DEF1EXPORT10)"!=""
228 @echo $(DEF1EXPORT10) >>$@.tmpfile
229 .ENDIF
230 .IF "$(DEF1EXPORT11)"!=""
231 @echo $(DEF1EXPORT11) >>$@.tmpfile
232 .ENDIF
233 .IF "$(DEF1EXPORT12)"!=""
234 @echo $(DEF1EXPORT12) >>$@.tmpfile
235 .ENDIF
236 .IF "$(DEF1EXPORT13)"!=""
237 @echo $(DEF1EXPORT13) >>$@.tmpfile
238 .ENDIF
239 .IF "$(DEF1EXPORT14)"!=""
240 @echo $(DEF1EXPORT14) >>$@.tmpfile
241 .ENDIF
242 .IF "$(DEF1EXPORT15)"!=""
243 @echo $(DEF1EXPORT15) >>$@.tmpfile
244 .ENDIF
245 .IF "$(DEF1EXPORT16)"!=""
246 @echo $(DEF1EXPORT16) >>$@.tmpfile
247 .ENDIF
248 .IF "$(DEF1EXPORT17)"!=""
249 @echo $(DEF1EXPORT17) >>$@.tmpfile
250 .ENDIF
251 .IF "$(DEF1EXPORT18)"!=""
252 @echo $(DEF1EXPORT18) >>$@.tmpfile
253 .ENDIF
254 .IF "$(DEF1EXPORT19)"!=""
255 @echo $(DEF1EXPORT19) >>$@.tmpfile
256 .ENDIF
257 .IF "$(DEF1EXPORT20)"!=""
258 @echo $(DEF1EXPORT20) >>$@.tmpfile
259 .ENDIF
260 .IF "$(DEF1EXPORTFILE)"!=""
261 @fix_def_file < $(DEF1EXPORTFILE) >> $@.tmp_ord
262 .ENDIF
263 @sort < $@.tmp_ord | uniq > $@.exptmpfile
264 @fix_def_ord < $@.exptmpfile >> $@.tmpfile
265 @+-$(RM) $@
266 +$(RENAME) $@.tmpfile $@
267 @+-$(RM) $@.tmp_ord
268 @+-$(RM) $@.exptmpfile
269 +$(IMPLIB) $(IMPLIBFLAGS) $(SHL1IMPLIBN:s/.lib/.a/) $@
270 +emxomf -o $(SHL1IMPLIBN) $(SHL1IMPLIBN:s/.lib/.a/)
272 .ENDIF # "$(GUI)"=="OS2"
274 .IF "$(GUI)"=="UNX"
275 $(DEF1TARGETN): \
276 $(DEF1DEPN) \
277 $(DEF1EXPORTFILE)
278 @echo just a dummy for UNIX > $@
279 .ENDIF
280 .ENDIF # "$(DEF1TARGETN)"!=""
283 # Anweisungen fuer das Linken
284 # unroll begin
286 .IF "$(DEF2TARGETN)"!=""
288 #to make intuitiv naming work
289 .IF "$(DEF2LIBNAME)"!=""
290 DEFLIB2NAME*=$(DEF2LIBNAME)
291 .ENDIF # "$(DEF2LIBNAME)"!=""
293 .IF "$(DEFLIB2NAME)"!=""
294 DEF2DEPN+=$(foreach,i,$(DEFLIB2NAME) $(SLB)/$(i).lib)
295 .ENDIF
297 .IF "$(SHL2VERSIONMAP)"!=""
298 .IF "$(DEF2EXPORTFILE)"==""
299 .IF "$(GUI)"=="WNT"
300 DEF2EXPORTFILE=$(MISC)/$(SHL2VERSIONMAP:b)_$(SHL2TARGET).dxp
301 .IF "$(COM)"=="GCC"
302 $(DEF2EXPORTFILE) : $(SHL2OBJS) $(SHL2LIBS)
303 .ENDIF # .IF "$(COM)"=="GCC"
305 $(DEF2EXPORTFILE) : $(SHL2VERSIONMAP)
306 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
307 .IF "$(COM)"=="GCC"
308 -$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
309 -$(GREP) "\*\|?" $@ > $@.symbols-regexp
310 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
311 # Extract RTTI symbols from all the objects that will be used to build a shared library
312 nm -gP $(SHL2OBJS) \
313 `$(TYPE) /dev/null $(foreach,j,$(SHL2LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
314 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
315 # overwrite the map file generate into the local output tree with the generated
316 # exported symbols list
317 $(RENAME) $@.exported-symbols $@
318 .ENDIF # .IF "$(COM)"=="GCC"
320 .ENDIF # "$(GUI)"=="WNT"
322 .IF "$(GUI)"=="OS2"
323 DEF2EXPORTFILE=$(MISC)/$(SHL2VERSIONMAP:b)_$(SHL2TARGET).dxp
324 $(DEF2EXPORTFILE) : $(SHL2VERSIONMAP)
325 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
326 .ENDIF # "$(GUI)"=="OS2"
328 .ENDIF # "$(DEF2EXPORTFILE)"==""
329 .ENDIF # "$(SHL2VERSIONMAP)"!=""
331 .IF "$(GUI)"=="WNT"
333 DEF2FILTER=$(SOLARENV)/inc/dummy.flt
335 RMHACK2:=$(RM)
337 .IF "$(DEF2CEXP)"!=""
338 EXPORT_ALL_SWITCH=-A $(DEF2CEXP)
339 .ENDIF
341 .IF "$(link_always)"==""
342 $(DEF2TARGETN) : \
343 $(DEF2DEPN) \
344 $(DEF2EXPORTFILE)
345 .ELSE # "$(link_always)"==""
346 $(DEF2TARGETN) .PHONY :
347 .ENDIF # "$(link_always)"==""
348 @-$(RM) $@.tmpfile
349 @echo ------------------------------
350 @echo Making Module-Definitionfile : $@
351 @echo LIBRARY $(EMQ)"$(SHL2TARGETN:f)$(EMQ)" >$@.tmpfile
352 .IF "$(COM)"!="GCC"
353 @echo HEAPSIZE 0 >>$@.tmpfile
354 .ENDIF
355 @echo EXPORTS >>$@.tmpfile
356 .IF "$(VERSIONOBJ)"!=""
357 # getversioninfo fuer alle!!
358 @echo GetVersionInfo >>$@.tmpfile
359 .ENDIF
360 .IF "$(DEFLIB2NAME)"!=""
361 .IF "$(COM)"=="GCC"
362 @-$(RM) $(MISC)/$(SHL2TARGET).exp
363 dlltool --output-def $(MISC)/$(SHL2TARGET).exp --export-all-symbols \
364 `$(TYPE) $(foreach,i,$(DEFLIB2NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
365 tail --lines +3 $(MISC)/$(SHL2TARGET).exp | sed '/^;/d' >>$@.tmpfile
366 @-$(RM) $(MISC)/$(SHL2TARGET).exp
367 .ELSE
368 .IF "$(SHL2USE_EXPORTS)"==""
369 @-$(RMHACK2) $(MISC)/$(SHL2TARGET).exp
370 @$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL2TARGET).exp $(SLB)/$(DEFLIB2NAME).lib
371 @$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL2TARGET).flt $(MISC)/$(SHL2TARGET).exp >>$@.tmpfile
372 $(RMHACK2) $(MISC)/$(SHL2TARGET).exp
373 .ELSE # "$(SHL2USE_EXPORTS)"==""
374 @$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB2NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL2TARGET).direct
375 @$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF2FILTER) $(MISC)/$(SHL2TARGET).direct >>$@.tmpfile
376 .ENDIF # "$(SHL2USE_EXPORTS)"==""
377 .ENDIF
378 .ENDIF # "$(DEFLIB2NAME)"!=""
379 .IF "$(DEF2EXPORT1)"!=""
380 @echo $(DEF2EXPORT1) >>$@.tmpfile
381 .ENDIF
382 .IF "$(DEF2EXPORT2)"!=""
383 @echo $(DEF2EXPORT2) >>$@.tmpfile
384 .ENDIF
385 .IF "$(DEF2EXPORT3)"!=""
386 @echo $(DEF2EXPORT3) >>$@.tmpfile
387 .ENDIF
388 .IF "$(DEF2EXPORT4)"!=""
389 @echo $(DEF2EXPORT4) >>$@.tmpfile
390 .ENDIF
391 .IF "$(DEF2EXPORT5)"!=""
392 @echo $(DEF2EXPORT5) >>$@.tmpfile
393 .ENDIF
394 .IF "$(DEF2EXPORT6)"!=""
395 @echo $(DEF2EXPORT6) >>$@.tmpfile
396 .ENDIF
397 .IF "$(DEF2EXPORT7)"!=""
398 @echo $(DEF2EXPORT7) >>$@.tmpfile
399 .ENDIF
400 .IF "$(DEF2EXPORT8)"!=""
401 @echo $(DEF2EXPORT8) >>$@.tmpfile
402 .ENDIF
403 .IF "$(DEF2EXPORT9)"!=""
404 @echo $(DEF2EXPORT9) >>$@.tmpfile
405 .ENDIF
406 .IF "$(DEF2EXPORT10)"!=""
407 @echo $(DEF2EXPORT10) >>$@.tmpfile
408 .ENDIF
409 .IF "$(DEF2EXPORT11)"!=""
410 @echo $(DEF2EXPORT11) >>$@.tmpfile
411 .ENDIF
412 .IF "$(DEF2EXPORT12)"!=""
413 @echo $(DEF2EXPORT12) >>$@.tmpfile
414 .ENDIF
415 .IF "$(DEF2EXPORT13)"!=""
416 @echo $(DEF2EXPORT13) >>$@.tmpfile
417 .ENDIF
418 .IF "$(DEF2EXPORT14)"!=""
419 @echo $(DEF2EXPORT14) >>$@.tmpfile
420 .ENDIF
421 .IF "$(DEF2EXPORT15)"!=""
422 @echo $(DEF2EXPORT15) >>$@.tmpfile
423 .ENDIF
424 .IF "$(DEF2EXPORT16)"!=""
425 @echo $(DEF2EXPORT16) >>$@.tmpfile
426 .ENDIF
427 .IF "$(DEF2EXPORT17)"!=""
428 @echo $(DEF2EXPORT17) >>$@.tmpfile
429 .ENDIF
430 .IF "$(DEF2EXPORT18)"!=""
431 @echo $(DEF2EXPORT18) >>$@.tmpfile
432 .ENDIF
433 .IF "$(DEF2EXPORT19)"!=""
434 @echo $(DEF2EXPORT19) >>$@.tmpfile
435 .ENDIF
436 .IF "$(DEF2EXPORT20)"!=""
437 @echo $(DEF2EXPORT20) >>$@.tmpfile
438 .ENDIF
439 .IF "$(DEF2EXPORTFILE)"!=""
440 .IF "$(COM)"=="GCC"
441 $(TYPE) $(DEF2EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
442 .ELSE
443 $(TYPE) $(DEF2EXPORTFILE) >> $@.tmpfile
444 .ENDIF
445 .ENDIF
446 @-$(RM) $@
447 @$(RENAME) $@.tmpfile $@
448 .ENDIF # "$(GUI)"=="WNT"
450 .IF "$(GUI)"=="OS2"
452 #21/02/2006 YD dll names must be 8.3, invoke fix script
453 #check osl/os2/module.c/osl_loadModule()
454 SHL2TARGET8=$(shell @fix_shl $(SHL2TARGETN:f))
456 DEF2FILTER=$(SOLARENV)/inc/dummy.flt
457 DEF2NAMELIST=$(foreach,i,$(DEFLIB2NAME) $(SLB)/$(i).lib)
459 .IF "$(link_always)"==""
460 $(DEF2TARGETN) : \
461 $(DEF2DEPN) \
462 $(DEF2EXPORTFILE)
463 .ELSE # "$(link_always)"==""
464 $(DEF2TARGETN) .PHONY :
465 .ENDIF # "$(link_always)"==""
466 @+-$(RM) $@.tmpfile
467 @echo ------------------------------
468 @echo Making Module-Definitionfile : $@
469 @echo LIBRARY $(SHL2TARGET8) INITINSTANCE TERMINSTANCE >$@.tmpfile
470 @echo DATA MULTIPLE >>$@.tmpfile
471 @echo DESCRIPTION 'StarView 3.00 $(DEF2DES) $(UPD) $(UPDMINOR)' >>$@.tmpfile
472 @echo EXPORTS >>$@.tmpfile
473 .IF "$(VERSIONOBJ)"!=""
474 # getversioninfo fuer alle!!
475 @echo _GetVersionInfo >$@.tmp_ord
476 .ENDIF
478 .IF "$(DEFLIB2NAME)"!=""
479 @+echo $(SLB)/$(DEFLIB2NAME).lib
480 @+emxexpr $(DEF2NAMELIST) | fix_exp_file >> $@.tmp_ord
481 .ENDIF # "$(DEFLIB2NAME)"!=""
483 .IF "$(DEF2EXPORT1)"!=""
484 @echo $(DEF2EXPORT1) >>$@.tmpfile
485 .ENDIF
486 .IF "$(DEF2EXPORT2)"!=""
487 @echo $(DEF2EXPORT2) >>$@.tmpfile
488 .ENDIF
489 .IF "$(DEF2EXPORT3)"!=""
490 @echo $(DEF2EXPORT3) >>$@.tmpfile
491 .ENDIF
492 .IF "$(DEF2EXPORT4)"!=""
493 @echo $(DEF2EXPORT4) >>$@.tmpfile
494 .ENDIF
495 .IF "$(DEF2EXPORT5)"!=""
496 @echo $(DEF2EXPORT5) >>$@.tmpfile
497 .ENDIF
498 .IF "$(DEF2EXPORT6)"!=""
499 @echo $(DEF2EXPORT6) >>$@.tmpfile
500 .ENDIF
501 .IF "$(DEF2EXPORT7)"!=""
502 @echo $(DEF2EXPORT7) >>$@.tmpfile
503 .ENDIF
504 .IF "$(DEF2EXPORT8)"!=""
505 @echo $(DEF2EXPORT8) >>$@.tmpfile
506 .ENDIF
507 .IF "$(DEF2EXPORT9)"!=""
508 @echo $(DEF2EXPORT9) >>$@.tmpfile
509 .ENDIF
510 .IF "$(DEF2EXPORT10)"!=""
511 @echo $(DEF2EXPORT10) >>$@.tmpfile
512 .ENDIF
513 .IF "$(DEF2EXPORT11)"!=""
514 @echo $(DEF2EXPORT11) >>$@.tmpfile
515 .ENDIF
516 .IF "$(DEF2EXPORT12)"!=""
517 @echo $(DEF2EXPORT12) >>$@.tmpfile
518 .ENDIF
519 .IF "$(DEF2EXPORT13)"!=""
520 @echo $(DEF2EXPORT13) >>$@.tmpfile
521 .ENDIF
522 .IF "$(DEF2EXPORT14)"!=""
523 @echo $(DEF2EXPORT14) >>$@.tmpfile
524 .ENDIF
525 .IF "$(DEF2EXPORT15)"!=""
526 @echo $(DEF2EXPORT15) >>$@.tmpfile
527 .ENDIF
528 .IF "$(DEF2EXPORT16)"!=""
529 @echo $(DEF2EXPORT16) >>$@.tmpfile
530 .ENDIF
531 .IF "$(DEF2EXPORT17)"!=""
532 @echo $(DEF2EXPORT17) >>$@.tmpfile
533 .ENDIF
534 .IF "$(DEF2EXPORT18)"!=""
535 @echo $(DEF2EXPORT18) >>$@.tmpfile
536 .ENDIF
537 .IF "$(DEF2EXPORT19)"!=""
538 @echo $(DEF2EXPORT19) >>$@.tmpfile
539 .ENDIF
540 .IF "$(DEF2EXPORT20)"!=""
541 @echo $(DEF2EXPORT20) >>$@.tmpfile
542 .ENDIF
543 .IF "$(DEF2EXPORTFILE)"!=""
544 @fix_def_file < $(DEF2EXPORTFILE) >> $@.tmp_ord
545 .ENDIF
546 @sort < $@.tmp_ord | uniq > $@.exptmpfile
547 @fix_def_ord < $@.exptmpfile >> $@.tmpfile
548 @+-$(RM) $@
549 +$(RENAME) $@.tmpfile $@
550 @+-$(RM) $@.tmp_ord
551 @+-$(RM) $@.exptmpfile
552 +$(IMPLIB) $(IMPLIBFLAGS) $(SHL2IMPLIBN:s/.lib/.a/) $@
553 +emxomf -o $(SHL2IMPLIBN) $(SHL2IMPLIBN:s/.lib/.a/)
555 .ENDIF # "$(GUI)"=="OS2"
557 .IF "$(GUI)"=="UNX"
558 $(DEF2TARGETN): \
559 $(DEF2DEPN) \
560 $(DEF2EXPORTFILE)
561 @echo just a dummy for UNIX > $@
562 .ENDIF
563 .ENDIF # "$(DEF2TARGETN)"!=""
566 # Anweisungen fuer das Linken
567 # unroll begin
569 .IF "$(DEF3TARGETN)"!=""
571 #to make intuitiv naming work
572 .IF "$(DEF3LIBNAME)"!=""
573 DEFLIB3NAME*=$(DEF3LIBNAME)
574 .ENDIF # "$(DEF3LIBNAME)"!=""
576 .IF "$(DEFLIB3NAME)"!=""
577 DEF3DEPN+=$(foreach,i,$(DEFLIB3NAME) $(SLB)/$(i).lib)
578 .ENDIF
580 .IF "$(SHL3VERSIONMAP)"!=""
581 .IF "$(DEF3EXPORTFILE)"==""
582 .IF "$(GUI)"=="WNT"
583 DEF3EXPORTFILE=$(MISC)/$(SHL3VERSIONMAP:b)_$(SHL3TARGET).dxp
584 .IF "$(COM)"=="GCC"
585 $(DEF3EXPORTFILE) : $(SHL3OBJS) $(SHL3LIBS)
586 .ENDIF # .IF "$(COM)"=="GCC"
588 $(DEF3EXPORTFILE) : $(SHL3VERSIONMAP)
589 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
590 .IF "$(COM)"=="GCC"
591 -$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
592 -$(GREP) "\*\|?" $@ > $@.symbols-regexp
593 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
594 # Extract RTTI symbols from all the objects that will be used to build a shared library
595 nm -gP $(SHL3OBJS) \
596 `$(TYPE) /dev/null $(foreach,j,$(SHL3LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
597 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
598 # overwrite the map file generate into the local output tree with the generated
599 # exported symbols list
600 $(RENAME) $@.exported-symbols $@
601 .ENDIF # .IF "$(COM)"=="GCC"
603 .ENDIF # "$(GUI)"=="WNT"
605 .IF "$(GUI)"=="OS2"
606 DEF3EXPORTFILE=$(MISC)/$(SHL3VERSIONMAP:b)_$(SHL3TARGET).dxp
607 $(DEF3EXPORTFILE) : $(SHL3VERSIONMAP)
608 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
609 .ENDIF # "$(GUI)"=="OS2"
611 .ENDIF # "$(DEF3EXPORTFILE)"==""
612 .ENDIF # "$(SHL3VERSIONMAP)"!=""
614 .IF "$(GUI)"=="WNT"
616 DEF3FILTER=$(SOLARENV)/inc/dummy.flt
618 RMHACK3:=$(RM)
620 .IF "$(DEF3CEXP)"!=""
621 EXPORT_ALL_SWITCH=-A $(DEF3CEXP)
622 .ENDIF
624 .IF "$(link_always)"==""
625 $(DEF3TARGETN) : \
626 $(DEF3DEPN) \
627 $(DEF3EXPORTFILE)
628 .ELSE # "$(link_always)"==""
629 $(DEF3TARGETN) .PHONY :
630 .ENDIF # "$(link_always)"==""
631 @-$(RM) $@.tmpfile
632 @echo ------------------------------
633 @echo Making Module-Definitionfile : $@
634 @echo LIBRARY $(EMQ)"$(SHL3TARGETN:f)$(EMQ)" >$@.tmpfile
635 .IF "$(COM)"!="GCC"
636 @echo HEAPSIZE 0 >>$@.tmpfile
637 .ENDIF
638 @echo EXPORTS >>$@.tmpfile
639 .IF "$(VERSIONOBJ)"!=""
640 # getversioninfo fuer alle!!
641 @echo GetVersionInfo >>$@.tmpfile
642 .ENDIF
643 .IF "$(DEFLIB3NAME)"!=""
644 .IF "$(COM)"=="GCC"
645 @-$(RM) $(MISC)/$(SHL3TARGET).exp
646 dlltool --output-def $(MISC)/$(SHL3TARGET).exp --export-all-symbols \
647 `$(TYPE) $(foreach,i,$(DEFLIB3NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
648 tail --lines +3 $(MISC)/$(SHL3TARGET).exp | sed '/^;/d' >>$@.tmpfile
649 @-$(RM) $(MISC)/$(SHL3TARGET).exp
650 .ELSE
651 .IF "$(SHL3USE_EXPORTS)"==""
652 @-$(RMHACK3) $(MISC)/$(SHL3TARGET).exp
653 @$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL3TARGET).exp $(SLB)/$(DEFLIB3NAME).lib
654 @$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL3TARGET).flt $(MISC)/$(SHL3TARGET).exp >>$@.tmpfile
655 $(RMHACK3) $(MISC)/$(SHL3TARGET).exp
656 .ELSE # "$(SHL3USE_EXPORTS)"==""
657 @$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB3NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL3TARGET).direct
658 @$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF3FILTER) $(MISC)/$(SHL3TARGET).direct >>$@.tmpfile
659 .ENDIF # "$(SHL3USE_EXPORTS)"==""
660 .ENDIF
661 .ENDIF # "$(DEFLIB3NAME)"!=""
662 .IF "$(DEF3EXPORT1)"!=""
663 @echo $(DEF3EXPORT1) >>$@.tmpfile
664 .ENDIF
665 .IF "$(DEF3EXPORT2)"!=""
666 @echo $(DEF3EXPORT2) >>$@.tmpfile
667 .ENDIF
668 .IF "$(DEF3EXPORT3)"!=""
669 @echo $(DEF3EXPORT3) >>$@.tmpfile
670 .ENDIF
671 .IF "$(DEF3EXPORT4)"!=""
672 @echo $(DEF3EXPORT4) >>$@.tmpfile
673 .ENDIF
674 .IF "$(DEF3EXPORT5)"!=""
675 @echo $(DEF3EXPORT5) >>$@.tmpfile
676 .ENDIF
677 .IF "$(DEF3EXPORT6)"!=""
678 @echo $(DEF3EXPORT6) >>$@.tmpfile
679 .ENDIF
680 .IF "$(DEF3EXPORT7)"!=""
681 @echo $(DEF3EXPORT7) >>$@.tmpfile
682 .ENDIF
683 .IF "$(DEF3EXPORT8)"!=""
684 @echo $(DEF3EXPORT8) >>$@.tmpfile
685 .ENDIF
686 .IF "$(DEF3EXPORT9)"!=""
687 @echo $(DEF3EXPORT9) >>$@.tmpfile
688 .ENDIF
689 .IF "$(DEF3EXPORT10)"!=""
690 @echo $(DEF3EXPORT10) >>$@.tmpfile
691 .ENDIF
692 .IF "$(DEF3EXPORT11)"!=""
693 @echo $(DEF3EXPORT11) >>$@.tmpfile
694 .ENDIF
695 .IF "$(DEF3EXPORT12)"!=""
696 @echo $(DEF3EXPORT12) >>$@.tmpfile
697 .ENDIF
698 .IF "$(DEF3EXPORT13)"!=""
699 @echo $(DEF3EXPORT13) >>$@.tmpfile
700 .ENDIF
701 .IF "$(DEF3EXPORT14)"!=""
702 @echo $(DEF3EXPORT14) >>$@.tmpfile
703 .ENDIF
704 .IF "$(DEF3EXPORT15)"!=""
705 @echo $(DEF3EXPORT15) >>$@.tmpfile
706 .ENDIF
707 .IF "$(DEF3EXPORT16)"!=""
708 @echo $(DEF3EXPORT16) >>$@.tmpfile
709 .ENDIF
710 .IF "$(DEF3EXPORT17)"!=""
711 @echo $(DEF3EXPORT17) >>$@.tmpfile
712 .ENDIF
713 .IF "$(DEF3EXPORT18)"!=""
714 @echo $(DEF3EXPORT18) >>$@.tmpfile
715 .ENDIF
716 .IF "$(DEF3EXPORT19)"!=""
717 @echo $(DEF3EXPORT19) >>$@.tmpfile
718 .ENDIF
719 .IF "$(DEF3EXPORT20)"!=""
720 @echo $(DEF3EXPORT20) >>$@.tmpfile
721 .ENDIF
722 .IF "$(DEF3EXPORTFILE)"!=""
723 .IF "$(COM)"=="GCC"
724 $(TYPE) $(DEF3EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
725 .ELSE
726 $(TYPE) $(DEF3EXPORTFILE) >> $@.tmpfile
727 .ENDIF
728 .ENDIF
729 @-$(RM) $@
730 @$(RENAME) $@.tmpfile $@
731 .ENDIF # "$(GUI)"=="WNT"
733 .IF "$(GUI)"=="OS2"
735 #21/02/2006 YD dll names must be 8.3, invoke fix script
736 #check osl/os2/module.c/osl_loadModule()
737 SHL3TARGET8=$(shell @fix_shl $(SHL3TARGETN:f))
739 DEF3FILTER=$(SOLARENV)/inc/dummy.flt
740 DEF3NAMELIST=$(foreach,i,$(DEFLIB3NAME) $(SLB)/$(i).lib)
742 .IF "$(link_always)"==""
743 $(DEF3TARGETN) : \
744 $(DEF3DEPN) \
745 $(DEF3EXPORTFILE)
746 .ELSE # "$(link_always)"==""
747 $(DEF3TARGETN) .PHONY :
748 .ENDIF # "$(link_always)"==""
749 @+-$(RM) $@.tmpfile
750 @echo ------------------------------
751 @echo Making Module-Definitionfile : $@
752 @echo LIBRARY $(SHL3TARGET8) INITINSTANCE TERMINSTANCE >$@.tmpfile
753 @echo DATA MULTIPLE >>$@.tmpfile
754 @echo DESCRIPTION 'StarView 3.00 $(DEF3DES) $(UPD) $(UPDMINOR)' >>$@.tmpfile
755 @echo EXPORTS >>$@.tmpfile
756 .IF "$(VERSIONOBJ)"!=""
757 # getversioninfo fuer alle!!
758 @echo _GetVersionInfo >$@.tmp_ord
759 .ENDIF
761 .IF "$(DEFLIB3NAME)"!=""
762 @+echo $(SLB)/$(DEFLIB3NAME).lib
763 @+emxexpr $(DEF3NAMELIST) | fix_exp_file >> $@.tmp_ord
764 .ENDIF # "$(DEFLIB3NAME)"!=""
766 .IF "$(DEF3EXPORT1)"!=""
767 @echo $(DEF3EXPORT1) >>$@.tmpfile
768 .ENDIF
769 .IF "$(DEF3EXPORT2)"!=""
770 @echo $(DEF3EXPORT2) >>$@.tmpfile
771 .ENDIF
772 .IF "$(DEF3EXPORT3)"!=""
773 @echo $(DEF3EXPORT3) >>$@.tmpfile
774 .ENDIF
775 .IF "$(DEF3EXPORT4)"!=""
776 @echo $(DEF3EXPORT4) >>$@.tmpfile
777 .ENDIF
778 .IF "$(DEF3EXPORT5)"!=""
779 @echo $(DEF3EXPORT5) >>$@.tmpfile
780 .ENDIF
781 .IF "$(DEF3EXPORT6)"!=""
782 @echo $(DEF3EXPORT6) >>$@.tmpfile
783 .ENDIF
784 .IF "$(DEF3EXPORT7)"!=""
785 @echo $(DEF3EXPORT7) >>$@.tmpfile
786 .ENDIF
787 .IF "$(DEF3EXPORT8)"!=""
788 @echo $(DEF3EXPORT8) >>$@.tmpfile
789 .ENDIF
790 .IF "$(DEF3EXPORT9)"!=""
791 @echo $(DEF3EXPORT9) >>$@.tmpfile
792 .ENDIF
793 .IF "$(DEF3EXPORT10)"!=""
794 @echo $(DEF3EXPORT10) >>$@.tmpfile
795 .ENDIF
796 .IF "$(DEF3EXPORT11)"!=""
797 @echo $(DEF3EXPORT11) >>$@.tmpfile
798 .ENDIF
799 .IF "$(DEF3EXPORT12)"!=""
800 @echo $(DEF3EXPORT12) >>$@.tmpfile
801 .ENDIF
802 .IF "$(DEF3EXPORT13)"!=""
803 @echo $(DEF3EXPORT13) >>$@.tmpfile
804 .ENDIF
805 .IF "$(DEF3EXPORT14)"!=""
806 @echo $(DEF3EXPORT14) >>$@.tmpfile
807 .ENDIF
808 .IF "$(DEF3EXPORT15)"!=""
809 @echo $(DEF3EXPORT15) >>$@.tmpfile
810 .ENDIF
811 .IF "$(DEF3EXPORT16)"!=""
812 @echo $(DEF3EXPORT16) >>$@.tmpfile
813 .ENDIF
814 .IF "$(DEF3EXPORT17)"!=""
815 @echo $(DEF3EXPORT17) >>$@.tmpfile
816 .ENDIF
817 .IF "$(DEF3EXPORT18)"!=""
818 @echo $(DEF3EXPORT18) >>$@.tmpfile
819 .ENDIF
820 .IF "$(DEF3EXPORT19)"!=""
821 @echo $(DEF3EXPORT19) >>$@.tmpfile
822 .ENDIF
823 .IF "$(DEF3EXPORT20)"!=""
824 @echo $(DEF3EXPORT20) >>$@.tmpfile
825 .ENDIF
826 .IF "$(DEF3EXPORTFILE)"!=""
827 @fix_def_file < $(DEF3EXPORTFILE) >> $@.tmp_ord
828 .ENDIF
829 @sort < $@.tmp_ord | uniq > $@.exptmpfile
830 @fix_def_ord < $@.exptmpfile >> $@.tmpfile
831 @+-$(RM) $@
832 +$(RENAME) $@.tmpfile $@
833 @+-$(RM) $@.tmp_ord
834 @+-$(RM) $@.exptmpfile
835 +$(IMPLIB) $(IMPLIBFLAGS) $(SHL3IMPLIBN:s/.lib/.a/) $@
836 +emxomf -o $(SHL3IMPLIBN) $(SHL3IMPLIBN:s/.lib/.a/)
838 .ENDIF # "$(GUI)"=="OS2"
840 .IF "$(GUI)"=="UNX"
841 $(DEF3TARGETN): \
842 $(DEF3DEPN) \
843 $(DEF3EXPORTFILE)
844 @echo just a dummy for UNIX > $@
845 .ENDIF
846 .ENDIF # "$(DEF3TARGETN)"!=""
849 # Anweisungen fuer das Linken
850 # unroll begin
852 .IF "$(DEF4TARGETN)"!=""
854 #to make intuitiv naming work
855 .IF "$(DEF4LIBNAME)"!=""
856 DEFLIB4NAME*=$(DEF4LIBNAME)
857 .ENDIF # "$(DEF4LIBNAME)"!=""
859 .IF "$(DEFLIB4NAME)"!=""
860 DEF4DEPN+=$(foreach,i,$(DEFLIB4NAME) $(SLB)/$(i).lib)
861 .ENDIF
863 .IF "$(SHL4VERSIONMAP)"!=""
864 .IF "$(DEF4EXPORTFILE)"==""
865 .IF "$(GUI)"=="WNT"
866 DEF4EXPORTFILE=$(MISC)/$(SHL4VERSIONMAP:b)_$(SHL4TARGET).dxp
867 .IF "$(COM)"=="GCC"
868 $(DEF4EXPORTFILE) : $(SHL4OBJS) $(SHL4LIBS)
869 .ENDIF # .IF "$(COM)"=="GCC"
871 $(DEF4EXPORTFILE) : $(SHL4VERSIONMAP)
872 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
873 .IF "$(COM)"=="GCC"
874 -$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
875 -$(GREP) "\*\|?" $@ > $@.symbols-regexp
876 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
877 # Extract RTTI symbols from all the objects that will be used to build a shared library
878 nm -gP $(SHL4OBJS) \
879 `$(TYPE) /dev/null $(foreach,j,$(SHL4LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
880 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
881 # overwrite the map file generate into the local output tree with the generated
882 # exported symbols list
883 $(RENAME) $@.exported-symbols $@
884 .ENDIF # .IF "$(COM)"=="GCC"
886 .ENDIF # "$(GUI)"=="WNT"
888 .IF "$(GUI)"=="OS2"
889 DEF4EXPORTFILE=$(MISC)/$(SHL4VERSIONMAP:b)_$(SHL4TARGET).dxp
890 $(DEF4EXPORTFILE) : $(SHL4VERSIONMAP)
891 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
892 .ENDIF # "$(GUI)"=="OS2"
894 .ENDIF # "$(DEF4EXPORTFILE)"==""
895 .ENDIF # "$(SHL4VERSIONMAP)"!=""
897 .IF "$(GUI)"=="WNT"
899 DEF4FILTER=$(SOLARENV)/inc/dummy.flt
901 RMHACK4:=$(RM)
903 .IF "$(DEF4CEXP)"!=""
904 EXPORT_ALL_SWITCH=-A $(DEF4CEXP)
905 .ENDIF
907 .IF "$(link_always)"==""
908 $(DEF4TARGETN) : \
909 $(DEF4DEPN) \
910 $(DEF4EXPORTFILE)
911 .ELSE # "$(link_always)"==""
912 $(DEF4TARGETN) .PHONY :
913 .ENDIF # "$(link_always)"==""
914 @-$(RM) $@.tmpfile
915 @echo ------------------------------
916 @echo Making Module-Definitionfile : $@
917 @echo LIBRARY $(EMQ)"$(SHL4TARGETN:f)$(EMQ)" >$@.tmpfile
918 .IF "$(COM)"!="GCC"
919 @echo HEAPSIZE 0 >>$@.tmpfile
920 .ENDIF
921 @echo EXPORTS >>$@.tmpfile
922 .IF "$(VERSIONOBJ)"!=""
923 # getversioninfo fuer alle!!
924 @echo GetVersionInfo >>$@.tmpfile
925 .ENDIF
926 .IF "$(DEFLIB4NAME)"!=""
927 .IF "$(COM)"=="GCC"
928 @-$(RM) $(MISC)/$(SHL4TARGET).exp
929 dlltool --output-def $(MISC)/$(SHL4TARGET).exp --export-all-symbols \
930 `$(TYPE) $(foreach,i,$(DEFLIB4NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
931 tail --lines +3 $(MISC)/$(SHL4TARGET).exp | sed '/^;/d' >>$@.tmpfile
932 @-$(RM) $(MISC)/$(SHL4TARGET).exp
933 .ELSE
934 .IF "$(SHL4USE_EXPORTS)"==""
935 @-$(RMHACK4) $(MISC)/$(SHL4TARGET).exp
936 @$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL4TARGET).exp $(SLB)/$(DEFLIB4NAME).lib
937 @$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL4TARGET).flt $(MISC)/$(SHL4TARGET).exp >>$@.tmpfile
938 $(RMHACK4) $(MISC)/$(SHL4TARGET).exp
939 .ELSE # "$(SHL4USE_EXPORTS)"==""
940 @$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB4NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL4TARGET).direct
941 @$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF4FILTER) $(MISC)/$(SHL4TARGET).direct >>$@.tmpfile
942 .ENDIF # "$(SHL4USE_EXPORTS)"==""
943 .ENDIF
944 .ENDIF # "$(DEFLIB4NAME)"!=""
945 .IF "$(DEF4EXPORT1)"!=""
946 @echo $(DEF4EXPORT1) >>$@.tmpfile
947 .ENDIF
948 .IF "$(DEF4EXPORT2)"!=""
949 @echo $(DEF4EXPORT2) >>$@.tmpfile
950 .ENDIF
951 .IF "$(DEF4EXPORT3)"!=""
952 @echo $(DEF4EXPORT3) >>$@.tmpfile
953 .ENDIF
954 .IF "$(DEF4EXPORT4)"!=""
955 @echo $(DEF4EXPORT4) >>$@.tmpfile
956 .ENDIF
957 .IF "$(DEF4EXPORT5)"!=""
958 @echo $(DEF4EXPORT5) >>$@.tmpfile
959 .ENDIF
960 .IF "$(DEF4EXPORT6)"!=""
961 @echo $(DEF4EXPORT6) >>$@.tmpfile
962 .ENDIF
963 .IF "$(DEF4EXPORT7)"!=""
964 @echo $(DEF4EXPORT7) >>$@.tmpfile
965 .ENDIF
966 .IF "$(DEF4EXPORT8)"!=""
967 @echo $(DEF4EXPORT8) >>$@.tmpfile
968 .ENDIF
969 .IF "$(DEF4EXPORT9)"!=""
970 @echo $(DEF4EXPORT9) >>$@.tmpfile
971 .ENDIF
972 .IF "$(DEF4EXPORT10)"!=""
973 @echo $(DEF4EXPORT10) >>$@.tmpfile
974 .ENDIF
975 .IF "$(DEF4EXPORT11)"!=""
976 @echo $(DEF4EXPORT11) >>$@.tmpfile
977 .ENDIF
978 .IF "$(DEF4EXPORT12)"!=""
979 @echo $(DEF4EXPORT12) >>$@.tmpfile
980 .ENDIF
981 .IF "$(DEF4EXPORT13)"!=""
982 @echo $(DEF4EXPORT13) >>$@.tmpfile
983 .ENDIF
984 .IF "$(DEF4EXPORT14)"!=""
985 @echo $(DEF4EXPORT14) >>$@.tmpfile
986 .ENDIF
987 .IF "$(DEF4EXPORT15)"!=""
988 @echo $(DEF4EXPORT15) >>$@.tmpfile
989 .ENDIF
990 .IF "$(DEF4EXPORT16)"!=""
991 @echo $(DEF4EXPORT16) >>$@.tmpfile
992 .ENDIF
993 .IF "$(DEF4EXPORT17)"!=""
994 @echo $(DEF4EXPORT17) >>$@.tmpfile
995 .ENDIF
996 .IF "$(DEF4EXPORT18)"!=""
997 @echo $(DEF4EXPORT18) >>$@.tmpfile
998 .ENDIF
999 .IF "$(DEF4EXPORT19)"!=""
1000 @echo $(DEF4EXPORT19) >>$@.tmpfile
1001 .ENDIF
1002 .IF "$(DEF4EXPORT20)"!=""
1003 @echo $(DEF4EXPORT20) >>$@.tmpfile
1004 .ENDIF
1005 .IF "$(DEF4EXPORTFILE)"!=""
1006 .IF "$(COM)"=="GCC"
1007 $(TYPE) $(DEF4EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
1008 .ELSE
1009 $(TYPE) $(DEF4EXPORTFILE) >> $@.tmpfile
1010 .ENDIF
1011 .ENDIF
1012 @-$(RM) $@
1013 @$(RENAME) $@.tmpfile $@
1014 .ENDIF # "$(GUI)"=="WNT"
1016 .IF "$(GUI)"=="OS2"
1018 #21/02/2006 YD dll names must be 8.3, invoke fix script
1019 #check osl/os2/module.c/osl_loadModule()
1020 SHL4TARGET8=$(shell @fix_shl $(SHL4TARGETN:f))
1022 DEF4FILTER=$(SOLARENV)/inc/dummy.flt
1023 DEF4NAMELIST=$(foreach,i,$(DEFLIB4NAME) $(SLB)/$(i).lib)
1025 .IF "$(link_always)"==""
1026 $(DEF4TARGETN) : \
1027 $(DEF4DEPN) \
1028 $(DEF4EXPORTFILE)
1029 .ELSE # "$(link_always)"==""
1030 $(DEF4TARGETN) .PHONY :
1031 .ENDIF # "$(link_always)"==""
1032 @+-$(RM) $@.tmpfile
1033 @echo ------------------------------
1034 @echo Making Module-Definitionfile : $@
1035 @echo LIBRARY $(SHL4TARGET8) INITINSTANCE TERMINSTANCE >$@.tmpfile
1036 @echo DATA MULTIPLE >>$@.tmpfile
1037 @echo DESCRIPTION 'StarView 3.00 $(DEF4DES) $(UPD) $(UPDMINOR)' >>$@.tmpfile
1038 @echo EXPORTS >>$@.tmpfile
1039 .IF "$(VERSIONOBJ)"!=""
1040 # getversioninfo fuer alle!!
1041 @echo _GetVersionInfo >$@.tmp_ord
1042 .ENDIF
1044 .IF "$(DEFLIB4NAME)"!=""
1045 @+echo $(SLB)/$(DEFLIB4NAME).lib
1046 @+emxexpr $(DEF4NAMELIST) | fix_exp_file >> $@.tmp_ord
1047 .ENDIF # "$(DEFLIB4NAME)"!=""
1049 .IF "$(DEF4EXPORT1)"!=""
1050 @echo $(DEF4EXPORT1) >>$@.tmpfile
1051 .ENDIF
1052 .IF "$(DEF4EXPORT2)"!=""
1053 @echo $(DEF4EXPORT2) >>$@.tmpfile
1054 .ENDIF
1055 .IF "$(DEF4EXPORT3)"!=""
1056 @echo $(DEF4EXPORT3) >>$@.tmpfile
1057 .ENDIF
1058 .IF "$(DEF4EXPORT4)"!=""
1059 @echo $(DEF4EXPORT4) >>$@.tmpfile
1060 .ENDIF
1061 .IF "$(DEF4EXPORT5)"!=""
1062 @echo $(DEF4EXPORT5) >>$@.tmpfile
1063 .ENDIF
1064 .IF "$(DEF4EXPORT6)"!=""
1065 @echo $(DEF4EXPORT6) >>$@.tmpfile
1066 .ENDIF
1067 .IF "$(DEF4EXPORT7)"!=""
1068 @echo $(DEF4EXPORT7) >>$@.tmpfile
1069 .ENDIF
1070 .IF "$(DEF4EXPORT8)"!=""
1071 @echo $(DEF4EXPORT8) >>$@.tmpfile
1072 .ENDIF
1073 .IF "$(DEF4EXPORT9)"!=""
1074 @echo $(DEF4EXPORT9) >>$@.tmpfile
1075 .ENDIF
1076 .IF "$(DEF4EXPORT10)"!=""
1077 @echo $(DEF4EXPORT10) >>$@.tmpfile
1078 .ENDIF
1079 .IF "$(DEF4EXPORT11)"!=""
1080 @echo $(DEF4EXPORT11) >>$@.tmpfile
1081 .ENDIF
1082 .IF "$(DEF4EXPORT12)"!=""
1083 @echo $(DEF4EXPORT12) >>$@.tmpfile
1084 .ENDIF
1085 .IF "$(DEF4EXPORT13)"!=""
1086 @echo $(DEF4EXPORT13) >>$@.tmpfile
1087 .ENDIF
1088 .IF "$(DEF4EXPORT14)"!=""
1089 @echo $(DEF4EXPORT14) >>$@.tmpfile
1090 .ENDIF
1091 .IF "$(DEF4EXPORT15)"!=""
1092 @echo $(DEF4EXPORT15) >>$@.tmpfile
1093 .ENDIF
1094 .IF "$(DEF4EXPORT16)"!=""
1095 @echo $(DEF4EXPORT16) >>$@.tmpfile
1096 .ENDIF
1097 .IF "$(DEF4EXPORT17)"!=""
1098 @echo $(DEF4EXPORT17) >>$@.tmpfile
1099 .ENDIF
1100 .IF "$(DEF4EXPORT18)"!=""
1101 @echo $(DEF4EXPORT18) >>$@.tmpfile
1102 .ENDIF
1103 .IF "$(DEF4EXPORT19)"!=""
1104 @echo $(DEF4EXPORT19) >>$@.tmpfile
1105 .ENDIF
1106 .IF "$(DEF4EXPORT20)"!=""
1107 @echo $(DEF4EXPORT20) >>$@.tmpfile
1108 .ENDIF
1109 .IF "$(DEF4EXPORTFILE)"!=""
1110 @fix_def_file < $(DEF4EXPORTFILE) >> $@.tmp_ord
1111 .ENDIF
1112 @sort < $@.tmp_ord | uniq > $@.exptmpfile
1113 @fix_def_ord < $@.exptmpfile >> $@.tmpfile
1114 @+-$(RM) $@
1115 +$(RENAME) $@.tmpfile $@
1116 @+-$(RM) $@.tmp_ord
1117 @+-$(RM) $@.exptmpfile
1118 +$(IMPLIB) $(IMPLIBFLAGS) $(SHL4IMPLIBN:s/.lib/.a/) $@
1119 +emxomf -o $(SHL4IMPLIBN) $(SHL4IMPLIBN:s/.lib/.a/)
1121 .ENDIF # "$(GUI)"=="OS2"
1123 .IF "$(GUI)"=="UNX"
1124 $(DEF4TARGETN): \
1125 $(DEF4DEPN) \
1126 $(DEF4EXPORTFILE)
1127 @echo just a dummy for UNIX > $@
1128 .ENDIF
1129 .ENDIF # "$(DEF4TARGETN)"!=""
1132 # Anweisungen fuer das Linken
1133 # unroll begin
1135 .IF "$(DEF5TARGETN)"!=""
1137 #to make intuitiv naming work
1138 .IF "$(DEF5LIBNAME)"!=""
1139 DEFLIB5NAME*=$(DEF5LIBNAME)
1140 .ENDIF # "$(DEF5LIBNAME)"!=""
1142 .IF "$(DEFLIB5NAME)"!=""
1143 DEF5DEPN+=$(foreach,i,$(DEFLIB5NAME) $(SLB)/$(i).lib)
1144 .ENDIF
1146 .IF "$(SHL5VERSIONMAP)"!=""
1147 .IF "$(DEF5EXPORTFILE)"==""
1148 .IF "$(GUI)"=="WNT"
1149 DEF5EXPORTFILE=$(MISC)/$(SHL5VERSIONMAP:b)_$(SHL5TARGET).dxp
1150 .IF "$(COM)"=="GCC"
1151 $(DEF5EXPORTFILE) : $(SHL5OBJS) $(SHL5LIBS)
1152 .ENDIF # .IF "$(COM)"=="GCC"
1154 $(DEF5EXPORTFILE) : $(SHL5VERSIONMAP)
1155 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
1156 .IF "$(COM)"=="GCC"
1157 -$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
1158 -$(GREP) "\*\|?" $@ > $@.symbols-regexp
1159 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
1160 # Extract RTTI symbols from all the objects that will be used to build a shared library
1161 nm -gP $(SHL5OBJS) \
1162 `$(TYPE) /dev/null $(foreach,j,$(SHL5LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
1163 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
1164 # overwrite the map file generate into the local output tree with the generated
1165 # exported symbols list
1166 $(RENAME) $@.exported-symbols $@
1167 .ENDIF # .IF "$(COM)"=="GCC"
1169 .ENDIF # "$(GUI)"=="WNT"
1171 .IF "$(GUI)"=="OS2"
1172 DEF5EXPORTFILE=$(MISC)/$(SHL5VERSIONMAP:b)_$(SHL5TARGET).dxp
1173 $(DEF5EXPORTFILE) : $(SHL5VERSIONMAP)
1174 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
1175 .ENDIF # "$(GUI)"=="OS2"
1177 .ENDIF # "$(DEF5EXPORTFILE)"==""
1178 .ENDIF # "$(SHL5VERSIONMAP)"!=""
1180 .IF "$(GUI)"=="WNT"
1182 DEF5FILTER=$(SOLARENV)/inc/dummy.flt
1184 RMHACK5:=$(RM)
1186 .IF "$(DEF5CEXP)"!=""
1187 EXPORT_ALL_SWITCH=-A $(DEF5CEXP)
1188 .ENDIF
1190 .IF "$(link_always)"==""
1191 $(DEF5TARGETN) : \
1192 $(DEF5DEPN) \
1193 $(DEF5EXPORTFILE)
1194 .ELSE # "$(link_always)"==""
1195 $(DEF5TARGETN) .PHONY :
1196 .ENDIF # "$(link_always)"==""
1197 @-$(RM) $@.tmpfile
1198 @echo ------------------------------
1199 @echo Making Module-Definitionfile : $@
1200 @echo LIBRARY $(EMQ)"$(SHL5TARGETN:f)$(EMQ)" >$@.tmpfile
1201 .IF "$(COM)"!="GCC"
1202 @echo HEAPSIZE 0 >>$@.tmpfile
1203 .ENDIF
1204 @echo EXPORTS >>$@.tmpfile
1205 .IF "$(VERSIONOBJ)"!=""
1206 # getversioninfo fuer alle!!
1207 @echo GetVersionInfo >>$@.tmpfile
1208 .ENDIF
1209 .IF "$(DEFLIB5NAME)"!=""
1210 .IF "$(COM)"=="GCC"
1211 @-$(RM) $(MISC)/$(SHL5TARGET).exp
1212 dlltool --output-def $(MISC)/$(SHL5TARGET).exp --export-all-symbols \
1213 `$(TYPE) $(foreach,i,$(DEFLIB5NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
1214 tail --lines +3 $(MISC)/$(SHL5TARGET).exp | sed '/^;/d' >>$@.tmpfile
1215 @-$(RM) $(MISC)/$(SHL5TARGET).exp
1216 .ELSE
1217 .IF "$(SHL5USE_EXPORTS)"==""
1218 @-$(RMHACK5) $(MISC)/$(SHL5TARGET).exp
1219 @$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL5TARGET).exp $(SLB)/$(DEFLIB5NAME).lib
1220 @$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL5TARGET).flt $(MISC)/$(SHL5TARGET).exp >>$@.tmpfile
1221 $(RMHACK5) $(MISC)/$(SHL5TARGET).exp
1222 .ELSE # "$(SHL5USE_EXPORTS)"==""
1223 @$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB5NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL5TARGET).direct
1224 @$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF5FILTER) $(MISC)/$(SHL5TARGET).direct >>$@.tmpfile
1225 .ENDIF # "$(SHL5USE_EXPORTS)"==""
1226 .ENDIF
1227 .ENDIF # "$(DEFLIB5NAME)"!=""
1228 .IF "$(DEF5EXPORT1)"!=""
1229 @echo $(DEF5EXPORT1) >>$@.tmpfile
1230 .ENDIF
1231 .IF "$(DEF5EXPORT2)"!=""
1232 @echo $(DEF5EXPORT2) >>$@.tmpfile
1233 .ENDIF
1234 .IF "$(DEF5EXPORT3)"!=""
1235 @echo $(DEF5EXPORT3) >>$@.tmpfile
1236 .ENDIF
1237 .IF "$(DEF5EXPORT4)"!=""
1238 @echo $(DEF5EXPORT4) >>$@.tmpfile
1239 .ENDIF
1240 .IF "$(DEF5EXPORT5)"!=""
1241 @echo $(DEF5EXPORT5) >>$@.tmpfile
1242 .ENDIF
1243 .IF "$(DEF5EXPORT6)"!=""
1244 @echo $(DEF5EXPORT6) >>$@.tmpfile
1245 .ENDIF
1246 .IF "$(DEF5EXPORT7)"!=""
1247 @echo $(DEF5EXPORT7) >>$@.tmpfile
1248 .ENDIF
1249 .IF "$(DEF5EXPORT8)"!=""
1250 @echo $(DEF5EXPORT8) >>$@.tmpfile
1251 .ENDIF
1252 .IF "$(DEF5EXPORT9)"!=""
1253 @echo $(DEF5EXPORT9) >>$@.tmpfile
1254 .ENDIF
1255 .IF "$(DEF5EXPORT10)"!=""
1256 @echo $(DEF5EXPORT10) >>$@.tmpfile
1257 .ENDIF
1258 .IF "$(DEF5EXPORT11)"!=""
1259 @echo $(DEF5EXPORT11) >>$@.tmpfile
1260 .ENDIF
1261 .IF "$(DEF5EXPORT12)"!=""
1262 @echo $(DEF5EXPORT12) >>$@.tmpfile
1263 .ENDIF
1264 .IF "$(DEF5EXPORT13)"!=""
1265 @echo $(DEF5EXPORT13) >>$@.tmpfile
1266 .ENDIF
1267 .IF "$(DEF5EXPORT14)"!=""
1268 @echo $(DEF5EXPORT14) >>$@.tmpfile
1269 .ENDIF
1270 .IF "$(DEF5EXPORT15)"!=""
1271 @echo $(DEF5EXPORT15) >>$@.tmpfile
1272 .ENDIF
1273 .IF "$(DEF5EXPORT16)"!=""
1274 @echo $(DEF5EXPORT16) >>$@.tmpfile
1275 .ENDIF
1276 .IF "$(DEF5EXPORT17)"!=""
1277 @echo $(DEF5EXPORT17) >>$@.tmpfile
1278 .ENDIF
1279 .IF "$(DEF5EXPORT18)"!=""
1280 @echo $(DEF5EXPORT18) >>$@.tmpfile
1281 .ENDIF
1282 .IF "$(DEF5EXPORT19)"!=""
1283 @echo $(DEF5EXPORT19) >>$@.tmpfile
1284 .ENDIF
1285 .IF "$(DEF5EXPORT20)"!=""
1286 @echo $(DEF5EXPORT20) >>$@.tmpfile
1287 .ENDIF
1288 .IF "$(DEF5EXPORTFILE)"!=""
1289 .IF "$(COM)"=="GCC"
1290 $(TYPE) $(DEF5EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
1291 .ELSE
1292 $(TYPE) $(DEF5EXPORTFILE) >> $@.tmpfile
1293 .ENDIF
1294 .ENDIF
1295 @-$(RM) $@
1296 @$(RENAME) $@.tmpfile $@
1297 .ENDIF # "$(GUI)"=="WNT"
1299 .IF "$(GUI)"=="OS2"
1301 #21/02/2006 YD dll names must be 8.3, invoke fix script
1302 #check osl/os2/module.c/osl_loadModule()
1303 SHL5TARGET8=$(shell @fix_shl $(SHL5TARGETN:f))
1305 DEF5FILTER=$(SOLARENV)/inc/dummy.flt
1306 DEF5NAMELIST=$(foreach,i,$(DEFLIB5NAME) $(SLB)/$(i).lib)
1308 .IF "$(link_always)"==""
1309 $(DEF5TARGETN) : \
1310 $(DEF5DEPN) \
1311 $(DEF5EXPORTFILE)
1312 .ELSE # "$(link_always)"==""
1313 $(DEF5TARGETN) .PHONY :
1314 .ENDIF # "$(link_always)"==""
1315 @+-$(RM) $@.tmpfile
1316 @echo ------------------------------
1317 @echo Making Module-Definitionfile : $@
1318 @echo LIBRARY $(SHL5TARGET8) INITINSTANCE TERMINSTANCE >$@.tmpfile
1319 @echo DATA MULTIPLE >>$@.tmpfile
1320 @echo DESCRIPTION 'StarView 3.00 $(DEF5DES) $(UPD) $(UPDMINOR)' >>$@.tmpfile
1321 @echo EXPORTS >>$@.tmpfile
1322 .IF "$(VERSIONOBJ)"!=""
1323 # getversioninfo fuer alle!!
1324 @echo _GetVersionInfo >$@.tmp_ord
1325 .ENDIF
1327 .IF "$(DEFLIB5NAME)"!=""
1328 @+echo $(SLB)/$(DEFLIB5NAME).lib
1329 @+emxexpr $(DEF5NAMELIST) | fix_exp_file >> $@.tmp_ord
1330 .ENDIF # "$(DEFLIB5NAME)"!=""
1332 .IF "$(DEF5EXPORT1)"!=""
1333 @echo $(DEF5EXPORT1) >>$@.tmpfile
1334 .ENDIF
1335 .IF "$(DEF5EXPORT2)"!=""
1336 @echo $(DEF5EXPORT2) >>$@.tmpfile
1337 .ENDIF
1338 .IF "$(DEF5EXPORT3)"!=""
1339 @echo $(DEF5EXPORT3) >>$@.tmpfile
1340 .ENDIF
1341 .IF "$(DEF5EXPORT4)"!=""
1342 @echo $(DEF5EXPORT4) >>$@.tmpfile
1343 .ENDIF
1344 .IF "$(DEF5EXPORT5)"!=""
1345 @echo $(DEF5EXPORT5) >>$@.tmpfile
1346 .ENDIF
1347 .IF "$(DEF5EXPORT6)"!=""
1348 @echo $(DEF5EXPORT6) >>$@.tmpfile
1349 .ENDIF
1350 .IF "$(DEF5EXPORT7)"!=""
1351 @echo $(DEF5EXPORT7) >>$@.tmpfile
1352 .ENDIF
1353 .IF "$(DEF5EXPORT8)"!=""
1354 @echo $(DEF5EXPORT8) >>$@.tmpfile
1355 .ENDIF
1356 .IF "$(DEF5EXPORT9)"!=""
1357 @echo $(DEF5EXPORT9) >>$@.tmpfile
1358 .ENDIF
1359 .IF "$(DEF5EXPORT10)"!=""
1360 @echo $(DEF5EXPORT10) >>$@.tmpfile
1361 .ENDIF
1362 .IF "$(DEF5EXPORT11)"!=""
1363 @echo $(DEF5EXPORT11) >>$@.tmpfile
1364 .ENDIF
1365 .IF "$(DEF5EXPORT12)"!=""
1366 @echo $(DEF5EXPORT12) >>$@.tmpfile
1367 .ENDIF
1368 .IF "$(DEF5EXPORT13)"!=""
1369 @echo $(DEF5EXPORT13) >>$@.tmpfile
1370 .ENDIF
1371 .IF "$(DEF5EXPORT14)"!=""
1372 @echo $(DEF5EXPORT14) >>$@.tmpfile
1373 .ENDIF
1374 .IF "$(DEF5EXPORT15)"!=""
1375 @echo $(DEF5EXPORT15) >>$@.tmpfile
1376 .ENDIF
1377 .IF "$(DEF5EXPORT16)"!=""
1378 @echo $(DEF5EXPORT16) >>$@.tmpfile
1379 .ENDIF
1380 .IF "$(DEF5EXPORT17)"!=""
1381 @echo $(DEF5EXPORT17) >>$@.tmpfile
1382 .ENDIF
1383 .IF "$(DEF5EXPORT18)"!=""
1384 @echo $(DEF5EXPORT18) >>$@.tmpfile
1385 .ENDIF
1386 .IF "$(DEF5EXPORT19)"!=""
1387 @echo $(DEF5EXPORT19) >>$@.tmpfile
1388 .ENDIF
1389 .IF "$(DEF5EXPORT20)"!=""
1390 @echo $(DEF5EXPORT20) >>$@.tmpfile
1391 .ENDIF
1392 .IF "$(DEF5EXPORTFILE)"!=""
1393 @fix_def_file < $(DEF5EXPORTFILE) >> $@.tmp_ord
1394 .ENDIF
1395 @sort < $@.tmp_ord | uniq > $@.exptmpfile
1396 @fix_def_ord < $@.exptmpfile >> $@.tmpfile
1397 @+-$(RM) $@
1398 +$(RENAME) $@.tmpfile $@
1399 @+-$(RM) $@.tmp_ord
1400 @+-$(RM) $@.exptmpfile
1401 +$(IMPLIB) $(IMPLIBFLAGS) $(SHL5IMPLIBN:s/.lib/.a/) $@
1402 +emxomf -o $(SHL5IMPLIBN) $(SHL5IMPLIBN:s/.lib/.a/)
1404 .ENDIF # "$(GUI)"=="OS2"
1406 .IF "$(GUI)"=="UNX"
1407 $(DEF5TARGETN): \
1408 $(DEF5DEPN) \
1409 $(DEF5EXPORTFILE)
1410 @echo just a dummy for UNIX > $@
1411 .ENDIF
1412 .ENDIF # "$(DEF5TARGETN)"!=""
1415 # Anweisungen fuer das Linken
1416 # unroll begin
1418 .IF "$(DEF6TARGETN)"!=""
1420 #to make intuitiv naming work
1421 .IF "$(DEF6LIBNAME)"!=""
1422 DEFLIB6NAME*=$(DEF6LIBNAME)
1423 .ENDIF # "$(DEF6LIBNAME)"!=""
1425 .IF "$(DEFLIB6NAME)"!=""
1426 DEF6DEPN+=$(foreach,i,$(DEFLIB6NAME) $(SLB)/$(i).lib)
1427 .ENDIF
1429 .IF "$(SHL6VERSIONMAP)"!=""
1430 .IF "$(DEF6EXPORTFILE)"==""
1431 .IF "$(GUI)"=="WNT"
1432 DEF6EXPORTFILE=$(MISC)/$(SHL6VERSIONMAP:b)_$(SHL6TARGET).dxp
1433 .IF "$(COM)"=="GCC"
1434 $(DEF6EXPORTFILE) : $(SHL6OBJS) $(SHL6LIBS)
1435 .ENDIF # .IF "$(COM)"=="GCC"
1437 $(DEF6EXPORTFILE) : $(SHL6VERSIONMAP)
1438 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
1439 .IF "$(COM)"=="GCC"
1440 -$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
1441 -$(GREP) "\*\|?" $@ > $@.symbols-regexp
1442 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
1443 # Extract RTTI symbols from all the objects that will be used to build a shared library
1444 nm -gP $(SHL6OBJS) \
1445 `$(TYPE) /dev/null $(foreach,j,$(SHL6LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
1446 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
1447 # overwrite the map file generate into the local output tree with the generated
1448 # exported symbols list
1449 $(RENAME) $@.exported-symbols $@
1450 .ENDIF # .IF "$(COM)"=="GCC"
1452 .ENDIF # "$(GUI)"=="WNT"
1454 .IF "$(GUI)"=="OS2"
1455 DEF6EXPORTFILE=$(MISC)/$(SHL6VERSIONMAP:b)_$(SHL6TARGET).dxp
1456 $(DEF6EXPORTFILE) : $(SHL6VERSIONMAP)
1457 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
1458 .ENDIF # "$(GUI)"=="OS2"
1460 .ENDIF # "$(DEF6EXPORTFILE)"==""
1461 .ENDIF # "$(SHL6VERSIONMAP)"!=""
1463 .IF "$(GUI)"=="WNT"
1465 DEF6FILTER=$(SOLARENV)/inc/dummy.flt
1467 RMHACK6:=$(RM)
1469 .IF "$(DEF6CEXP)"!=""
1470 EXPORT_ALL_SWITCH=-A $(DEF6CEXP)
1471 .ENDIF
1473 .IF "$(link_always)"==""
1474 $(DEF6TARGETN) : \
1475 $(DEF6DEPN) \
1476 $(DEF6EXPORTFILE)
1477 .ELSE # "$(link_always)"==""
1478 $(DEF6TARGETN) .PHONY :
1479 .ENDIF # "$(link_always)"==""
1480 @-$(RM) $@.tmpfile
1481 @echo ------------------------------
1482 @echo Making Module-Definitionfile : $@
1483 @echo LIBRARY $(EMQ)"$(SHL6TARGETN:f)$(EMQ)" >$@.tmpfile
1484 .IF "$(COM)"!="GCC"
1485 @echo HEAPSIZE 0 >>$@.tmpfile
1486 .ENDIF
1487 @echo EXPORTS >>$@.tmpfile
1488 .IF "$(VERSIONOBJ)"!=""
1489 # getversioninfo fuer alle!!
1490 @echo GetVersionInfo >>$@.tmpfile
1491 .ENDIF
1492 .IF "$(DEFLIB6NAME)"!=""
1493 .IF "$(COM)"=="GCC"
1494 @-$(RM) $(MISC)/$(SHL6TARGET).exp
1495 dlltool --output-def $(MISC)/$(SHL6TARGET).exp --export-all-symbols \
1496 `$(TYPE) $(foreach,i,$(DEFLIB6NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
1497 tail --lines +3 $(MISC)/$(SHL6TARGET).exp | sed '/^;/d' >>$@.tmpfile
1498 @-$(RM) $(MISC)/$(SHL6TARGET).exp
1499 .ELSE
1500 .IF "$(SHL6USE_EXPORTS)"==""
1501 @-$(RMHACK6) $(MISC)/$(SHL6TARGET).exp
1502 @$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL6TARGET).exp $(SLB)/$(DEFLIB6NAME).lib
1503 @$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL6TARGET).flt $(MISC)/$(SHL6TARGET).exp >>$@.tmpfile
1504 $(RMHACK6) $(MISC)/$(SHL6TARGET).exp
1505 .ELSE # "$(SHL6USE_EXPORTS)"==""
1506 @$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB6NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL6TARGET).direct
1507 @$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF6FILTER) $(MISC)/$(SHL6TARGET).direct >>$@.tmpfile
1508 .ENDIF # "$(SHL6USE_EXPORTS)"==""
1509 .ENDIF
1510 .ENDIF # "$(DEFLIB6NAME)"!=""
1511 .IF "$(DEF6EXPORT1)"!=""
1512 @echo $(DEF6EXPORT1) >>$@.tmpfile
1513 .ENDIF
1514 .IF "$(DEF6EXPORT2)"!=""
1515 @echo $(DEF6EXPORT2) >>$@.tmpfile
1516 .ENDIF
1517 .IF "$(DEF6EXPORT3)"!=""
1518 @echo $(DEF6EXPORT3) >>$@.tmpfile
1519 .ENDIF
1520 .IF "$(DEF6EXPORT4)"!=""
1521 @echo $(DEF6EXPORT4) >>$@.tmpfile
1522 .ENDIF
1523 .IF "$(DEF6EXPORT5)"!=""
1524 @echo $(DEF6EXPORT5) >>$@.tmpfile
1525 .ENDIF
1526 .IF "$(DEF6EXPORT6)"!=""
1527 @echo $(DEF6EXPORT6) >>$@.tmpfile
1528 .ENDIF
1529 .IF "$(DEF6EXPORT7)"!=""
1530 @echo $(DEF6EXPORT7) >>$@.tmpfile
1531 .ENDIF
1532 .IF "$(DEF6EXPORT8)"!=""
1533 @echo $(DEF6EXPORT8) >>$@.tmpfile
1534 .ENDIF
1535 .IF "$(DEF6EXPORT9)"!=""
1536 @echo $(DEF6EXPORT9) >>$@.tmpfile
1537 .ENDIF
1538 .IF "$(DEF6EXPORT10)"!=""
1539 @echo $(DEF6EXPORT10) >>$@.tmpfile
1540 .ENDIF
1541 .IF "$(DEF6EXPORT11)"!=""
1542 @echo $(DEF6EXPORT11) >>$@.tmpfile
1543 .ENDIF
1544 .IF "$(DEF6EXPORT12)"!=""
1545 @echo $(DEF6EXPORT12) >>$@.tmpfile
1546 .ENDIF
1547 .IF "$(DEF6EXPORT13)"!=""
1548 @echo $(DEF6EXPORT13) >>$@.tmpfile
1549 .ENDIF
1550 .IF "$(DEF6EXPORT14)"!=""
1551 @echo $(DEF6EXPORT14) >>$@.tmpfile
1552 .ENDIF
1553 .IF "$(DEF6EXPORT15)"!=""
1554 @echo $(DEF6EXPORT15) >>$@.tmpfile
1555 .ENDIF
1556 .IF "$(DEF6EXPORT16)"!=""
1557 @echo $(DEF6EXPORT16) >>$@.tmpfile
1558 .ENDIF
1559 .IF "$(DEF6EXPORT17)"!=""
1560 @echo $(DEF6EXPORT17) >>$@.tmpfile
1561 .ENDIF
1562 .IF "$(DEF6EXPORT18)"!=""
1563 @echo $(DEF6EXPORT18) >>$@.tmpfile
1564 .ENDIF
1565 .IF "$(DEF6EXPORT19)"!=""
1566 @echo $(DEF6EXPORT19) >>$@.tmpfile
1567 .ENDIF
1568 .IF "$(DEF6EXPORT20)"!=""
1569 @echo $(DEF6EXPORT20) >>$@.tmpfile
1570 .ENDIF
1571 .IF "$(DEF6EXPORTFILE)"!=""
1572 .IF "$(COM)"=="GCC"
1573 $(TYPE) $(DEF6EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
1574 .ELSE
1575 $(TYPE) $(DEF6EXPORTFILE) >> $@.tmpfile
1576 .ENDIF
1577 .ENDIF
1578 @-$(RM) $@
1579 @$(RENAME) $@.tmpfile $@
1580 .ENDIF # "$(GUI)"=="WNT"
1582 .IF "$(GUI)"=="OS2"
1584 #21/02/2006 YD dll names must be 8.3, invoke fix script
1585 #check osl/os2/module.c/osl_loadModule()
1586 SHL6TARGET8=$(shell @fix_shl $(SHL6TARGETN:f))
1588 DEF6FILTER=$(SOLARENV)/inc/dummy.flt
1589 DEF6NAMELIST=$(foreach,i,$(DEFLIB6NAME) $(SLB)/$(i).lib)
1591 .IF "$(link_always)"==""
1592 $(DEF6TARGETN) : \
1593 $(DEF6DEPN) \
1594 $(DEF6EXPORTFILE)
1595 .ELSE # "$(link_always)"==""
1596 $(DEF6TARGETN) .PHONY :
1597 .ENDIF # "$(link_always)"==""
1598 @+-$(RM) $@.tmpfile
1599 @echo ------------------------------
1600 @echo Making Module-Definitionfile : $@
1601 @echo LIBRARY $(SHL6TARGET8) INITINSTANCE TERMINSTANCE >$@.tmpfile
1602 @echo DATA MULTIPLE >>$@.tmpfile
1603 @echo DESCRIPTION 'StarView 3.00 $(DEF6DES) $(UPD) $(UPDMINOR)' >>$@.tmpfile
1604 @echo EXPORTS >>$@.tmpfile
1605 .IF "$(VERSIONOBJ)"!=""
1606 # getversioninfo fuer alle!!
1607 @echo _GetVersionInfo >$@.tmp_ord
1608 .ENDIF
1610 .IF "$(DEFLIB6NAME)"!=""
1611 @+echo $(SLB)/$(DEFLIB6NAME).lib
1612 @+emxexpr $(DEF6NAMELIST) | fix_exp_file >> $@.tmp_ord
1613 .ENDIF # "$(DEFLIB6NAME)"!=""
1615 .IF "$(DEF6EXPORT1)"!=""
1616 @echo $(DEF6EXPORT1) >>$@.tmpfile
1617 .ENDIF
1618 .IF "$(DEF6EXPORT2)"!=""
1619 @echo $(DEF6EXPORT2) >>$@.tmpfile
1620 .ENDIF
1621 .IF "$(DEF6EXPORT3)"!=""
1622 @echo $(DEF6EXPORT3) >>$@.tmpfile
1623 .ENDIF
1624 .IF "$(DEF6EXPORT4)"!=""
1625 @echo $(DEF6EXPORT4) >>$@.tmpfile
1626 .ENDIF
1627 .IF "$(DEF6EXPORT5)"!=""
1628 @echo $(DEF6EXPORT5) >>$@.tmpfile
1629 .ENDIF
1630 .IF "$(DEF6EXPORT6)"!=""
1631 @echo $(DEF6EXPORT6) >>$@.tmpfile
1632 .ENDIF
1633 .IF "$(DEF6EXPORT7)"!=""
1634 @echo $(DEF6EXPORT7) >>$@.tmpfile
1635 .ENDIF
1636 .IF "$(DEF6EXPORT8)"!=""
1637 @echo $(DEF6EXPORT8) >>$@.tmpfile
1638 .ENDIF
1639 .IF "$(DEF6EXPORT9)"!=""
1640 @echo $(DEF6EXPORT9) >>$@.tmpfile
1641 .ENDIF
1642 .IF "$(DEF6EXPORT10)"!=""
1643 @echo $(DEF6EXPORT10) >>$@.tmpfile
1644 .ENDIF
1645 .IF "$(DEF6EXPORT11)"!=""
1646 @echo $(DEF6EXPORT11) >>$@.tmpfile
1647 .ENDIF
1648 .IF "$(DEF6EXPORT12)"!=""
1649 @echo $(DEF6EXPORT12) >>$@.tmpfile
1650 .ENDIF
1651 .IF "$(DEF6EXPORT13)"!=""
1652 @echo $(DEF6EXPORT13) >>$@.tmpfile
1653 .ENDIF
1654 .IF "$(DEF6EXPORT14)"!=""
1655 @echo $(DEF6EXPORT14) >>$@.tmpfile
1656 .ENDIF
1657 .IF "$(DEF6EXPORT15)"!=""
1658 @echo $(DEF6EXPORT15) >>$@.tmpfile
1659 .ENDIF
1660 .IF "$(DEF6EXPORT16)"!=""
1661 @echo $(DEF6EXPORT16) >>$@.tmpfile
1662 .ENDIF
1663 .IF "$(DEF6EXPORT17)"!=""
1664 @echo $(DEF6EXPORT17) >>$@.tmpfile
1665 .ENDIF
1666 .IF "$(DEF6EXPORT18)"!=""
1667 @echo $(DEF6EXPORT18) >>$@.tmpfile
1668 .ENDIF
1669 .IF "$(DEF6EXPORT19)"!=""
1670 @echo $(DEF6EXPORT19) >>$@.tmpfile
1671 .ENDIF
1672 .IF "$(DEF6EXPORT20)"!=""
1673 @echo $(DEF6EXPORT20) >>$@.tmpfile
1674 .ENDIF
1675 .IF "$(DEF6EXPORTFILE)"!=""
1676 @fix_def_file < $(DEF6EXPORTFILE) >> $@.tmp_ord
1677 .ENDIF
1678 @sort < $@.tmp_ord | uniq > $@.exptmpfile
1679 @fix_def_ord < $@.exptmpfile >> $@.tmpfile
1680 @+-$(RM) $@
1681 +$(RENAME) $@.tmpfile $@
1682 @+-$(RM) $@.tmp_ord
1683 @+-$(RM) $@.exptmpfile
1684 +$(IMPLIB) $(IMPLIBFLAGS) $(SHL6IMPLIBN:s/.lib/.a/) $@
1685 +emxomf -o $(SHL6IMPLIBN) $(SHL6IMPLIBN:s/.lib/.a/)
1687 .ENDIF # "$(GUI)"=="OS2"
1689 .IF "$(GUI)"=="UNX"
1690 $(DEF6TARGETN): \
1691 $(DEF6DEPN) \
1692 $(DEF6EXPORTFILE)
1693 @echo just a dummy for UNIX > $@
1694 .ENDIF
1695 .ENDIF # "$(DEF6TARGETN)"!=""
1698 # Anweisungen fuer das Linken
1699 # unroll begin
1701 .IF "$(DEF7TARGETN)"!=""
1703 #to make intuitiv naming work
1704 .IF "$(DEF7LIBNAME)"!=""
1705 DEFLIB7NAME*=$(DEF7LIBNAME)
1706 .ENDIF # "$(DEF7LIBNAME)"!=""
1708 .IF "$(DEFLIB7NAME)"!=""
1709 DEF7DEPN+=$(foreach,i,$(DEFLIB7NAME) $(SLB)/$(i).lib)
1710 .ENDIF
1712 .IF "$(SHL7VERSIONMAP)"!=""
1713 .IF "$(DEF7EXPORTFILE)"==""
1714 .IF "$(GUI)"=="WNT"
1715 DEF7EXPORTFILE=$(MISC)/$(SHL7VERSIONMAP:b)_$(SHL7TARGET).dxp
1716 .IF "$(COM)"=="GCC"
1717 $(DEF7EXPORTFILE) : $(SHL7OBJS) $(SHL7LIBS)
1718 .ENDIF # .IF "$(COM)"=="GCC"
1720 $(DEF7EXPORTFILE) : $(SHL7VERSIONMAP)
1721 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
1722 .IF "$(COM)"=="GCC"
1723 -$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
1724 -$(GREP) "\*\|?" $@ > $@.symbols-regexp
1725 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
1726 # Extract RTTI symbols from all the objects that will be used to build a shared library
1727 nm -gP $(SHL7OBJS) \
1728 `$(TYPE) /dev/null $(foreach,j,$(SHL7LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
1729 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
1730 # overwrite the map file generate into the local output tree with the generated
1731 # exported symbols list
1732 $(RENAME) $@.exported-symbols $@
1733 .ENDIF # .IF "$(COM)"=="GCC"
1735 .ENDIF # "$(GUI)"=="WNT"
1737 .IF "$(GUI)"=="OS2"
1738 DEF7EXPORTFILE=$(MISC)/$(SHL7VERSIONMAP:b)_$(SHL7TARGET).dxp
1739 $(DEF7EXPORTFILE) : $(SHL7VERSIONMAP)
1740 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
1741 .ENDIF # "$(GUI)"=="OS2"
1743 .ENDIF # "$(DEF7EXPORTFILE)"==""
1744 .ENDIF # "$(SHL7VERSIONMAP)"!=""
1746 .IF "$(GUI)"=="WNT"
1748 DEF7FILTER=$(SOLARENV)/inc/dummy.flt
1750 RMHACK7:=$(RM)
1752 .IF "$(DEF7CEXP)"!=""
1753 EXPORT_ALL_SWITCH=-A $(DEF7CEXP)
1754 .ENDIF
1756 .IF "$(link_always)"==""
1757 $(DEF7TARGETN) : \
1758 $(DEF7DEPN) \
1759 $(DEF7EXPORTFILE)
1760 .ELSE # "$(link_always)"==""
1761 $(DEF7TARGETN) .PHONY :
1762 .ENDIF # "$(link_always)"==""
1763 @-$(RM) $@.tmpfile
1764 @echo ------------------------------
1765 @echo Making Module-Definitionfile : $@
1766 @echo LIBRARY $(EMQ)"$(SHL7TARGETN:f)$(EMQ)" >$@.tmpfile
1767 .IF "$(COM)"!="GCC"
1768 @echo HEAPSIZE 0 >>$@.tmpfile
1769 .ENDIF
1770 @echo EXPORTS >>$@.tmpfile
1771 .IF "$(VERSIONOBJ)"!=""
1772 # getversioninfo fuer alle!!
1773 @echo GetVersionInfo >>$@.tmpfile
1774 .ENDIF
1775 .IF "$(DEFLIB7NAME)"!=""
1776 .IF "$(COM)"=="GCC"
1777 @-$(RM) $(MISC)/$(SHL7TARGET).exp
1778 dlltool --output-def $(MISC)/$(SHL7TARGET).exp --export-all-symbols \
1779 `$(TYPE) $(foreach,i,$(DEFLIB7NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
1780 tail --lines +3 $(MISC)/$(SHL7TARGET).exp | sed '/^;/d' >>$@.tmpfile
1781 @-$(RM) $(MISC)/$(SHL7TARGET).exp
1782 .ELSE
1783 .IF "$(SHL7USE_EXPORTS)"==""
1784 @-$(RMHACK7) $(MISC)/$(SHL7TARGET).exp
1785 @$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL7TARGET).exp $(SLB)/$(DEFLIB7NAME).lib
1786 @$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL7TARGET).flt $(MISC)/$(SHL7TARGET).exp >>$@.tmpfile
1787 $(RMHACK7) $(MISC)/$(SHL7TARGET).exp
1788 .ELSE # "$(SHL7USE_EXPORTS)"==""
1789 @$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB7NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL7TARGET).direct
1790 @$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF7FILTER) $(MISC)/$(SHL7TARGET).direct >>$@.tmpfile
1791 .ENDIF # "$(SHL7USE_EXPORTS)"==""
1792 .ENDIF
1793 .ENDIF # "$(DEFLIB7NAME)"!=""
1794 .IF "$(DEF7EXPORT1)"!=""
1795 @echo $(DEF7EXPORT1) >>$@.tmpfile
1796 .ENDIF
1797 .IF "$(DEF7EXPORT2)"!=""
1798 @echo $(DEF7EXPORT2) >>$@.tmpfile
1799 .ENDIF
1800 .IF "$(DEF7EXPORT3)"!=""
1801 @echo $(DEF7EXPORT3) >>$@.tmpfile
1802 .ENDIF
1803 .IF "$(DEF7EXPORT4)"!=""
1804 @echo $(DEF7EXPORT4) >>$@.tmpfile
1805 .ENDIF
1806 .IF "$(DEF7EXPORT5)"!=""
1807 @echo $(DEF7EXPORT5) >>$@.tmpfile
1808 .ENDIF
1809 .IF "$(DEF7EXPORT6)"!=""
1810 @echo $(DEF7EXPORT6) >>$@.tmpfile
1811 .ENDIF
1812 .IF "$(DEF7EXPORT7)"!=""
1813 @echo $(DEF7EXPORT7) >>$@.tmpfile
1814 .ENDIF
1815 .IF "$(DEF7EXPORT8)"!=""
1816 @echo $(DEF7EXPORT8) >>$@.tmpfile
1817 .ENDIF
1818 .IF "$(DEF7EXPORT9)"!=""
1819 @echo $(DEF7EXPORT9) >>$@.tmpfile
1820 .ENDIF
1821 .IF "$(DEF7EXPORT10)"!=""
1822 @echo $(DEF7EXPORT10) >>$@.tmpfile
1823 .ENDIF
1824 .IF "$(DEF7EXPORT11)"!=""
1825 @echo $(DEF7EXPORT11) >>$@.tmpfile
1826 .ENDIF
1827 .IF "$(DEF7EXPORT12)"!=""
1828 @echo $(DEF7EXPORT12) >>$@.tmpfile
1829 .ENDIF
1830 .IF "$(DEF7EXPORT13)"!=""
1831 @echo $(DEF7EXPORT13) >>$@.tmpfile
1832 .ENDIF
1833 .IF "$(DEF7EXPORT14)"!=""
1834 @echo $(DEF7EXPORT14) >>$@.tmpfile
1835 .ENDIF
1836 .IF "$(DEF7EXPORT15)"!=""
1837 @echo $(DEF7EXPORT15) >>$@.tmpfile
1838 .ENDIF
1839 .IF "$(DEF7EXPORT16)"!=""
1840 @echo $(DEF7EXPORT16) >>$@.tmpfile
1841 .ENDIF
1842 .IF "$(DEF7EXPORT17)"!=""
1843 @echo $(DEF7EXPORT17) >>$@.tmpfile
1844 .ENDIF
1845 .IF "$(DEF7EXPORT18)"!=""
1846 @echo $(DEF7EXPORT18) >>$@.tmpfile
1847 .ENDIF
1848 .IF "$(DEF7EXPORT19)"!=""
1849 @echo $(DEF7EXPORT19) >>$@.tmpfile
1850 .ENDIF
1851 .IF "$(DEF7EXPORT20)"!=""
1852 @echo $(DEF7EXPORT20) >>$@.tmpfile
1853 .ENDIF
1854 .IF "$(DEF7EXPORTFILE)"!=""
1855 .IF "$(COM)"=="GCC"
1856 $(TYPE) $(DEF7EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
1857 .ELSE
1858 $(TYPE) $(DEF7EXPORTFILE) >> $@.tmpfile
1859 .ENDIF
1860 .ENDIF
1861 @-$(RM) $@
1862 @$(RENAME) $@.tmpfile $@
1863 .ENDIF # "$(GUI)"=="WNT"
1865 .IF "$(GUI)"=="OS2"
1867 #21/02/2006 YD dll names must be 8.3, invoke fix script
1868 #check osl/os2/module.c/osl_loadModule()
1869 SHL7TARGET8=$(shell @fix_shl $(SHL7TARGETN:f))
1871 DEF7FILTER=$(SOLARENV)/inc/dummy.flt
1872 DEF7NAMELIST=$(foreach,i,$(DEFLIB7NAME) $(SLB)/$(i).lib)
1874 .IF "$(link_always)"==""
1875 $(DEF7TARGETN) : \
1876 $(DEF7DEPN) \
1877 $(DEF7EXPORTFILE)
1878 .ELSE # "$(link_always)"==""
1879 $(DEF7TARGETN) .PHONY :
1880 .ENDIF # "$(link_always)"==""
1881 @+-$(RM) $@.tmpfile
1882 @echo ------------------------------
1883 @echo Making Module-Definitionfile : $@
1884 @echo LIBRARY $(SHL7TARGET8) INITINSTANCE TERMINSTANCE >$@.tmpfile
1885 @echo DATA MULTIPLE >>$@.tmpfile
1886 @echo DESCRIPTION 'StarView 3.00 $(DEF7DES) $(UPD) $(UPDMINOR)' >>$@.tmpfile
1887 @echo EXPORTS >>$@.tmpfile
1888 .IF "$(VERSIONOBJ)"!=""
1889 # getversioninfo fuer alle!!
1890 @echo _GetVersionInfo >$@.tmp_ord
1891 .ENDIF
1893 .IF "$(DEFLIB7NAME)"!=""
1894 @+echo $(SLB)/$(DEFLIB7NAME).lib
1895 @+emxexpr $(DEF7NAMELIST) | fix_exp_file >> $@.tmp_ord
1896 .ENDIF # "$(DEFLIB7NAME)"!=""
1898 .IF "$(DEF7EXPORT1)"!=""
1899 @echo $(DEF7EXPORT1) >>$@.tmpfile
1900 .ENDIF
1901 .IF "$(DEF7EXPORT2)"!=""
1902 @echo $(DEF7EXPORT2) >>$@.tmpfile
1903 .ENDIF
1904 .IF "$(DEF7EXPORT3)"!=""
1905 @echo $(DEF7EXPORT3) >>$@.tmpfile
1906 .ENDIF
1907 .IF "$(DEF7EXPORT4)"!=""
1908 @echo $(DEF7EXPORT4) >>$@.tmpfile
1909 .ENDIF
1910 .IF "$(DEF7EXPORT5)"!=""
1911 @echo $(DEF7EXPORT5) >>$@.tmpfile
1912 .ENDIF
1913 .IF "$(DEF7EXPORT6)"!=""
1914 @echo $(DEF7EXPORT6) >>$@.tmpfile
1915 .ENDIF
1916 .IF "$(DEF7EXPORT7)"!=""
1917 @echo $(DEF7EXPORT7) >>$@.tmpfile
1918 .ENDIF
1919 .IF "$(DEF7EXPORT8)"!=""
1920 @echo $(DEF7EXPORT8) >>$@.tmpfile
1921 .ENDIF
1922 .IF "$(DEF7EXPORT9)"!=""
1923 @echo $(DEF7EXPORT9) >>$@.tmpfile
1924 .ENDIF
1925 .IF "$(DEF7EXPORT10)"!=""
1926 @echo $(DEF7EXPORT10) >>$@.tmpfile
1927 .ENDIF
1928 .IF "$(DEF7EXPORT11)"!=""
1929 @echo $(DEF7EXPORT11) >>$@.tmpfile
1930 .ENDIF
1931 .IF "$(DEF7EXPORT12)"!=""
1932 @echo $(DEF7EXPORT12) >>$@.tmpfile
1933 .ENDIF
1934 .IF "$(DEF7EXPORT13)"!=""
1935 @echo $(DEF7EXPORT13) >>$@.tmpfile
1936 .ENDIF
1937 .IF "$(DEF7EXPORT14)"!=""
1938 @echo $(DEF7EXPORT14) >>$@.tmpfile
1939 .ENDIF
1940 .IF "$(DEF7EXPORT15)"!=""
1941 @echo $(DEF7EXPORT15) >>$@.tmpfile
1942 .ENDIF
1943 .IF "$(DEF7EXPORT16)"!=""
1944 @echo $(DEF7EXPORT16) >>$@.tmpfile
1945 .ENDIF
1946 .IF "$(DEF7EXPORT17)"!=""
1947 @echo $(DEF7EXPORT17) >>$@.tmpfile
1948 .ENDIF
1949 .IF "$(DEF7EXPORT18)"!=""
1950 @echo $(DEF7EXPORT18) >>$@.tmpfile
1951 .ENDIF
1952 .IF "$(DEF7EXPORT19)"!=""
1953 @echo $(DEF7EXPORT19) >>$@.tmpfile
1954 .ENDIF
1955 .IF "$(DEF7EXPORT20)"!=""
1956 @echo $(DEF7EXPORT20) >>$@.tmpfile
1957 .ENDIF
1958 .IF "$(DEF7EXPORTFILE)"!=""
1959 @fix_def_file < $(DEF7EXPORTFILE) >> $@.tmp_ord
1960 .ENDIF
1961 @sort < $@.tmp_ord | uniq > $@.exptmpfile
1962 @fix_def_ord < $@.exptmpfile >> $@.tmpfile
1963 @+-$(RM) $@
1964 +$(RENAME) $@.tmpfile $@
1965 @+-$(RM) $@.tmp_ord
1966 @+-$(RM) $@.exptmpfile
1967 +$(IMPLIB) $(IMPLIBFLAGS) $(SHL7IMPLIBN:s/.lib/.a/) $@
1968 +emxomf -o $(SHL7IMPLIBN) $(SHL7IMPLIBN:s/.lib/.a/)
1970 .ENDIF # "$(GUI)"=="OS2"
1972 .IF "$(GUI)"=="UNX"
1973 $(DEF7TARGETN): \
1974 $(DEF7DEPN) \
1975 $(DEF7EXPORTFILE)
1976 @echo just a dummy for UNIX > $@
1977 .ENDIF
1978 .ENDIF # "$(DEF7TARGETN)"!=""
1981 # Anweisungen fuer das Linken
1982 # unroll begin
1984 .IF "$(DEF8TARGETN)"!=""
1986 #to make intuitiv naming work
1987 .IF "$(DEF8LIBNAME)"!=""
1988 DEFLIB8NAME*=$(DEF8LIBNAME)
1989 .ENDIF # "$(DEF8LIBNAME)"!=""
1991 .IF "$(DEFLIB8NAME)"!=""
1992 DEF8DEPN+=$(foreach,i,$(DEFLIB8NAME) $(SLB)/$(i).lib)
1993 .ENDIF
1995 .IF "$(SHL8VERSIONMAP)"!=""
1996 .IF "$(DEF8EXPORTFILE)"==""
1997 .IF "$(GUI)"=="WNT"
1998 DEF8EXPORTFILE=$(MISC)/$(SHL8VERSIONMAP:b)_$(SHL8TARGET).dxp
1999 .IF "$(COM)"=="GCC"
2000 $(DEF8EXPORTFILE) : $(SHL8OBJS) $(SHL8LIBS)
2001 .ENDIF # .IF "$(COM)"=="GCC"
2003 $(DEF8EXPORTFILE) : $(SHL8VERSIONMAP)
2004 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
2005 .IF "$(COM)"=="GCC"
2006 -$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
2007 -$(GREP) "\*\|?" $@ > $@.symbols-regexp
2008 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
2009 # Extract RTTI symbols from all the objects that will be used to build a shared library
2010 nm -gP $(SHL8OBJS) \
2011 `$(TYPE) /dev/null $(foreach,j,$(SHL8LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
2012 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
2013 # overwrite the map file generate into the local output tree with the generated
2014 # exported symbols list
2015 $(RENAME) $@.exported-symbols $@
2016 .ENDIF # .IF "$(COM)"=="GCC"
2018 .ENDIF # "$(GUI)"=="WNT"
2020 .IF "$(GUI)"=="OS2"
2021 DEF8EXPORTFILE=$(MISC)/$(SHL8VERSIONMAP:b)_$(SHL8TARGET).dxp
2022 $(DEF8EXPORTFILE) : $(SHL8VERSIONMAP)
2023 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
2024 .ENDIF # "$(GUI)"=="OS2"
2026 .ENDIF # "$(DEF8EXPORTFILE)"==""
2027 .ENDIF # "$(SHL8VERSIONMAP)"!=""
2029 .IF "$(GUI)"=="WNT"
2031 DEF8FILTER=$(SOLARENV)/inc/dummy.flt
2033 RMHACK8:=$(RM)
2035 .IF "$(DEF8CEXP)"!=""
2036 EXPORT_ALL_SWITCH=-A $(DEF8CEXP)
2037 .ENDIF
2039 .IF "$(link_always)"==""
2040 $(DEF8TARGETN) : \
2041 $(DEF8DEPN) \
2042 $(DEF8EXPORTFILE)
2043 .ELSE # "$(link_always)"==""
2044 $(DEF8TARGETN) .PHONY :
2045 .ENDIF # "$(link_always)"==""
2046 @-$(RM) $@.tmpfile
2047 @echo ------------------------------
2048 @echo Making Module-Definitionfile : $@
2049 @echo LIBRARY $(EMQ)"$(SHL8TARGETN:f)$(EMQ)" >$@.tmpfile
2050 .IF "$(COM)"!="GCC"
2051 @echo HEAPSIZE 0 >>$@.tmpfile
2052 .ENDIF
2053 @echo EXPORTS >>$@.tmpfile
2054 .IF "$(VERSIONOBJ)"!=""
2055 # getversioninfo fuer alle!!
2056 @echo GetVersionInfo >>$@.tmpfile
2057 .ENDIF
2058 .IF "$(DEFLIB8NAME)"!=""
2059 .IF "$(COM)"=="GCC"
2060 @-$(RM) $(MISC)/$(SHL8TARGET).exp
2061 dlltool --output-def $(MISC)/$(SHL8TARGET).exp --export-all-symbols \
2062 `$(TYPE) $(foreach,i,$(DEFLIB8NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
2063 tail --lines +3 $(MISC)/$(SHL8TARGET).exp | sed '/^;/d' >>$@.tmpfile
2064 @-$(RM) $(MISC)/$(SHL8TARGET).exp
2065 .ELSE
2066 .IF "$(SHL8USE_EXPORTS)"==""
2067 @-$(RMHACK8) $(MISC)/$(SHL8TARGET).exp
2068 @$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL8TARGET).exp $(SLB)/$(DEFLIB8NAME).lib
2069 @$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL8TARGET).flt $(MISC)/$(SHL8TARGET).exp >>$@.tmpfile
2070 $(RMHACK8) $(MISC)/$(SHL8TARGET).exp
2071 .ELSE # "$(SHL8USE_EXPORTS)"==""
2072 @$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB8NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL8TARGET).direct
2073 @$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF8FILTER) $(MISC)/$(SHL8TARGET).direct >>$@.tmpfile
2074 .ENDIF # "$(SHL8USE_EXPORTS)"==""
2075 .ENDIF
2076 .ENDIF # "$(DEFLIB8NAME)"!=""
2077 .IF "$(DEF8EXPORT1)"!=""
2078 @echo $(DEF8EXPORT1) >>$@.tmpfile
2079 .ENDIF
2080 .IF "$(DEF8EXPORT2)"!=""
2081 @echo $(DEF8EXPORT2) >>$@.tmpfile
2082 .ENDIF
2083 .IF "$(DEF8EXPORT3)"!=""
2084 @echo $(DEF8EXPORT3) >>$@.tmpfile
2085 .ENDIF
2086 .IF "$(DEF8EXPORT4)"!=""
2087 @echo $(DEF8EXPORT4) >>$@.tmpfile
2088 .ENDIF
2089 .IF "$(DEF8EXPORT5)"!=""
2090 @echo $(DEF8EXPORT5) >>$@.tmpfile
2091 .ENDIF
2092 .IF "$(DEF8EXPORT6)"!=""
2093 @echo $(DEF8EXPORT6) >>$@.tmpfile
2094 .ENDIF
2095 .IF "$(DEF8EXPORT7)"!=""
2096 @echo $(DEF8EXPORT7) >>$@.tmpfile
2097 .ENDIF
2098 .IF "$(DEF8EXPORT8)"!=""
2099 @echo $(DEF8EXPORT8) >>$@.tmpfile
2100 .ENDIF
2101 .IF "$(DEF8EXPORT9)"!=""
2102 @echo $(DEF8EXPORT9) >>$@.tmpfile
2103 .ENDIF
2104 .IF "$(DEF8EXPORT10)"!=""
2105 @echo $(DEF8EXPORT10) >>$@.tmpfile
2106 .ENDIF
2107 .IF "$(DEF8EXPORT11)"!=""
2108 @echo $(DEF8EXPORT11) >>$@.tmpfile
2109 .ENDIF
2110 .IF "$(DEF8EXPORT12)"!=""
2111 @echo $(DEF8EXPORT12) >>$@.tmpfile
2112 .ENDIF
2113 .IF "$(DEF8EXPORT13)"!=""
2114 @echo $(DEF8EXPORT13) >>$@.tmpfile
2115 .ENDIF
2116 .IF "$(DEF8EXPORT14)"!=""
2117 @echo $(DEF8EXPORT14) >>$@.tmpfile
2118 .ENDIF
2119 .IF "$(DEF8EXPORT15)"!=""
2120 @echo $(DEF8EXPORT15) >>$@.tmpfile
2121 .ENDIF
2122 .IF "$(DEF8EXPORT16)"!=""
2123 @echo $(DEF8EXPORT16) >>$@.tmpfile
2124 .ENDIF
2125 .IF "$(DEF8EXPORT17)"!=""
2126 @echo $(DEF8EXPORT17) >>$@.tmpfile
2127 .ENDIF
2128 .IF "$(DEF8EXPORT18)"!=""
2129 @echo $(DEF8EXPORT18) >>$@.tmpfile
2130 .ENDIF
2131 .IF "$(DEF8EXPORT19)"!=""
2132 @echo $(DEF8EXPORT19) >>$@.tmpfile
2133 .ENDIF
2134 .IF "$(DEF8EXPORT20)"!=""
2135 @echo $(DEF8EXPORT20) >>$@.tmpfile
2136 .ENDIF
2137 .IF "$(DEF8EXPORTFILE)"!=""
2138 .IF "$(COM)"=="GCC"
2139 $(TYPE) $(DEF8EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
2140 .ELSE
2141 $(TYPE) $(DEF8EXPORTFILE) >> $@.tmpfile
2142 .ENDIF
2143 .ENDIF
2144 @-$(RM) $@
2145 @$(RENAME) $@.tmpfile $@
2146 .ENDIF # "$(GUI)"=="WNT"
2148 .IF "$(GUI)"=="OS2"
2150 #21/02/2006 YD dll names must be 8.3, invoke fix script
2151 #check osl/os2/module.c/osl_loadModule()
2152 SHL8TARGET8=$(shell @fix_shl $(SHL8TARGETN:f))
2154 DEF8FILTER=$(SOLARENV)/inc/dummy.flt
2155 DEF8NAMELIST=$(foreach,i,$(DEFLIB8NAME) $(SLB)/$(i).lib)
2157 .IF "$(link_always)"==""
2158 $(DEF8TARGETN) : \
2159 $(DEF8DEPN) \
2160 $(DEF8EXPORTFILE)
2161 .ELSE # "$(link_always)"==""
2162 $(DEF8TARGETN) .PHONY :
2163 .ENDIF # "$(link_always)"==""
2164 @+-$(RM) $@.tmpfile
2165 @echo ------------------------------
2166 @echo Making Module-Definitionfile : $@
2167 @echo LIBRARY $(SHL8TARGET8) INITINSTANCE TERMINSTANCE >$@.tmpfile
2168 @echo DATA MULTIPLE >>$@.tmpfile
2169 @echo DESCRIPTION 'StarView 3.00 $(DEF8DES) $(UPD) $(UPDMINOR)' >>$@.tmpfile
2170 @echo EXPORTS >>$@.tmpfile
2171 .IF "$(VERSIONOBJ)"!=""
2172 # getversioninfo fuer alle!!
2173 @echo _GetVersionInfo >$@.tmp_ord
2174 .ENDIF
2176 .IF "$(DEFLIB8NAME)"!=""
2177 @+echo $(SLB)/$(DEFLIB8NAME).lib
2178 @+emxexpr $(DEF8NAMELIST) | fix_exp_file >> $@.tmp_ord
2179 .ENDIF # "$(DEFLIB8NAME)"!=""
2181 .IF "$(DEF8EXPORT1)"!=""
2182 @echo $(DEF8EXPORT1) >>$@.tmpfile
2183 .ENDIF
2184 .IF "$(DEF8EXPORT2)"!=""
2185 @echo $(DEF8EXPORT2) >>$@.tmpfile
2186 .ENDIF
2187 .IF "$(DEF8EXPORT3)"!=""
2188 @echo $(DEF8EXPORT3) >>$@.tmpfile
2189 .ENDIF
2190 .IF "$(DEF8EXPORT4)"!=""
2191 @echo $(DEF8EXPORT4) >>$@.tmpfile
2192 .ENDIF
2193 .IF "$(DEF8EXPORT5)"!=""
2194 @echo $(DEF8EXPORT5) >>$@.tmpfile
2195 .ENDIF
2196 .IF "$(DEF8EXPORT6)"!=""
2197 @echo $(DEF8EXPORT6) >>$@.tmpfile
2198 .ENDIF
2199 .IF "$(DEF8EXPORT7)"!=""
2200 @echo $(DEF8EXPORT7) >>$@.tmpfile
2201 .ENDIF
2202 .IF "$(DEF8EXPORT8)"!=""
2203 @echo $(DEF8EXPORT8) >>$@.tmpfile
2204 .ENDIF
2205 .IF "$(DEF8EXPORT9)"!=""
2206 @echo $(DEF8EXPORT9) >>$@.tmpfile
2207 .ENDIF
2208 .IF "$(DEF8EXPORT10)"!=""
2209 @echo $(DEF8EXPORT10) >>$@.tmpfile
2210 .ENDIF
2211 .IF "$(DEF8EXPORT11)"!=""
2212 @echo $(DEF8EXPORT11) >>$@.tmpfile
2213 .ENDIF
2214 .IF "$(DEF8EXPORT12)"!=""
2215 @echo $(DEF8EXPORT12) >>$@.tmpfile
2216 .ENDIF
2217 .IF "$(DEF8EXPORT13)"!=""
2218 @echo $(DEF8EXPORT13) >>$@.tmpfile
2219 .ENDIF
2220 .IF "$(DEF8EXPORT14)"!=""
2221 @echo $(DEF8EXPORT14) >>$@.tmpfile
2222 .ENDIF
2223 .IF "$(DEF8EXPORT15)"!=""
2224 @echo $(DEF8EXPORT15) >>$@.tmpfile
2225 .ENDIF
2226 .IF "$(DEF8EXPORT16)"!=""
2227 @echo $(DEF8EXPORT16) >>$@.tmpfile
2228 .ENDIF
2229 .IF "$(DEF8EXPORT17)"!=""
2230 @echo $(DEF8EXPORT17) >>$@.tmpfile
2231 .ENDIF
2232 .IF "$(DEF8EXPORT18)"!=""
2233 @echo $(DEF8EXPORT18) >>$@.tmpfile
2234 .ENDIF
2235 .IF "$(DEF8EXPORT19)"!=""
2236 @echo $(DEF8EXPORT19) >>$@.tmpfile
2237 .ENDIF
2238 .IF "$(DEF8EXPORT20)"!=""
2239 @echo $(DEF8EXPORT20) >>$@.tmpfile
2240 .ENDIF
2241 .IF "$(DEF8EXPORTFILE)"!=""
2242 @fix_def_file < $(DEF8EXPORTFILE) >> $@.tmp_ord
2243 .ENDIF
2244 @sort < $@.tmp_ord | uniq > $@.exptmpfile
2245 @fix_def_ord < $@.exptmpfile >> $@.tmpfile
2246 @+-$(RM) $@
2247 +$(RENAME) $@.tmpfile $@
2248 @+-$(RM) $@.tmp_ord
2249 @+-$(RM) $@.exptmpfile
2250 +$(IMPLIB) $(IMPLIBFLAGS) $(SHL8IMPLIBN:s/.lib/.a/) $@
2251 +emxomf -o $(SHL8IMPLIBN) $(SHL8IMPLIBN:s/.lib/.a/)
2253 .ENDIF # "$(GUI)"=="OS2"
2255 .IF "$(GUI)"=="UNX"
2256 $(DEF8TARGETN): \
2257 $(DEF8DEPN) \
2258 $(DEF8EXPORTFILE)
2259 @echo just a dummy for UNIX > $@
2260 .ENDIF
2261 .ENDIF # "$(DEF8TARGETN)"!=""
2264 # Anweisungen fuer das Linken
2265 # unroll begin
2267 .IF "$(DEF9TARGETN)"!=""
2269 #to make intuitiv naming work
2270 .IF "$(DEF9LIBNAME)"!=""
2271 DEFLIB9NAME*=$(DEF9LIBNAME)
2272 .ENDIF # "$(DEF9LIBNAME)"!=""
2274 .IF "$(DEFLIB9NAME)"!=""
2275 DEF9DEPN+=$(foreach,i,$(DEFLIB9NAME) $(SLB)/$(i).lib)
2276 .ENDIF
2278 .IF "$(SHL9VERSIONMAP)"!=""
2279 .IF "$(DEF9EXPORTFILE)"==""
2280 .IF "$(GUI)"=="WNT"
2281 DEF9EXPORTFILE=$(MISC)/$(SHL9VERSIONMAP:b)_$(SHL9TARGET).dxp
2282 .IF "$(COM)"=="GCC"
2283 $(DEF9EXPORTFILE) : $(SHL9OBJS) $(SHL9LIBS)
2284 .ENDIF # .IF "$(COM)"=="GCC"
2286 $(DEF9EXPORTFILE) : $(SHL9VERSIONMAP)
2287 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
2288 .IF "$(COM)"=="GCC"
2289 -$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
2290 -$(GREP) "\*\|?" $@ > $@.symbols-regexp
2291 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
2292 # Extract RTTI symbols from all the objects that will be used to build a shared library
2293 nm -gP $(SHL9OBJS) \
2294 `$(TYPE) /dev/null $(foreach,j,$(SHL9LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
2295 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
2296 # overwrite the map file generate into the local output tree with the generated
2297 # exported symbols list
2298 $(RENAME) $@.exported-symbols $@
2299 .ENDIF # .IF "$(COM)"=="GCC"
2301 .ENDIF # "$(GUI)"=="WNT"
2303 .IF "$(GUI)"=="OS2"
2304 DEF9EXPORTFILE=$(MISC)/$(SHL9VERSIONMAP:b)_$(SHL9TARGET).dxp
2305 $(DEF9EXPORTFILE) : $(SHL9VERSIONMAP)
2306 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
2307 .ENDIF # "$(GUI)"=="OS2"
2309 .ENDIF # "$(DEF9EXPORTFILE)"==""
2310 .ENDIF # "$(SHL9VERSIONMAP)"!=""
2312 .IF "$(GUI)"=="WNT"
2314 DEF9FILTER=$(SOLARENV)/inc/dummy.flt
2316 RMHACK9:=$(RM)
2318 .IF "$(DEF9CEXP)"!=""
2319 EXPORT_ALL_SWITCH=-A $(DEF9CEXP)
2320 .ENDIF
2322 .IF "$(link_always)"==""
2323 $(DEF9TARGETN) : \
2324 $(DEF9DEPN) \
2325 $(DEF9EXPORTFILE)
2326 .ELSE # "$(link_always)"==""
2327 $(DEF9TARGETN) .PHONY :
2328 .ENDIF # "$(link_always)"==""
2329 @-$(RM) $@.tmpfile
2330 @echo ------------------------------
2331 @echo Making Module-Definitionfile : $@
2332 @echo LIBRARY $(EMQ)"$(SHL9TARGETN:f)$(EMQ)" >$@.tmpfile
2333 .IF "$(COM)"!="GCC"
2334 @echo HEAPSIZE 0 >>$@.tmpfile
2335 .ENDIF
2336 @echo EXPORTS >>$@.tmpfile
2337 .IF "$(VERSIONOBJ)"!=""
2338 # getversioninfo fuer alle!!
2339 @echo GetVersionInfo >>$@.tmpfile
2340 .ENDIF
2341 .IF "$(DEFLIB9NAME)"!=""
2342 .IF "$(COM)"=="GCC"
2343 @-$(RM) $(MISC)/$(SHL9TARGET).exp
2344 dlltool --output-def $(MISC)/$(SHL9TARGET).exp --export-all-symbols \
2345 `$(TYPE) $(foreach,i,$(DEFLIB9NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
2346 tail --lines +3 $(MISC)/$(SHL9TARGET).exp | sed '/^;/d' >>$@.tmpfile
2347 @-$(RM) $(MISC)/$(SHL9TARGET).exp
2348 .ELSE
2349 .IF "$(SHL9USE_EXPORTS)"==""
2350 @-$(RMHACK9) $(MISC)/$(SHL9TARGET).exp
2351 @$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL9TARGET).exp $(SLB)/$(DEFLIB9NAME).lib
2352 @$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL9TARGET).flt $(MISC)/$(SHL9TARGET).exp >>$@.tmpfile
2353 $(RMHACK9) $(MISC)/$(SHL9TARGET).exp
2354 .ELSE # "$(SHL9USE_EXPORTS)"==""
2355 @$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB9NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL9TARGET).direct
2356 @$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF9FILTER) $(MISC)/$(SHL9TARGET).direct >>$@.tmpfile
2357 .ENDIF # "$(SHL9USE_EXPORTS)"==""
2358 .ENDIF
2359 .ENDIF # "$(DEFLIB9NAME)"!=""
2360 .IF "$(DEF9EXPORT1)"!=""
2361 @echo $(DEF9EXPORT1) >>$@.tmpfile
2362 .ENDIF
2363 .IF "$(DEF9EXPORT2)"!=""
2364 @echo $(DEF9EXPORT2) >>$@.tmpfile
2365 .ENDIF
2366 .IF "$(DEF9EXPORT3)"!=""
2367 @echo $(DEF9EXPORT3) >>$@.tmpfile
2368 .ENDIF
2369 .IF "$(DEF9EXPORT4)"!=""
2370 @echo $(DEF9EXPORT4) >>$@.tmpfile
2371 .ENDIF
2372 .IF "$(DEF9EXPORT5)"!=""
2373 @echo $(DEF9EXPORT5) >>$@.tmpfile
2374 .ENDIF
2375 .IF "$(DEF9EXPORT6)"!=""
2376 @echo $(DEF9EXPORT6) >>$@.tmpfile
2377 .ENDIF
2378 .IF "$(DEF9EXPORT7)"!=""
2379 @echo $(DEF9EXPORT7) >>$@.tmpfile
2380 .ENDIF
2381 .IF "$(DEF9EXPORT8)"!=""
2382 @echo $(DEF9EXPORT8) >>$@.tmpfile
2383 .ENDIF
2384 .IF "$(DEF9EXPORT9)"!=""
2385 @echo $(DEF9EXPORT9) >>$@.tmpfile
2386 .ENDIF
2387 .IF "$(DEF9EXPORT10)"!=""
2388 @echo $(DEF9EXPORT10) >>$@.tmpfile
2389 .ENDIF
2390 .IF "$(DEF9EXPORT11)"!=""
2391 @echo $(DEF9EXPORT11) >>$@.tmpfile
2392 .ENDIF
2393 .IF "$(DEF9EXPORT12)"!=""
2394 @echo $(DEF9EXPORT12) >>$@.tmpfile
2395 .ENDIF
2396 .IF "$(DEF9EXPORT13)"!=""
2397 @echo $(DEF9EXPORT13) >>$@.tmpfile
2398 .ENDIF
2399 .IF "$(DEF9EXPORT14)"!=""
2400 @echo $(DEF9EXPORT14) >>$@.tmpfile
2401 .ENDIF
2402 .IF "$(DEF9EXPORT15)"!=""
2403 @echo $(DEF9EXPORT15) >>$@.tmpfile
2404 .ENDIF
2405 .IF "$(DEF9EXPORT16)"!=""
2406 @echo $(DEF9EXPORT16) >>$@.tmpfile
2407 .ENDIF
2408 .IF "$(DEF9EXPORT17)"!=""
2409 @echo $(DEF9EXPORT17) >>$@.tmpfile
2410 .ENDIF
2411 .IF "$(DEF9EXPORT18)"!=""
2412 @echo $(DEF9EXPORT18) >>$@.tmpfile
2413 .ENDIF
2414 .IF "$(DEF9EXPORT19)"!=""
2415 @echo $(DEF9EXPORT19) >>$@.tmpfile
2416 .ENDIF
2417 .IF "$(DEF9EXPORT20)"!=""
2418 @echo $(DEF9EXPORT20) >>$@.tmpfile
2419 .ENDIF
2420 .IF "$(DEF9EXPORTFILE)"!=""
2421 .IF "$(COM)"=="GCC"
2422 $(TYPE) $(DEF9EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
2423 .ELSE
2424 $(TYPE) $(DEF9EXPORTFILE) >> $@.tmpfile
2425 .ENDIF
2426 .ENDIF
2427 @-$(RM) $@
2428 @$(RENAME) $@.tmpfile $@
2429 .ENDIF # "$(GUI)"=="WNT"
2431 .IF "$(GUI)"=="OS2"
2433 #21/02/2006 YD dll names must be 8.3, invoke fix script
2434 #check osl/os2/module.c/osl_loadModule()
2435 SHL9TARGET8=$(shell @fix_shl $(SHL9TARGETN:f))
2437 DEF9FILTER=$(SOLARENV)/inc/dummy.flt
2438 DEF9NAMELIST=$(foreach,i,$(DEFLIB9NAME) $(SLB)/$(i).lib)
2440 .IF "$(link_always)"==""
2441 $(DEF9TARGETN) : \
2442 $(DEF9DEPN) \
2443 $(DEF9EXPORTFILE)
2444 .ELSE # "$(link_always)"==""
2445 $(DEF9TARGETN) .PHONY :
2446 .ENDIF # "$(link_always)"==""
2447 @+-$(RM) $@.tmpfile
2448 @echo ------------------------------
2449 @echo Making Module-Definitionfile : $@
2450 @echo LIBRARY $(SHL9TARGET8) INITINSTANCE TERMINSTANCE >$@.tmpfile
2451 @echo DATA MULTIPLE >>$@.tmpfile
2452 @echo DESCRIPTION 'StarView 3.00 $(DEF9DES) $(UPD) $(UPDMINOR)' >>$@.tmpfile
2453 @echo EXPORTS >>$@.tmpfile
2454 .IF "$(VERSIONOBJ)"!=""
2455 # getversioninfo fuer alle!!
2456 @echo _GetVersionInfo >$@.tmp_ord
2457 .ENDIF
2459 .IF "$(DEFLIB9NAME)"!=""
2460 @+echo $(SLB)/$(DEFLIB9NAME).lib
2461 @+emxexpr $(DEF9NAMELIST) | fix_exp_file >> $@.tmp_ord
2462 .ENDIF # "$(DEFLIB9NAME)"!=""
2464 .IF "$(DEF9EXPORT1)"!=""
2465 @echo $(DEF9EXPORT1) >>$@.tmpfile
2466 .ENDIF
2467 .IF "$(DEF9EXPORT2)"!=""
2468 @echo $(DEF9EXPORT2) >>$@.tmpfile
2469 .ENDIF
2470 .IF "$(DEF9EXPORT3)"!=""
2471 @echo $(DEF9EXPORT3) >>$@.tmpfile
2472 .ENDIF
2473 .IF "$(DEF9EXPORT4)"!=""
2474 @echo $(DEF9EXPORT4) >>$@.tmpfile
2475 .ENDIF
2476 .IF "$(DEF9EXPORT5)"!=""
2477 @echo $(DEF9EXPORT5) >>$@.tmpfile
2478 .ENDIF
2479 .IF "$(DEF9EXPORT6)"!=""
2480 @echo $(DEF9EXPORT6) >>$@.tmpfile
2481 .ENDIF
2482 .IF "$(DEF9EXPORT7)"!=""
2483 @echo $(DEF9EXPORT7) >>$@.tmpfile
2484 .ENDIF
2485 .IF "$(DEF9EXPORT8)"!=""
2486 @echo $(DEF9EXPORT8) >>$@.tmpfile
2487 .ENDIF
2488 .IF "$(DEF9EXPORT9)"!=""
2489 @echo $(DEF9EXPORT9) >>$@.tmpfile
2490 .ENDIF
2491 .IF "$(DEF9EXPORT10)"!=""
2492 @echo $(DEF9EXPORT10) >>$@.tmpfile
2493 .ENDIF
2494 .IF "$(DEF9EXPORT11)"!=""
2495 @echo $(DEF9EXPORT11) >>$@.tmpfile
2496 .ENDIF
2497 .IF "$(DEF9EXPORT12)"!=""
2498 @echo $(DEF9EXPORT12) >>$@.tmpfile
2499 .ENDIF
2500 .IF "$(DEF9EXPORT13)"!=""
2501 @echo $(DEF9EXPORT13) >>$@.tmpfile
2502 .ENDIF
2503 .IF "$(DEF9EXPORT14)"!=""
2504 @echo $(DEF9EXPORT14) >>$@.tmpfile
2505 .ENDIF
2506 .IF "$(DEF9EXPORT15)"!=""
2507 @echo $(DEF9EXPORT15) >>$@.tmpfile
2508 .ENDIF
2509 .IF "$(DEF9EXPORT16)"!=""
2510 @echo $(DEF9EXPORT16) >>$@.tmpfile
2511 .ENDIF
2512 .IF "$(DEF9EXPORT17)"!=""
2513 @echo $(DEF9EXPORT17) >>$@.tmpfile
2514 .ENDIF
2515 .IF "$(DEF9EXPORT18)"!=""
2516 @echo $(DEF9EXPORT18) >>$@.tmpfile
2517 .ENDIF
2518 .IF "$(DEF9EXPORT19)"!=""
2519 @echo $(DEF9EXPORT19) >>$@.tmpfile
2520 .ENDIF
2521 .IF "$(DEF9EXPORT20)"!=""
2522 @echo $(DEF9EXPORT20) >>$@.tmpfile
2523 .ENDIF
2524 .IF "$(DEF9EXPORTFILE)"!=""
2525 @fix_def_file < $(DEF9EXPORTFILE) >> $@.tmp_ord
2526 .ENDIF
2527 @sort < $@.tmp_ord | uniq > $@.exptmpfile
2528 @fix_def_ord < $@.exptmpfile >> $@.tmpfile
2529 @+-$(RM) $@
2530 +$(RENAME) $@.tmpfile $@
2531 @+-$(RM) $@.tmp_ord
2532 @+-$(RM) $@.exptmpfile
2533 +$(IMPLIB) $(IMPLIBFLAGS) $(SHL9IMPLIBN:s/.lib/.a/) $@
2534 +emxomf -o $(SHL9IMPLIBN) $(SHL9IMPLIBN:s/.lib/.a/)
2536 .ENDIF # "$(GUI)"=="OS2"
2538 .IF "$(GUI)"=="UNX"
2539 $(DEF9TARGETN): \
2540 $(DEF9DEPN) \
2541 $(DEF9EXPORTFILE)
2542 @echo just a dummy for UNIX > $@
2543 .ENDIF
2544 .ENDIF # "$(DEF9TARGETN)"!=""
2547 # Anweisungen fuer das Linken
2548 # unroll begin
2550 .IF "$(DEF10TARGETN)"!=""
2552 #to make intuitiv naming work
2553 .IF "$(DEF10LIBNAME)"!=""
2554 DEFLIB10NAME*=$(DEF10LIBNAME)
2555 .ENDIF # "$(DEF10LIBNAME)"!=""
2557 .IF "$(DEFLIB10NAME)"!=""
2558 DEF10DEPN+=$(foreach,i,$(DEFLIB10NAME) $(SLB)/$(i).lib)
2559 .ENDIF
2561 .IF "$(SHL10VERSIONMAP)"!=""
2562 .IF "$(DEF10EXPORTFILE)"==""
2563 .IF "$(GUI)"=="WNT"
2564 DEF10EXPORTFILE=$(MISC)/$(SHL10VERSIONMAP:b)_$(SHL10TARGET).dxp
2565 .IF "$(COM)"=="GCC"
2566 $(DEF10EXPORTFILE) : $(SHL10OBJS) $(SHL10LIBS)
2567 .ENDIF # .IF "$(COM)"=="GCC"
2569 $(DEF10EXPORTFILE) : $(SHL10VERSIONMAP)
2570 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
2571 .IF "$(COM)"=="GCC"
2572 -$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
2573 -$(GREP) "\*\|?" $@ > $@.symbols-regexp
2574 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
2575 # Extract RTTI symbols from all the objects that will be used to build a shared library
2576 nm -gP $(SHL10OBJS) \
2577 `$(TYPE) /dev/null $(foreach,j,$(SHL10LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
2578 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
2579 # overwrite the map file generate into the local output tree with the generated
2580 # exported symbols list
2581 $(RENAME) $@.exported-symbols $@
2582 .ENDIF # .IF "$(COM)"=="GCC"
2584 .ENDIF # "$(GUI)"=="WNT"
2586 .IF "$(GUI)"=="OS2"
2587 DEF10EXPORTFILE=$(MISC)/$(SHL10VERSIONMAP:b)_$(SHL10TARGET).dxp
2588 $(DEF10EXPORTFILE) : $(SHL10VERSIONMAP)
2589 $(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
2590 .ENDIF # "$(GUI)"=="OS2"
2592 .ENDIF # "$(DEF10EXPORTFILE)"==""
2593 .ENDIF # "$(SHL10VERSIONMAP)"!=""
2595 .IF "$(GUI)"=="WNT"
2597 DEF10FILTER=$(SOLARENV)/inc/dummy.flt
2599 RMHACK10:=$(RM)
2601 .IF "$(DEF10CEXP)"!=""
2602 EXPORT_ALL_SWITCH=-A $(DEF10CEXP)
2603 .ENDIF
2605 .IF "$(link_always)"==""
2606 $(DEF10TARGETN) : \
2607 $(DEF10DEPN) \
2608 $(DEF10EXPORTFILE)
2609 .ELSE # "$(link_always)"==""
2610 $(DEF10TARGETN) .PHONY :
2611 .ENDIF # "$(link_always)"==""
2612 @-$(RM) $@.tmpfile
2613 @echo ------------------------------
2614 @echo Making Module-Definitionfile : $@
2615 @echo LIBRARY $(EMQ)"$(SHL10TARGETN:f)$(EMQ)" >$@.tmpfile
2616 .IF "$(COM)"!="GCC"
2617 @echo HEAPSIZE 0 >>$@.tmpfile
2618 .ENDIF
2619 @echo EXPORTS >>$@.tmpfile
2620 .IF "$(VERSIONOBJ)"!=""
2621 # getversioninfo fuer alle!!
2622 @echo GetVersionInfo >>$@.tmpfile
2623 .ENDIF
2624 .IF "$(DEFLIB10NAME)"!=""
2625 .IF "$(COM)"=="GCC"
2626 @-$(RM) $(MISC)/$(SHL10TARGET).exp
2627 dlltool --output-def $(MISC)/$(SHL10TARGET).exp --export-all-symbols \
2628 `$(TYPE) $(foreach,i,$(DEFLIB10NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
2629 tail --lines +3 $(MISC)/$(SHL10TARGET).exp | sed '/^;/d' >>$@.tmpfile
2630 @-$(RM) $(MISC)/$(SHL10TARGET).exp
2631 .ELSE
2632 .IF "$(SHL10USE_EXPORTS)"==""
2633 @-$(RMHACK10) $(MISC)/$(SHL10TARGET).exp
2634 @$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL10TARGET).exp $(SLB)/$(DEFLIB10NAME).lib
2635 @$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL10TARGET).flt $(MISC)/$(SHL10TARGET).exp >>$@.tmpfile
2636 $(RMHACK10) $(MISC)/$(SHL10TARGET).exp
2637 .ELSE # "$(SHL10USE_EXPORTS)"==""
2638 @$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB10NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL10TARGET).direct
2639 @$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF10FILTER) $(MISC)/$(SHL10TARGET).direct >>$@.tmpfile
2640 .ENDIF # "$(SHL10USE_EXPORTS)"==""
2641 .ENDIF
2642 .ENDIF # "$(DEFLIB10NAME)"!=""
2643 .IF "$(DEF10EXPORT1)"!=""
2644 @echo $(DEF10EXPORT1) >>$@.tmpfile
2645 .ENDIF
2646 .IF "$(DEF10EXPORT2)"!=""
2647 @echo $(DEF10EXPORT2) >>$@.tmpfile
2648 .ENDIF
2649 .IF "$(DEF10EXPORT3)"!=""
2650 @echo $(DEF10EXPORT3) >>$@.tmpfile
2651 .ENDIF
2652 .IF "$(DEF10EXPORT4)"!=""
2653 @echo $(DEF10EXPORT4) >>$@.tmpfile
2654 .ENDIF
2655 .IF "$(DEF10EXPORT5)"!=""
2656 @echo $(DEF10EXPORT5) >>$@.tmpfile
2657 .ENDIF
2658 .IF "$(DEF10EXPORT6)"!=""
2659 @echo $(DEF10EXPORT6) >>$@.tmpfile
2660 .ENDIF
2661 .IF "$(DEF10EXPORT7)"!=""
2662 @echo $(DEF10EXPORT7) >>$@.tmpfile
2663 .ENDIF
2664 .IF "$(DEF10EXPORT8)"!=""
2665 @echo $(DEF10EXPORT8) >>$@.tmpfile
2666 .ENDIF
2667 .IF "$(DEF10EXPORT9)"!=""
2668 @echo $(DEF10EXPORT9) >>$@.tmpfile
2669 .ENDIF
2670 .IF "$(DEF10EXPORT10)"!=""
2671 @echo $(DEF10EXPORT10) >>$@.tmpfile
2672 .ENDIF
2673 .IF "$(DEF10EXPORT11)"!=""
2674 @echo $(DEF10EXPORT11) >>$@.tmpfile
2675 .ENDIF
2676 .IF "$(DEF10EXPORT12)"!=""
2677 @echo $(DEF10EXPORT12) >>$@.tmpfile
2678 .ENDIF
2679 .IF "$(DEF10EXPORT13)"!=""
2680 @echo $(DEF10EXPORT13) >>$@.tmpfile
2681 .ENDIF
2682 .IF "$(DEF10EXPORT14)"!=""
2683 @echo $(DEF10EXPORT14) >>$@.tmpfile
2684 .ENDIF
2685 .IF "$(DEF10EXPORT15)"!=""
2686 @echo $(DEF10EXPORT15) >>$@.tmpfile
2687 .ENDIF
2688 .IF "$(DEF10EXPORT16)"!=""
2689 @echo $(DEF10EXPORT16) >>$@.tmpfile
2690 .ENDIF
2691 .IF "$(DEF10EXPORT17)"!=""
2692 @echo $(DEF10EXPORT17) >>$@.tmpfile
2693 .ENDIF
2694 .IF "$(DEF10EXPORT18)"!=""
2695 @echo $(DEF10EXPORT18) >>$@.tmpfile
2696 .ENDIF
2697 .IF "$(DEF10EXPORT19)"!=""
2698 @echo $(DEF10EXPORT19) >>$@.tmpfile
2699 .ENDIF
2700 .IF "$(DEF10EXPORT20)"!=""
2701 @echo $(DEF10EXPORT20) >>$@.tmpfile
2702 .ENDIF
2703 .IF "$(DEF10EXPORTFILE)"!=""
2704 .IF "$(COM)"=="GCC"
2705 $(TYPE) $(DEF10EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
2706 .ELSE
2707 $(TYPE) $(DEF10EXPORTFILE) >> $@.tmpfile
2708 .ENDIF
2709 .ENDIF
2710 @-$(RM) $@
2711 @$(RENAME) $@.tmpfile $@
2712 .ENDIF # "$(GUI)"=="WNT"
2714 .IF "$(GUI)"=="OS2"
2716 #21/02/2006 YD dll names must be 8.3, invoke fix script
2717 #check osl/os2/module.c/osl_loadModule()
2718 SHL10TARGET8=$(shell @fix_shl $(SHL10TARGETN:f))
2720 DEF10FILTER=$(SOLARENV)/inc/dummy.flt
2721 DEF10NAMELIST=$(foreach,i,$(DEFLIB10NAME) $(SLB)/$(i).lib)
2723 .IF "$(link_always)"==""
2724 $(DEF10TARGETN) : \
2725 $(DEF10DEPN) \
2726 $(DEF10EXPORTFILE)
2727 .ELSE # "$(link_always)"==""
2728 $(DEF10TARGETN) .PHONY :
2729 .ENDIF # "$(link_always)"==""
2730 @+-$(RM) $@.tmpfile
2731 @echo ------------------------------
2732 @echo Making Module-Definitionfile : $@
2733 @echo LIBRARY $(SHL10TARGET8) INITINSTANCE TERMINSTANCE >$@.tmpfile
2734 @echo DATA MULTIPLE >>$@.tmpfile
2735 @echo DESCRIPTION 'StarView 3.00 $(DEF10DES) $(UPD) $(UPDMINOR)' >>$@.tmpfile
2736 @echo EXPORTS >>$@.tmpfile
2737 .IF "$(VERSIONOBJ)"!=""
2738 # getversioninfo fuer alle!!
2739 @echo _GetVersionInfo >$@.tmp_ord
2740 .ENDIF
2742 .IF "$(DEFLIB10NAME)"!=""
2743 @+echo $(SLB)/$(DEFLIB10NAME).lib
2744 @+emxexpr $(DEF10NAMELIST) | fix_exp_file >> $@.tmp_ord
2745 .ENDIF # "$(DEFLIB10NAME)"!=""
2747 .IF "$(DEF10EXPORT1)"!=""
2748 @echo $(DEF10EXPORT1) >>$@.tmpfile
2749 .ENDIF
2750 .IF "$(DEF10EXPORT2)"!=""
2751 @echo $(DEF10EXPORT2) >>$@.tmpfile
2752 .ENDIF
2753 .IF "$(DEF10EXPORT3)"!=""
2754 @echo $(DEF10EXPORT3) >>$@.tmpfile
2755 .ENDIF
2756 .IF "$(DEF10EXPORT4)"!=""
2757 @echo $(DEF10EXPORT4) >>$@.tmpfile
2758 .ENDIF
2759 .IF "$(DEF10EXPORT5)"!=""
2760 @echo $(DEF10EXPORT5) >>$@.tmpfile
2761 .ENDIF
2762 .IF "$(DEF10EXPORT6)"!=""
2763 @echo $(DEF10EXPORT6) >>$@.tmpfile
2764 .ENDIF
2765 .IF "$(DEF10EXPORT7)"!=""
2766 @echo $(DEF10EXPORT7) >>$@.tmpfile
2767 .ENDIF
2768 .IF "$(DEF10EXPORT8)"!=""
2769 @echo $(DEF10EXPORT8) >>$@.tmpfile
2770 .ENDIF
2771 .IF "$(DEF10EXPORT9)"!=""
2772 @echo $(DEF10EXPORT9) >>$@.tmpfile
2773 .ENDIF
2774 .IF "$(DEF10EXPORT10)"!=""
2775 @echo $(DEF10EXPORT10) >>$@.tmpfile
2776 .ENDIF
2777 .IF "$(DEF10EXPORT11)"!=""
2778 @echo $(DEF10EXPORT11) >>$@.tmpfile
2779 .ENDIF
2780 .IF "$(DEF10EXPORT12)"!=""
2781 @echo $(DEF10EXPORT12) >>$@.tmpfile
2782 .ENDIF
2783 .IF "$(DEF10EXPORT13)"!=""
2784 @echo $(DEF10EXPORT13) >>$@.tmpfile
2785 .ENDIF
2786 .IF "$(DEF10EXPORT14)"!=""
2787 @echo $(DEF10EXPORT14) >>$@.tmpfile
2788 .ENDIF
2789 .IF "$(DEF10EXPORT15)"!=""
2790 @echo $(DEF10EXPORT15) >>$@.tmpfile
2791 .ENDIF
2792 .IF "$(DEF10EXPORT16)"!=""
2793 @echo $(DEF10EXPORT16) >>$@.tmpfile
2794 .ENDIF
2795 .IF "$(DEF10EXPORT17)"!=""
2796 @echo $(DEF10EXPORT17) >>$@.tmpfile
2797 .ENDIF
2798 .IF "$(DEF10EXPORT18)"!=""
2799 @echo $(DEF10EXPORT18) >>$@.tmpfile
2800 .ENDIF
2801 .IF "$(DEF10EXPORT19)"!=""
2802 @echo $(DEF10EXPORT19) >>$@.tmpfile
2803 .ENDIF
2804 .IF "$(DEF10EXPORT20)"!=""
2805 @echo $(DEF10EXPORT20) >>$@.tmpfile
2806 .ENDIF
2807 .IF "$(DEF10EXPORTFILE)"!=""
2808 @fix_def_file < $(DEF10EXPORTFILE) >> $@.tmp_ord
2809 .ENDIF
2810 @sort < $@.tmp_ord | uniq > $@.exptmpfile
2811 @fix_def_ord < $@.exptmpfile >> $@.tmpfile
2812 @+-$(RM) $@
2813 +$(RENAME) $@.tmpfile $@
2814 @+-$(RM) $@.tmp_ord
2815 @+-$(RM) $@.exptmpfile
2816 +$(IMPLIB) $(IMPLIBFLAGS) $(SHL10IMPLIBN:s/.lib/.a/) $@
2817 +emxomf -o $(SHL10IMPLIBN) $(SHL10IMPLIBN:s/.lib/.a/)
2819 .ENDIF # "$(GUI)"=="OS2"
2821 .IF "$(GUI)"=="UNX"
2822 $(DEF10TARGETN): \
2823 $(DEF10DEPN) \
2824 $(DEF10EXPORTFILE)
2825 @echo just a dummy for UNIX > $@
2826 .ENDIF
2827 .ENDIF # "$(DEF10TARGETN)"!=""
2830 # Anweisungen fuer das Linken