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
)
14 .IF
"$(SHL1VERSIONMAP)"!=""
15 .IF
"$(DEF1EXPORTFILE)"==""
17 DEF1EXPORTFILE
=$(MISC
)/$(SHL1VERSIONMAP
:b
)_
$(SHL1TARGET
).dxp
19 $(DEF1EXPORTFILE
) : $(SHL1OBJS
) $(SHL1LIBS
)
20 .ENDIF
# .IF "$(COM)"=="GCC"
22 $(DEF1EXPORTFILE
) : $(SHL1VERSIONMAP
)
23 $(TYPE
) $< |
$(AWK
) -f
$(SOLARENV
)/bin
/getcsym.awk
> $@
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
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"
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)"!=""
50 DEF1FILTER
=$(SOLARENV
)/inc
/dummy.flt
55 EXPORT_ALL_SWITCH
=-A
$(DEF1CEXP
)
58 .IF
"$(link_always)"==""
62 .ELSE
# "$(link_always)"==""
63 $(DEF1TARGETN
) .PHONY
:
64 .ENDIF
# "$(link_always)"==""
66 @echo
------------------------------
67 @echo Making Module-Definitionfile
: $@
68 @echo LIBRARY
$(EMQ
)"$(SHL1TARGETN:f)$(EMQ)" >$@.tmpfile
70 @echo HEAPSIZE
0 >>$@.tmpfile
72 @echo EXPORTS
>>$@.tmpfile
73 .IF
"$(VERSIONOBJ)"!=""
74 # getversioninfo fuer alle!!
75 @echo GetVersionInfo
>>$@.tmpfile
77 .IF
"$(DEFLIB1NAME)"!=""
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
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)"==""
95 .ENDIF
# "$(DEFLIB1NAME)"!=""
96 .IF
"$(DEF1EXPORT1)"!=""
97 @echo
$(DEF1EXPORT1
) >>$@.tmpfile
99 .IF
"$(DEF1EXPORT2)"!=""
100 @echo
$(DEF1EXPORT2
) >>$@.tmpfile
102 .IF
"$(DEF1EXPORT3)"!=""
103 @echo
$(DEF1EXPORT3
) >>$@.tmpfile
105 .IF
"$(DEF1EXPORT4)"!=""
106 @echo
$(DEF1EXPORT4
) >>$@.tmpfile
108 .IF
"$(DEF1EXPORT5)"!=""
109 @echo
$(DEF1EXPORT5
) >>$@.tmpfile
111 .IF
"$(DEF1EXPORT6)"!=""
112 @echo
$(DEF1EXPORT6
) >>$@.tmpfile
114 .IF
"$(DEF1EXPORT7)"!=""
115 @echo
$(DEF1EXPORT7
) >>$@.tmpfile
117 .IF
"$(DEF1EXPORT8)"!=""
118 @echo
$(DEF1EXPORT8
) >>$@.tmpfile
120 .IF
"$(DEF1EXPORT9)"!=""
121 @echo
$(DEF1EXPORT9
) >>$@.tmpfile
123 .IF
"$(DEF1EXPORT10)"!=""
124 @echo
$(DEF1EXPORT10
) >>$@.tmpfile
126 .IF
"$(DEF1EXPORT11)"!=""
127 @echo
$(DEF1EXPORT11
) >>$@.tmpfile
129 .IF
"$(DEF1EXPORT12)"!=""
130 @echo
$(DEF1EXPORT12
) >>$@.tmpfile
132 .IF
"$(DEF1EXPORT13)"!=""
133 @echo
$(DEF1EXPORT13
) >>$@.tmpfile
135 .IF
"$(DEF1EXPORT14)"!=""
136 @echo
$(DEF1EXPORT14
) >>$@.tmpfile
138 .IF
"$(DEF1EXPORT15)"!=""
139 @echo
$(DEF1EXPORT15
) >>$@.tmpfile
141 .IF
"$(DEF1EXPORT16)"!=""
142 @echo
$(DEF1EXPORT16
) >>$@.tmpfile
144 .IF
"$(DEF1EXPORT17)"!=""
145 @echo
$(DEF1EXPORT17
) >>$@.tmpfile
147 .IF
"$(DEF1EXPORT18)"!=""
148 @echo
$(DEF1EXPORT18
) >>$@.tmpfile
150 .IF
"$(DEF1EXPORT19)"!=""
151 @echo
$(DEF1EXPORT19
) >>$@.tmpfile
153 .IF
"$(DEF1EXPORT20)"!=""
154 @echo
$(DEF1EXPORT20
) >>$@.tmpfile
156 .IF
"$(DEF1EXPORTFILE)"!=""
158 $(TYPE
) $(DEF1EXPORTFILE
) | sed
-e s
:PRIVATE
:: >> $@.tmpfile
160 $(TYPE
) $(DEF1EXPORTFILE
) >> $@.tmpfile
164 @
$(RENAME
) $@.tmpfile
$@
165 .ENDIF
# "$(GUI)"=="WNT"
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)"==""
180 .ELSE
# "$(link_always)"==""
181 $(DEF1TARGETN
) .PHONY
:
182 .ENDIF
# "$(link_always)"==""
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
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
203 .IF
"$(DEF1EXPORT2)"!=""
204 @echo
$(DEF1EXPORT2
) >>$@.tmpfile
206 .IF
"$(DEF1EXPORT3)"!=""
207 @echo
$(DEF1EXPORT3
) >>$@.tmpfile
209 .IF
"$(DEF1EXPORT4)"!=""
210 @echo
$(DEF1EXPORT4
) >>$@.tmpfile
212 .IF
"$(DEF1EXPORT5)"!=""
213 @echo
$(DEF1EXPORT5
) >>$@.tmpfile
215 .IF
"$(DEF1EXPORT6)"!=""
216 @echo
$(DEF1EXPORT6
) >>$@.tmpfile
218 .IF
"$(DEF1EXPORT7)"!=""
219 @echo
$(DEF1EXPORT7
) >>$@.tmpfile
221 .IF
"$(DEF1EXPORT8)"!=""
222 @echo
$(DEF1EXPORT8
) >>$@.tmpfile
224 .IF
"$(DEF1EXPORT9)"!=""
225 @echo
$(DEF1EXPORT9
) >>$@.tmpfile
227 .IF
"$(DEF1EXPORT10)"!=""
228 @echo
$(DEF1EXPORT10
) >>$@.tmpfile
230 .IF
"$(DEF1EXPORT11)"!=""
231 @echo
$(DEF1EXPORT11
) >>$@.tmpfile
233 .IF
"$(DEF1EXPORT12)"!=""
234 @echo
$(DEF1EXPORT12
) >>$@.tmpfile
236 .IF
"$(DEF1EXPORT13)"!=""
237 @echo
$(DEF1EXPORT13
) >>$@.tmpfile
239 .IF
"$(DEF1EXPORT14)"!=""
240 @echo
$(DEF1EXPORT14
) >>$@.tmpfile
242 .IF
"$(DEF1EXPORT15)"!=""
243 @echo
$(DEF1EXPORT15
) >>$@.tmpfile
245 .IF
"$(DEF1EXPORT16)"!=""
246 @echo
$(DEF1EXPORT16
) >>$@.tmpfile
248 .IF
"$(DEF1EXPORT17)"!=""
249 @echo
$(DEF1EXPORT17
) >>$@.tmpfile
251 .IF
"$(DEF1EXPORT18)"!=""
252 @echo
$(DEF1EXPORT18
) >>$@.tmpfile
254 .IF
"$(DEF1EXPORT19)"!=""
255 @echo
$(DEF1EXPORT19
) >>$@.tmpfile
257 .IF
"$(DEF1EXPORT20)"!=""
258 @echo
$(DEF1EXPORT20
) >>$@.tmpfile
260 .IF
"$(DEF1EXPORTFILE)"!=""
261 @fix_def_file
< $(DEF1EXPORTFILE
) >> $@.tmp_ord
263 @
sort < $@.tmp_ord | uniq
> $@.exptmpfile
264 @fix_def_ord
< $@.exptmpfile
>> $@.tmpfile
266 +$(RENAME
) $@.tmpfile
$@
268 @
+-$(RM
) $@.exptmpfile
269 +$(IMPLIB
) $(IMPLIBFLAGS
) $(SHL1IMPLIBN
:s
/.lib
/.a
/) $@
270 +emxomf
-o
$(SHL1IMPLIBN
) $(SHL1IMPLIBN
:s
/.lib
/.a
/)
272 .ENDIF
# "$(GUI)"=="OS2"
278 @echo just a dummy for UNIX
> $@
280 .ENDIF
# "$(DEF1TARGETN)"!=""
283 # Anweisungen fuer das Linken
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
)
297 .IF
"$(SHL2VERSIONMAP)"!=""
298 .IF
"$(DEF2EXPORTFILE)"==""
300 DEF2EXPORTFILE
=$(MISC
)/$(SHL2VERSIONMAP
:b
)_
$(SHL2TARGET
).dxp
302 $(DEF2EXPORTFILE
) : $(SHL2OBJS
) $(SHL2LIBS
)
303 .ENDIF
# .IF "$(COM)"=="GCC"
305 $(DEF2EXPORTFILE
) : $(SHL2VERSIONMAP
)
306 $(TYPE
) $< |
$(AWK
) -f
$(SOLARENV
)/bin
/getcsym.awk
> $@
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
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"
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)"!=""
333 DEF2FILTER
=$(SOLARENV
)/inc
/dummy.flt
337 .IF
"$(DEF2CEXP)"!=""
338 EXPORT_ALL_SWITCH
=-A
$(DEF2CEXP
)
341 .IF
"$(link_always)"==""
345 .ELSE
# "$(link_always)"==""
346 $(DEF2TARGETN
) .PHONY
:
347 .ENDIF
# "$(link_always)"==""
349 @echo
------------------------------
350 @echo Making Module-Definitionfile
: $@
351 @echo LIBRARY
$(EMQ
)"$(SHL2TARGETN:f)$(EMQ)" >$@.tmpfile
353 @echo HEAPSIZE
0 >>$@.tmpfile
355 @echo EXPORTS
>>$@.tmpfile
356 .IF
"$(VERSIONOBJ)"!=""
357 # getversioninfo fuer alle!!
358 @echo GetVersionInfo
>>$@.tmpfile
360 .IF
"$(DEFLIB2NAME)"!=""
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
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)"==""
378 .ENDIF
# "$(DEFLIB2NAME)"!=""
379 .IF
"$(DEF2EXPORT1)"!=""
380 @echo
$(DEF2EXPORT1
) >>$@.tmpfile
382 .IF
"$(DEF2EXPORT2)"!=""
383 @echo
$(DEF2EXPORT2
) >>$@.tmpfile
385 .IF
"$(DEF2EXPORT3)"!=""
386 @echo
$(DEF2EXPORT3
) >>$@.tmpfile
388 .IF
"$(DEF2EXPORT4)"!=""
389 @echo
$(DEF2EXPORT4
) >>$@.tmpfile
391 .IF
"$(DEF2EXPORT5)"!=""
392 @echo
$(DEF2EXPORT5
) >>$@.tmpfile
394 .IF
"$(DEF2EXPORT6)"!=""
395 @echo
$(DEF2EXPORT6
) >>$@.tmpfile
397 .IF
"$(DEF2EXPORT7)"!=""
398 @echo
$(DEF2EXPORT7
) >>$@.tmpfile
400 .IF
"$(DEF2EXPORT8)"!=""
401 @echo
$(DEF2EXPORT8
) >>$@.tmpfile
403 .IF
"$(DEF2EXPORT9)"!=""
404 @echo
$(DEF2EXPORT9
) >>$@.tmpfile
406 .IF
"$(DEF2EXPORT10)"!=""
407 @echo
$(DEF2EXPORT10
) >>$@.tmpfile
409 .IF
"$(DEF2EXPORT11)"!=""
410 @echo
$(DEF2EXPORT11
) >>$@.tmpfile
412 .IF
"$(DEF2EXPORT12)"!=""
413 @echo
$(DEF2EXPORT12
) >>$@.tmpfile
415 .IF
"$(DEF2EXPORT13)"!=""
416 @echo
$(DEF2EXPORT13
) >>$@.tmpfile
418 .IF
"$(DEF2EXPORT14)"!=""
419 @echo
$(DEF2EXPORT14
) >>$@.tmpfile
421 .IF
"$(DEF2EXPORT15)"!=""
422 @echo
$(DEF2EXPORT15
) >>$@.tmpfile
424 .IF
"$(DEF2EXPORT16)"!=""
425 @echo
$(DEF2EXPORT16
) >>$@.tmpfile
427 .IF
"$(DEF2EXPORT17)"!=""
428 @echo
$(DEF2EXPORT17
) >>$@.tmpfile
430 .IF
"$(DEF2EXPORT18)"!=""
431 @echo
$(DEF2EXPORT18
) >>$@.tmpfile
433 .IF
"$(DEF2EXPORT19)"!=""
434 @echo
$(DEF2EXPORT19
) >>$@.tmpfile
436 .IF
"$(DEF2EXPORT20)"!=""
437 @echo
$(DEF2EXPORT20
) >>$@.tmpfile
439 .IF
"$(DEF2EXPORTFILE)"!=""
441 $(TYPE
) $(DEF2EXPORTFILE
) | sed
-e s
:PRIVATE
:: >> $@.tmpfile
443 $(TYPE
) $(DEF2EXPORTFILE
) >> $@.tmpfile
447 @
$(RENAME
) $@.tmpfile
$@
448 .ENDIF
# "$(GUI)"=="WNT"
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)"==""
463 .ELSE
# "$(link_always)"==""
464 $(DEF2TARGETN
) .PHONY
:
465 .ENDIF
# "$(link_always)"==""
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
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
486 .IF
"$(DEF2EXPORT2)"!=""
487 @echo
$(DEF2EXPORT2
) >>$@.tmpfile
489 .IF
"$(DEF2EXPORT3)"!=""
490 @echo
$(DEF2EXPORT3
) >>$@.tmpfile
492 .IF
"$(DEF2EXPORT4)"!=""
493 @echo
$(DEF2EXPORT4
) >>$@.tmpfile
495 .IF
"$(DEF2EXPORT5)"!=""
496 @echo
$(DEF2EXPORT5
) >>$@.tmpfile
498 .IF
"$(DEF2EXPORT6)"!=""
499 @echo
$(DEF2EXPORT6
) >>$@.tmpfile
501 .IF
"$(DEF2EXPORT7)"!=""
502 @echo
$(DEF2EXPORT7
) >>$@.tmpfile
504 .IF
"$(DEF2EXPORT8)"!=""
505 @echo
$(DEF2EXPORT8
) >>$@.tmpfile
507 .IF
"$(DEF2EXPORT9)"!=""
508 @echo
$(DEF2EXPORT9
) >>$@.tmpfile
510 .IF
"$(DEF2EXPORT10)"!=""
511 @echo
$(DEF2EXPORT10
) >>$@.tmpfile
513 .IF
"$(DEF2EXPORT11)"!=""
514 @echo
$(DEF2EXPORT11
) >>$@.tmpfile
516 .IF
"$(DEF2EXPORT12)"!=""
517 @echo
$(DEF2EXPORT12
) >>$@.tmpfile
519 .IF
"$(DEF2EXPORT13)"!=""
520 @echo
$(DEF2EXPORT13
) >>$@.tmpfile
522 .IF
"$(DEF2EXPORT14)"!=""
523 @echo
$(DEF2EXPORT14
) >>$@.tmpfile
525 .IF
"$(DEF2EXPORT15)"!=""
526 @echo
$(DEF2EXPORT15
) >>$@.tmpfile
528 .IF
"$(DEF2EXPORT16)"!=""
529 @echo
$(DEF2EXPORT16
) >>$@.tmpfile
531 .IF
"$(DEF2EXPORT17)"!=""
532 @echo
$(DEF2EXPORT17
) >>$@.tmpfile
534 .IF
"$(DEF2EXPORT18)"!=""
535 @echo
$(DEF2EXPORT18
) >>$@.tmpfile
537 .IF
"$(DEF2EXPORT19)"!=""
538 @echo
$(DEF2EXPORT19
) >>$@.tmpfile
540 .IF
"$(DEF2EXPORT20)"!=""
541 @echo
$(DEF2EXPORT20
) >>$@.tmpfile
543 .IF
"$(DEF2EXPORTFILE)"!=""
544 @fix_def_file
< $(DEF2EXPORTFILE
) >> $@.tmp_ord
546 @
sort < $@.tmp_ord | uniq
> $@.exptmpfile
547 @fix_def_ord
< $@.exptmpfile
>> $@.tmpfile
549 +$(RENAME
) $@.tmpfile
$@
551 @
+-$(RM
) $@.exptmpfile
552 +$(IMPLIB
) $(IMPLIBFLAGS
) $(SHL2IMPLIBN
:s
/.lib
/.a
/) $@
553 +emxomf
-o
$(SHL2IMPLIBN
) $(SHL2IMPLIBN
:s
/.lib
/.a
/)
555 .ENDIF
# "$(GUI)"=="OS2"
561 @echo just a dummy for UNIX
> $@
563 .ENDIF
# "$(DEF2TARGETN)"!=""
566 # Anweisungen fuer das Linken
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
)
580 .IF
"$(SHL3VERSIONMAP)"!=""
581 .IF
"$(DEF3EXPORTFILE)"==""
583 DEF3EXPORTFILE
=$(MISC
)/$(SHL3VERSIONMAP
:b
)_
$(SHL3TARGET
).dxp
585 $(DEF3EXPORTFILE
) : $(SHL3OBJS
) $(SHL3LIBS
)
586 .ENDIF
# .IF "$(COM)"=="GCC"
588 $(DEF3EXPORTFILE
) : $(SHL3VERSIONMAP
)
589 $(TYPE
) $< |
$(AWK
) -f
$(SOLARENV
)/bin
/getcsym.awk
> $@
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
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"
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)"!=""
616 DEF3FILTER
=$(SOLARENV
)/inc
/dummy.flt
620 .IF
"$(DEF3CEXP)"!=""
621 EXPORT_ALL_SWITCH
=-A
$(DEF3CEXP
)
624 .IF
"$(link_always)"==""
628 .ELSE
# "$(link_always)"==""
629 $(DEF3TARGETN
) .PHONY
:
630 .ENDIF
# "$(link_always)"==""
632 @echo
------------------------------
633 @echo Making Module-Definitionfile
: $@
634 @echo LIBRARY
$(EMQ
)"$(SHL3TARGETN:f)$(EMQ)" >$@.tmpfile
636 @echo HEAPSIZE
0 >>$@.tmpfile
638 @echo EXPORTS
>>$@.tmpfile
639 .IF
"$(VERSIONOBJ)"!=""
640 # getversioninfo fuer alle!!
641 @echo GetVersionInfo
>>$@.tmpfile
643 .IF
"$(DEFLIB3NAME)"!=""
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
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)"==""
661 .ENDIF
# "$(DEFLIB3NAME)"!=""
662 .IF
"$(DEF3EXPORT1)"!=""
663 @echo
$(DEF3EXPORT1
) >>$@.tmpfile
665 .IF
"$(DEF3EXPORT2)"!=""
666 @echo
$(DEF3EXPORT2
) >>$@.tmpfile
668 .IF
"$(DEF3EXPORT3)"!=""
669 @echo
$(DEF3EXPORT3
) >>$@.tmpfile
671 .IF
"$(DEF3EXPORT4)"!=""
672 @echo
$(DEF3EXPORT4
) >>$@.tmpfile
674 .IF
"$(DEF3EXPORT5)"!=""
675 @echo
$(DEF3EXPORT5
) >>$@.tmpfile
677 .IF
"$(DEF3EXPORT6)"!=""
678 @echo
$(DEF3EXPORT6
) >>$@.tmpfile
680 .IF
"$(DEF3EXPORT7)"!=""
681 @echo
$(DEF3EXPORT7
) >>$@.tmpfile
683 .IF
"$(DEF3EXPORT8)"!=""
684 @echo
$(DEF3EXPORT8
) >>$@.tmpfile
686 .IF
"$(DEF3EXPORT9)"!=""
687 @echo
$(DEF3EXPORT9
) >>$@.tmpfile
689 .IF
"$(DEF3EXPORT10)"!=""
690 @echo
$(DEF3EXPORT10
) >>$@.tmpfile
692 .IF
"$(DEF3EXPORT11)"!=""
693 @echo
$(DEF3EXPORT11
) >>$@.tmpfile
695 .IF
"$(DEF3EXPORT12)"!=""
696 @echo
$(DEF3EXPORT12
) >>$@.tmpfile
698 .IF
"$(DEF3EXPORT13)"!=""
699 @echo
$(DEF3EXPORT13
) >>$@.tmpfile
701 .IF
"$(DEF3EXPORT14)"!=""
702 @echo
$(DEF3EXPORT14
) >>$@.tmpfile
704 .IF
"$(DEF3EXPORT15)"!=""
705 @echo
$(DEF3EXPORT15
) >>$@.tmpfile
707 .IF
"$(DEF3EXPORT16)"!=""
708 @echo
$(DEF3EXPORT16
) >>$@.tmpfile
710 .IF
"$(DEF3EXPORT17)"!=""
711 @echo
$(DEF3EXPORT17
) >>$@.tmpfile
713 .IF
"$(DEF3EXPORT18)"!=""
714 @echo
$(DEF3EXPORT18
) >>$@.tmpfile
716 .IF
"$(DEF3EXPORT19)"!=""
717 @echo
$(DEF3EXPORT19
) >>$@.tmpfile
719 .IF
"$(DEF3EXPORT20)"!=""
720 @echo
$(DEF3EXPORT20
) >>$@.tmpfile
722 .IF
"$(DEF3EXPORTFILE)"!=""
724 $(TYPE
) $(DEF3EXPORTFILE
) | sed
-e s
:PRIVATE
:: >> $@.tmpfile
726 $(TYPE
) $(DEF3EXPORTFILE
) >> $@.tmpfile
730 @
$(RENAME
) $@.tmpfile
$@
731 .ENDIF
# "$(GUI)"=="WNT"
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)"==""
746 .ELSE
# "$(link_always)"==""
747 $(DEF3TARGETN
) .PHONY
:
748 .ENDIF
# "$(link_always)"==""
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
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
769 .IF
"$(DEF3EXPORT2)"!=""
770 @echo
$(DEF3EXPORT2
) >>$@.tmpfile
772 .IF
"$(DEF3EXPORT3)"!=""
773 @echo
$(DEF3EXPORT3
) >>$@.tmpfile
775 .IF
"$(DEF3EXPORT4)"!=""
776 @echo
$(DEF3EXPORT4
) >>$@.tmpfile
778 .IF
"$(DEF3EXPORT5)"!=""
779 @echo
$(DEF3EXPORT5
) >>$@.tmpfile
781 .IF
"$(DEF3EXPORT6)"!=""
782 @echo
$(DEF3EXPORT6
) >>$@.tmpfile
784 .IF
"$(DEF3EXPORT7)"!=""
785 @echo
$(DEF3EXPORT7
) >>$@.tmpfile
787 .IF
"$(DEF3EXPORT8)"!=""
788 @echo
$(DEF3EXPORT8
) >>$@.tmpfile
790 .IF
"$(DEF3EXPORT9)"!=""
791 @echo
$(DEF3EXPORT9
) >>$@.tmpfile
793 .IF
"$(DEF3EXPORT10)"!=""
794 @echo
$(DEF3EXPORT10
) >>$@.tmpfile
796 .IF
"$(DEF3EXPORT11)"!=""
797 @echo
$(DEF3EXPORT11
) >>$@.tmpfile
799 .IF
"$(DEF3EXPORT12)"!=""
800 @echo
$(DEF3EXPORT12
) >>$@.tmpfile
802 .IF
"$(DEF3EXPORT13)"!=""
803 @echo
$(DEF3EXPORT13
) >>$@.tmpfile
805 .IF
"$(DEF3EXPORT14)"!=""
806 @echo
$(DEF3EXPORT14
) >>$@.tmpfile
808 .IF
"$(DEF3EXPORT15)"!=""
809 @echo
$(DEF3EXPORT15
) >>$@.tmpfile
811 .IF
"$(DEF3EXPORT16)"!=""
812 @echo
$(DEF3EXPORT16
) >>$@.tmpfile
814 .IF
"$(DEF3EXPORT17)"!=""
815 @echo
$(DEF3EXPORT17
) >>$@.tmpfile
817 .IF
"$(DEF3EXPORT18)"!=""
818 @echo
$(DEF3EXPORT18
) >>$@.tmpfile
820 .IF
"$(DEF3EXPORT19)"!=""
821 @echo
$(DEF3EXPORT19
) >>$@.tmpfile
823 .IF
"$(DEF3EXPORT20)"!=""
824 @echo
$(DEF3EXPORT20
) >>$@.tmpfile
826 .IF
"$(DEF3EXPORTFILE)"!=""
827 @fix_def_file
< $(DEF3EXPORTFILE
) >> $@.tmp_ord
829 @
sort < $@.tmp_ord | uniq
> $@.exptmpfile
830 @fix_def_ord
< $@.exptmpfile
>> $@.tmpfile
832 +$(RENAME
) $@.tmpfile
$@
834 @
+-$(RM
) $@.exptmpfile
835 +$(IMPLIB
) $(IMPLIBFLAGS
) $(SHL3IMPLIBN
:s
/.lib
/.a
/) $@
836 +emxomf
-o
$(SHL3IMPLIBN
) $(SHL3IMPLIBN
:s
/.lib
/.a
/)
838 .ENDIF
# "$(GUI)"=="OS2"
844 @echo just a dummy for UNIX
> $@
846 .ENDIF
# "$(DEF3TARGETN)"!=""
849 # Anweisungen fuer das Linken
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
)
863 .IF
"$(SHL4VERSIONMAP)"!=""
864 .IF
"$(DEF4EXPORTFILE)"==""
866 DEF4EXPORTFILE
=$(MISC
)/$(SHL4VERSIONMAP
:b
)_
$(SHL4TARGET
).dxp
868 $(DEF4EXPORTFILE
) : $(SHL4OBJS
) $(SHL4LIBS
)
869 .ENDIF
# .IF "$(COM)"=="GCC"
871 $(DEF4EXPORTFILE
) : $(SHL4VERSIONMAP
)
872 $(TYPE
) $< |
$(AWK
) -f
$(SOLARENV
)/bin
/getcsym.awk
> $@
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
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"
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)"!=""
899 DEF4FILTER
=$(SOLARENV
)/inc
/dummy.flt
903 .IF
"$(DEF4CEXP)"!=""
904 EXPORT_ALL_SWITCH
=-A
$(DEF4CEXP
)
907 .IF
"$(link_always)"==""
911 .ELSE
# "$(link_always)"==""
912 $(DEF4TARGETN
) .PHONY
:
913 .ENDIF
# "$(link_always)"==""
915 @echo
------------------------------
916 @echo Making Module-Definitionfile
: $@
917 @echo LIBRARY
$(EMQ
)"$(SHL4TARGETN:f)$(EMQ)" >$@.tmpfile
919 @echo HEAPSIZE
0 >>$@.tmpfile
921 @echo EXPORTS
>>$@.tmpfile
922 .IF
"$(VERSIONOBJ)"!=""
923 # getversioninfo fuer alle!!
924 @echo GetVersionInfo
>>$@.tmpfile
926 .IF
"$(DEFLIB4NAME)"!=""
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
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)"==""
944 .ENDIF
# "$(DEFLIB4NAME)"!=""
945 .IF
"$(DEF4EXPORT1)"!=""
946 @echo
$(DEF4EXPORT1
) >>$@.tmpfile
948 .IF
"$(DEF4EXPORT2)"!=""
949 @echo
$(DEF4EXPORT2
) >>$@.tmpfile
951 .IF
"$(DEF4EXPORT3)"!=""
952 @echo
$(DEF4EXPORT3
) >>$@.tmpfile
954 .IF
"$(DEF4EXPORT4)"!=""
955 @echo
$(DEF4EXPORT4
) >>$@.tmpfile
957 .IF
"$(DEF4EXPORT5)"!=""
958 @echo
$(DEF4EXPORT5
) >>$@.tmpfile
960 .IF
"$(DEF4EXPORT6)"!=""
961 @echo
$(DEF4EXPORT6
) >>$@.tmpfile
963 .IF
"$(DEF4EXPORT7)"!=""
964 @echo
$(DEF4EXPORT7
) >>$@.tmpfile
966 .IF
"$(DEF4EXPORT8)"!=""
967 @echo
$(DEF4EXPORT8
) >>$@.tmpfile
969 .IF
"$(DEF4EXPORT9)"!=""
970 @echo
$(DEF4EXPORT9
) >>$@.tmpfile
972 .IF
"$(DEF4EXPORT10)"!=""
973 @echo
$(DEF4EXPORT10
) >>$@.tmpfile
975 .IF
"$(DEF4EXPORT11)"!=""
976 @echo
$(DEF4EXPORT11
) >>$@.tmpfile
978 .IF
"$(DEF4EXPORT12)"!=""
979 @echo
$(DEF4EXPORT12
) >>$@.tmpfile
981 .IF
"$(DEF4EXPORT13)"!=""
982 @echo
$(DEF4EXPORT13
) >>$@.tmpfile
984 .IF
"$(DEF4EXPORT14)"!=""
985 @echo
$(DEF4EXPORT14
) >>$@.tmpfile
987 .IF
"$(DEF4EXPORT15)"!=""
988 @echo
$(DEF4EXPORT15
) >>$@.tmpfile
990 .IF
"$(DEF4EXPORT16)"!=""
991 @echo
$(DEF4EXPORT16
) >>$@.tmpfile
993 .IF
"$(DEF4EXPORT17)"!=""
994 @echo
$(DEF4EXPORT17
) >>$@.tmpfile
996 .IF
"$(DEF4EXPORT18)"!=""
997 @echo
$(DEF4EXPORT18
) >>$@.tmpfile
999 .IF
"$(DEF4EXPORT19)"!=""
1000 @echo
$(DEF4EXPORT19
) >>$@.tmpfile
1002 .IF
"$(DEF4EXPORT20)"!=""
1003 @echo
$(DEF4EXPORT20
) >>$@.tmpfile
1005 .IF
"$(DEF4EXPORTFILE)"!=""
1007 $(TYPE
) $(DEF4EXPORTFILE
) | sed
-e s
:PRIVATE
:: >> $@.tmpfile
1009 $(TYPE
) $(DEF4EXPORTFILE
) >> $@.tmpfile
1013 @
$(RENAME
) $@.tmpfile
$@
1014 .ENDIF
# "$(GUI)"=="WNT"
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)"==""
1029 .ELSE
# "$(link_always)"==""
1030 $(DEF4TARGETN
) .PHONY
:
1031 .ENDIF
# "$(link_always)"==""
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
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
1052 .IF
"$(DEF4EXPORT2)"!=""
1053 @echo
$(DEF4EXPORT2
) >>$@.tmpfile
1055 .IF
"$(DEF4EXPORT3)"!=""
1056 @echo
$(DEF4EXPORT3
) >>$@.tmpfile
1058 .IF
"$(DEF4EXPORT4)"!=""
1059 @echo
$(DEF4EXPORT4
) >>$@.tmpfile
1061 .IF
"$(DEF4EXPORT5)"!=""
1062 @echo
$(DEF4EXPORT5
) >>$@.tmpfile
1064 .IF
"$(DEF4EXPORT6)"!=""
1065 @echo
$(DEF4EXPORT6
) >>$@.tmpfile
1067 .IF
"$(DEF4EXPORT7)"!=""
1068 @echo
$(DEF4EXPORT7
) >>$@.tmpfile
1070 .IF
"$(DEF4EXPORT8)"!=""
1071 @echo
$(DEF4EXPORT8
) >>$@.tmpfile
1073 .IF
"$(DEF4EXPORT9)"!=""
1074 @echo
$(DEF4EXPORT9
) >>$@.tmpfile
1076 .IF
"$(DEF4EXPORT10)"!=""
1077 @echo
$(DEF4EXPORT10
) >>$@.tmpfile
1079 .IF
"$(DEF4EXPORT11)"!=""
1080 @echo
$(DEF4EXPORT11
) >>$@.tmpfile
1082 .IF
"$(DEF4EXPORT12)"!=""
1083 @echo
$(DEF4EXPORT12
) >>$@.tmpfile
1085 .IF
"$(DEF4EXPORT13)"!=""
1086 @echo
$(DEF4EXPORT13
) >>$@.tmpfile
1088 .IF
"$(DEF4EXPORT14)"!=""
1089 @echo
$(DEF4EXPORT14
) >>$@.tmpfile
1091 .IF
"$(DEF4EXPORT15)"!=""
1092 @echo
$(DEF4EXPORT15
) >>$@.tmpfile
1094 .IF
"$(DEF4EXPORT16)"!=""
1095 @echo
$(DEF4EXPORT16
) >>$@.tmpfile
1097 .IF
"$(DEF4EXPORT17)"!=""
1098 @echo
$(DEF4EXPORT17
) >>$@.tmpfile
1100 .IF
"$(DEF4EXPORT18)"!=""
1101 @echo
$(DEF4EXPORT18
) >>$@.tmpfile
1103 .IF
"$(DEF4EXPORT19)"!=""
1104 @echo
$(DEF4EXPORT19
) >>$@.tmpfile
1106 .IF
"$(DEF4EXPORT20)"!=""
1107 @echo
$(DEF4EXPORT20
) >>$@.tmpfile
1109 .IF
"$(DEF4EXPORTFILE)"!=""
1110 @fix_def_file
< $(DEF4EXPORTFILE
) >> $@.tmp_ord
1112 @
sort < $@.tmp_ord | uniq
> $@.exptmpfile
1113 @fix_def_ord
< $@.exptmpfile
>> $@.tmpfile
1115 +$(RENAME
) $@.tmpfile
$@
1117 @
+-$(RM
) $@.exptmpfile
1118 +$(IMPLIB
) $(IMPLIBFLAGS
) $(SHL4IMPLIBN
:s
/.lib
/.a
/) $@
1119 +emxomf
-o
$(SHL4IMPLIBN
) $(SHL4IMPLIBN
:s
/.lib
/.a
/)
1121 .ENDIF
# "$(GUI)"=="OS2"
1127 @echo just a dummy for UNIX
> $@
1129 .ENDIF
# "$(DEF4TARGETN)"!=""
1132 # Anweisungen fuer das Linken
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
)
1146 .IF
"$(SHL5VERSIONMAP)"!=""
1147 .IF
"$(DEF5EXPORTFILE)"==""
1149 DEF5EXPORTFILE
=$(MISC
)/$(SHL5VERSIONMAP
:b
)_
$(SHL5TARGET
).dxp
1151 $(DEF5EXPORTFILE
) : $(SHL5OBJS
) $(SHL5LIBS
)
1152 .ENDIF
# .IF "$(COM)"=="GCC"
1154 $(DEF5EXPORTFILE
) : $(SHL5VERSIONMAP
)
1155 $(TYPE
) $< |
$(AWK
) -f
$(SOLARENV
)/bin
/getcsym.awk
> $@
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"
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)"!=""
1182 DEF5FILTER
=$(SOLARENV
)/inc
/dummy.flt
1186 .IF
"$(DEF5CEXP)"!=""
1187 EXPORT_ALL_SWITCH
=-A
$(DEF5CEXP
)
1190 .IF
"$(link_always)"==""
1194 .ELSE
# "$(link_always)"==""
1195 $(DEF5TARGETN
) .PHONY
:
1196 .ENDIF
# "$(link_always)"==""
1198 @echo
------------------------------
1199 @echo Making Module-Definitionfile
: $@
1200 @echo LIBRARY
$(EMQ
)"$(SHL5TARGETN:f)$(EMQ)" >$@.tmpfile
1202 @echo HEAPSIZE
0 >>$@.tmpfile
1204 @echo EXPORTS
>>$@.tmpfile
1205 .IF
"$(VERSIONOBJ)"!=""
1206 # getversioninfo fuer alle!!
1207 @echo GetVersionInfo
>>$@.tmpfile
1209 .IF
"$(DEFLIB5NAME)"!=""
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
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)"==""
1227 .ENDIF
# "$(DEFLIB5NAME)"!=""
1228 .IF
"$(DEF5EXPORT1)"!=""
1229 @echo
$(DEF5EXPORT1
) >>$@.tmpfile
1231 .IF
"$(DEF5EXPORT2)"!=""
1232 @echo
$(DEF5EXPORT2
) >>$@.tmpfile
1234 .IF
"$(DEF5EXPORT3)"!=""
1235 @echo
$(DEF5EXPORT3
) >>$@.tmpfile
1237 .IF
"$(DEF5EXPORT4)"!=""
1238 @echo
$(DEF5EXPORT4
) >>$@.tmpfile
1240 .IF
"$(DEF5EXPORT5)"!=""
1241 @echo
$(DEF5EXPORT5
) >>$@.tmpfile
1243 .IF
"$(DEF5EXPORT6)"!=""
1244 @echo
$(DEF5EXPORT6
) >>$@.tmpfile
1246 .IF
"$(DEF5EXPORT7)"!=""
1247 @echo
$(DEF5EXPORT7
) >>$@.tmpfile
1249 .IF
"$(DEF5EXPORT8)"!=""
1250 @echo
$(DEF5EXPORT8
) >>$@.tmpfile
1252 .IF
"$(DEF5EXPORT9)"!=""
1253 @echo
$(DEF5EXPORT9
) >>$@.tmpfile
1255 .IF
"$(DEF5EXPORT10)"!=""
1256 @echo
$(DEF5EXPORT10
) >>$@.tmpfile
1258 .IF
"$(DEF5EXPORT11)"!=""
1259 @echo
$(DEF5EXPORT11
) >>$@.tmpfile
1261 .IF
"$(DEF5EXPORT12)"!=""
1262 @echo
$(DEF5EXPORT12
) >>$@.tmpfile
1264 .IF
"$(DEF5EXPORT13)"!=""
1265 @echo
$(DEF5EXPORT13
) >>$@.tmpfile
1267 .IF
"$(DEF5EXPORT14)"!=""
1268 @echo
$(DEF5EXPORT14
) >>$@.tmpfile
1270 .IF
"$(DEF5EXPORT15)"!=""
1271 @echo
$(DEF5EXPORT15
) >>$@.tmpfile
1273 .IF
"$(DEF5EXPORT16)"!=""
1274 @echo
$(DEF5EXPORT16
) >>$@.tmpfile
1276 .IF
"$(DEF5EXPORT17)"!=""
1277 @echo
$(DEF5EXPORT17
) >>$@.tmpfile
1279 .IF
"$(DEF5EXPORT18)"!=""
1280 @echo
$(DEF5EXPORT18
) >>$@.tmpfile
1282 .IF
"$(DEF5EXPORT19)"!=""
1283 @echo
$(DEF5EXPORT19
) >>$@.tmpfile
1285 .IF
"$(DEF5EXPORT20)"!=""
1286 @echo
$(DEF5EXPORT20
) >>$@.tmpfile
1288 .IF
"$(DEF5EXPORTFILE)"!=""
1290 $(TYPE
) $(DEF5EXPORTFILE
) | sed
-e s
:PRIVATE
:: >> $@.tmpfile
1292 $(TYPE
) $(DEF5EXPORTFILE
) >> $@.tmpfile
1296 @
$(RENAME
) $@.tmpfile
$@
1297 .ENDIF
# "$(GUI)"=="WNT"
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)"==""
1312 .ELSE
# "$(link_always)"==""
1313 $(DEF5TARGETN
) .PHONY
:
1314 .ENDIF
# "$(link_always)"==""
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
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
1335 .IF
"$(DEF5EXPORT2)"!=""
1336 @echo
$(DEF5EXPORT2
) >>$@.tmpfile
1338 .IF
"$(DEF5EXPORT3)"!=""
1339 @echo
$(DEF5EXPORT3
) >>$@.tmpfile
1341 .IF
"$(DEF5EXPORT4)"!=""
1342 @echo
$(DEF5EXPORT4
) >>$@.tmpfile
1344 .IF
"$(DEF5EXPORT5)"!=""
1345 @echo
$(DEF5EXPORT5
) >>$@.tmpfile
1347 .IF
"$(DEF5EXPORT6)"!=""
1348 @echo
$(DEF5EXPORT6
) >>$@.tmpfile
1350 .IF
"$(DEF5EXPORT7)"!=""
1351 @echo
$(DEF5EXPORT7
) >>$@.tmpfile
1353 .IF
"$(DEF5EXPORT8)"!=""
1354 @echo
$(DEF5EXPORT8
) >>$@.tmpfile
1356 .IF
"$(DEF5EXPORT9)"!=""
1357 @echo
$(DEF5EXPORT9
) >>$@.tmpfile
1359 .IF
"$(DEF5EXPORT10)"!=""
1360 @echo
$(DEF5EXPORT10
) >>$@.tmpfile
1362 .IF
"$(DEF5EXPORT11)"!=""
1363 @echo
$(DEF5EXPORT11
) >>$@.tmpfile
1365 .IF
"$(DEF5EXPORT12)"!=""
1366 @echo
$(DEF5EXPORT12
) >>$@.tmpfile
1368 .IF
"$(DEF5EXPORT13)"!=""
1369 @echo
$(DEF5EXPORT13
) >>$@.tmpfile
1371 .IF
"$(DEF5EXPORT14)"!=""
1372 @echo
$(DEF5EXPORT14
) >>$@.tmpfile
1374 .IF
"$(DEF5EXPORT15)"!=""
1375 @echo
$(DEF5EXPORT15
) >>$@.tmpfile
1377 .IF
"$(DEF5EXPORT16)"!=""
1378 @echo
$(DEF5EXPORT16
) >>$@.tmpfile
1380 .IF
"$(DEF5EXPORT17)"!=""
1381 @echo
$(DEF5EXPORT17
) >>$@.tmpfile
1383 .IF
"$(DEF5EXPORT18)"!=""
1384 @echo
$(DEF5EXPORT18
) >>$@.tmpfile
1386 .IF
"$(DEF5EXPORT19)"!=""
1387 @echo
$(DEF5EXPORT19
) >>$@.tmpfile
1389 .IF
"$(DEF5EXPORT20)"!=""
1390 @echo
$(DEF5EXPORT20
) >>$@.tmpfile
1392 .IF
"$(DEF5EXPORTFILE)"!=""
1393 @fix_def_file
< $(DEF5EXPORTFILE
) >> $@.tmp_ord
1395 @
sort < $@.tmp_ord | uniq
> $@.exptmpfile
1396 @fix_def_ord
< $@.exptmpfile
>> $@.tmpfile
1398 +$(RENAME
) $@.tmpfile
$@
1400 @
+-$(RM
) $@.exptmpfile
1401 +$(IMPLIB
) $(IMPLIBFLAGS
) $(SHL5IMPLIBN
:s
/.lib
/.a
/) $@
1402 +emxomf
-o
$(SHL5IMPLIBN
) $(SHL5IMPLIBN
:s
/.lib
/.a
/)
1404 .ENDIF
# "$(GUI)"=="OS2"
1410 @echo just a dummy for UNIX
> $@
1412 .ENDIF
# "$(DEF5TARGETN)"!=""
1415 # Anweisungen fuer das Linken
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
)
1429 .IF
"$(SHL6VERSIONMAP)"!=""
1430 .IF
"$(DEF6EXPORTFILE)"==""
1432 DEF6EXPORTFILE
=$(MISC
)/$(SHL6VERSIONMAP
:b
)_
$(SHL6TARGET
).dxp
1434 $(DEF6EXPORTFILE
) : $(SHL6OBJS
) $(SHL6LIBS
)
1435 .ENDIF
# .IF "$(COM)"=="GCC"
1437 $(DEF6EXPORTFILE
) : $(SHL6VERSIONMAP
)
1438 $(TYPE
) $< |
$(AWK
) -f
$(SOLARENV
)/bin
/getcsym.awk
> $@
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"
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)"!=""
1465 DEF6FILTER
=$(SOLARENV
)/inc
/dummy.flt
1469 .IF
"$(DEF6CEXP)"!=""
1470 EXPORT_ALL_SWITCH
=-A
$(DEF6CEXP
)
1473 .IF
"$(link_always)"==""
1477 .ELSE
# "$(link_always)"==""
1478 $(DEF6TARGETN
) .PHONY
:
1479 .ENDIF
# "$(link_always)"==""
1481 @echo
------------------------------
1482 @echo Making Module-Definitionfile
: $@
1483 @echo LIBRARY
$(EMQ
)"$(SHL6TARGETN:f)$(EMQ)" >$@.tmpfile
1485 @echo HEAPSIZE
0 >>$@.tmpfile
1487 @echo EXPORTS
>>$@.tmpfile
1488 .IF
"$(VERSIONOBJ)"!=""
1489 # getversioninfo fuer alle!!
1490 @echo GetVersionInfo
>>$@.tmpfile
1492 .IF
"$(DEFLIB6NAME)"!=""
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
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)"==""
1510 .ENDIF
# "$(DEFLIB6NAME)"!=""
1511 .IF
"$(DEF6EXPORT1)"!=""
1512 @echo
$(DEF6EXPORT1
) >>$@.tmpfile
1514 .IF
"$(DEF6EXPORT2)"!=""
1515 @echo
$(DEF6EXPORT2
) >>$@.tmpfile
1517 .IF
"$(DEF6EXPORT3)"!=""
1518 @echo
$(DEF6EXPORT3
) >>$@.tmpfile
1520 .IF
"$(DEF6EXPORT4)"!=""
1521 @echo
$(DEF6EXPORT4
) >>$@.tmpfile
1523 .IF
"$(DEF6EXPORT5)"!=""
1524 @echo
$(DEF6EXPORT5
) >>$@.tmpfile
1526 .IF
"$(DEF6EXPORT6)"!=""
1527 @echo
$(DEF6EXPORT6
) >>$@.tmpfile
1529 .IF
"$(DEF6EXPORT7)"!=""
1530 @echo
$(DEF6EXPORT7
) >>$@.tmpfile
1532 .IF
"$(DEF6EXPORT8)"!=""
1533 @echo
$(DEF6EXPORT8
) >>$@.tmpfile
1535 .IF
"$(DEF6EXPORT9)"!=""
1536 @echo
$(DEF6EXPORT9
) >>$@.tmpfile
1538 .IF
"$(DEF6EXPORT10)"!=""
1539 @echo
$(DEF6EXPORT10
) >>$@.tmpfile
1541 .IF
"$(DEF6EXPORT11)"!=""
1542 @echo
$(DEF6EXPORT11
) >>$@.tmpfile
1544 .IF
"$(DEF6EXPORT12)"!=""
1545 @echo
$(DEF6EXPORT12
) >>$@.tmpfile
1547 .IF
"$(DEF6EXPORT13)"!=""
1548 @echo
$(DEF6EXPORT13
) >>$@.tmpfile
1550 .IF
"$(DEF6EXPORT14)"!=""
1551 @echo
$(DEF6EXPORT14
) >>$@.tmpfile
1553 .IF
"$(DEF6EXPORT15)"!=""
1554 @echo
$(DEF6EXPORT15
) >>$@.tmpfile
1556 .IF
"$(DEF6EXPORT16)"!=""
1557 @echo
$(DEF6EXPORT16
) >>$@.tmpfile
1559 .IF
"$(DEF6EXPORT17)"!=""
1560 @echo
$(DEF6EXPORT17
) >>$@.tmpfile
1562 .IF
"$(DEF6EXPORT18)"!=""
1563 @echo
$(DEF6EXPORT18
) >>$@.tmpfile
1565 .IF
"$(DEF6EXPORT19)"!=""
1566 @echo
$(DEF6EXPORT19
) >>$@.tmpfile
1568 .IF
"$(DEF6EXPORT20)"!=""
1569 @echo
$(DEF6EXPORT20
) >>$@.tmpfile
1571 .IF
"$(DEF6EXPORTFILE)"!=""
1573 $(TYPE
) $(DEF6EXPORTFILE
) | sed
-e s
:PRIVATE
:: >> $@.tmpfile
1575 $(TYPE
) $(DEF6EXPORTFILE
) >> $@.tmpfile
1579 @
$(RENAME
) $@.tmpfile
$@
1580 .ENDIF
# "$(GUI)"=="WNT"
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)"==""
1595 .ELSE
# "$(link_always)"==""
1596 $(DEF6TARGETN
) .PHONY
:
1597 .ENDIF
# "$(link_always)"==""
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
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
1618 .IF
"$(DEF6EXPORT2)"!=""
1619 @echo
$(DEF6EXPORT2
) >>$@.tmpfile
1621 .IF
"$(DEF6EXPORT3)"!=""
1622 @echo
$(DEF6EXPORT3
) >>$@.tmpfile
1624 .IF
"$(DEF6EXPORT4)"!=""
1625 @echo
$(DEF6EXPORT4
) >>$@.tmpfile
1627 .IF
"$(DEF6EXPORT5)"!=""
1628 @echo
$(DEF6EXPORT5
) >>$@.tmpfile
1630 .IF
"$(DEF6EXPORT6)"!=""
1631 @echo
$(DEF6EXPORT6
) >>$@.tmpfile
1633 .IF
"$(DEF6EXPORT7)"!=""
1634 @echo
$(DEF6EXPORT7
) >>$@.tmpfile
1636 .IF
"$(DEF6EXPORT8)"!=""
1637 @echo
$(DEF6EXPORT8
) >>$@.tmpfile
1639 .IF
"$(DEF6EXPORT9)"!=""
1640 @echo
$(DEF6EXPORT9
) >>$@.tmpfile
1642 .IF
"$(DEF6EXPORT10)"!=""
1643 @echo
$(DEF6EXPORT10
) >>$@.tmpfile
1645 .IF
"$(DEF6EXPORT11)"!=""
1646 @echo
$(DEF6EXPORT11
) >>$@.tmpfile
1648 .IF
"$(DEF6EXPORT12)"!=""
1649 @echo
$(DEF6EXPORT12
) >>$@.tmpfile
1651 .IF
"$(DEF6EXPORT13)"!=""
1652 @echo
$(DEF6EXPORT13
) >>$@.tmpfile
1654 .IF
"$(DEF6EXPORT14)"!=""
1655 @echo
$(DEF6EXPORT14
) >>$@.tmpfile
1657 .IF
"$(DEF6EXPORT15)"!=""
1658 @echo
$(DEF6EXPORT15
) >>$@.tmpfile
1660 .IF
"$(DEF6EXPORT16)"!=""
1661 @echo
$(DEF6EXPORT16
) >>$@.tmpfile
1663 .IF
"$(DEF6EXPORT17)"!=""
1664 @echo
$(DEF6EXPORT17
) >>$@.tmpfile
1666 .IF
"$(DEF6EXPORT18)"!=""
1667 @echo
$(DEF6EXPORT18
) >>$@.tmpfile
1669 .IF
"$(DEF6EXPORT19)"!=""
1670 @echo
$(DEF6EXPORT19
) >>$@.tmpfile
1672 .IF
"$(DEF6EXPORT20)"!=""
1673 @echo
$(DEF6EXPORT20
) >>$@.tmpfile
1675 .IF
"$(DEF6EXPORTFILE)"!=""
1676 @fix_def_file
< $(DEF6EXPORTFILE
) >> $@.tmp_ord
1678 @
sort < $@.tmp_ord | uniq
> $@.exptmpfile
1679 @fix_def_ord
< $@.exptmpfile
>> $@.tmpfile
1681 +$(RENAME
) $@.tmpfile
$@
1683 @
+-$(RM
) $@.exptmpfile
1684 +$(IMPLIB
) $(IMPLIBFLAGS
) $(SHL6IMPLIBN
:s
/.lib
/.a
/) $@
1685 +emxomf
-o
$(SHL6IMPLIBN
) $(SHL6IMPLIBN
:s
/.lib
/.a
/)
1687 .ENDIF
# "$(GUI)"=="OS2"
1693 @echo just a dummy for UNIX
> $@
1695 .ENDIF
# "$(DEF6TARGETN)"!=""
1698 # Anweisungen fuer das Linken
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
)
1712 .IF
"$(SHL7VERSIONMAP)"!=""
1713 .IF
"$(DEF7EXPORTFILE)"==""
1715 DEF7EXPORTFILE
=$(MISC
)/$(SHL7VERSIONMAP
:b
)_
$(SHL7TARGET
).dxp
1717 $(DEF7EXPORTFILE
) : $(SHL7OBJS
) $(SHL7LIBS
)
1718 .ENDIF
# .IF "$(COM)"=="GCC"
1720 $(DEF7EXPORTFILE
) : $(SHL7VERSIONMAP
)
1721 $(TYPE
) $< |
$(AWK
) -f
$(SOLARENV
)/bin
/getcsym.awk
> $@
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"
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)"!=""
1748 DEF7FILTER
=$(SOLARENV
)/inc
/dummy.flt
1752 .IF
"$(DEF7CEXP)"!=""
1753 EXPORT_ALL_SWITCH
=-A
$(DEF7CEXP
)
1756 .IF
"$(link_always)"==""
1760 .ELSE
# "$(link_always)"==""
1761 $(DEF7TARGETN
) .PHONY
:
1762 .ENDIF
# "$(link_always)"==""
1764 @echo
------------------------------
1765 @echo Making Module-Definitionfile
: $@
1766 @echo LIBRARY
$(EMQ
)"$(SHL7TARGETN:f)$(EMQ)" >$@.tmpfile
1768 @echo HEAPSIZE
0 >>$@.tmpfile
1770 @echo EXPORTS
>>$@.tmpfile
1771 .IF
"$(VERSIONOBJ)"!=""
1772 # getversioninfo fuer alle!!
1773 @echo GetVersionInfo
>>$@.tmpfile
1775 .IF
"$(DEFLIB7NAME)"!=""
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
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)"==""
1793 .ENDIF
# "$(DEFLIB7NAME)"!=""
1794 .IF
"$(DEF7EXPORT1)"!=""
1795 @echo
$(DEF7EXPORT1
) >>$@.tmpfile
1797 .IF
"$(DEF7EXPORT2)"!=""
1798 @echo
$(DEF7EXPORT2
) >>$@.tmpfile
1800 .IF
"$(DEF7EXPORT3)"!=""
1801 @echo
$(DEF7EXPORT3
) >>$@.tmpfile
1803 .IF
"$(DEF7EXPORT4)"!=""
1804 @echo
$(DEF7EXPORT4
) >>$@.tmpfile
1806 .IF
"$(DEF7EXPORT5)"!=""
1807 @echo
$(DEF7EXPORT5
) >>$@.tmpfile
1809 .IF
"$(DEF7EXPORT6)"!=""
1810 @echo
$(DEF7EXPORT6
) >>$@.tmpfile
1812 .IF
"$(DEF7EXPORT7)"!=""
1813 @echo
$(DEF7EXPORT7
) >>$@.tmpfile
1815 .IF
"$(DEF7EXPORT8)"!=""
1816 @echo
$(DEF7EXPORT8
) >>$@.tmpfile
1818 .IF
"$(DEF7EXPORT9)"!=""
1819 @echo
$(DEF7EXPORT9
) >>$@.tmpfile
1821 .IF
"$(DEF7EXPORT10)"!=""
1822 @echo
$(DEF7EXPORT10
) >>$@.tmpfile
1824 .IF
"$(DEF7EXPORT11)"!=""
1825 @echo
$(DEF7EXPORT11
) >>$@.tmpfile
1827 .IF
"$(DEF7EXPORT12)"!=""
1828 @echo
$(DEF7EXPORT12
) >>$@.tmpfile
1830 .IF
"$(DEF7EXPORT13)"!=""
1831 @echo
$(DEF7EXPORT13
) >>$@.tmpfile
1833 .IF
"$(DEF7EXPORT14)"!=""
1834 @echo
$(DEF7EXPORT14
) >>$@.tmpfile
1836 .IF
"$(DEF7EXPORT15)"!=""
1837 @echo
$(DEF7EXPORT15
) >>$@.tmpfile
1839 .IF
"$(DEF7EXPORT16)"!=""
1840 @echo
$(DEF7EXPORT16
) >>$@.tmpfile
1842 .IF
"$(DEF7EXPORT17)"!=""
1843 @echo
$(DEF7EXPORT17
) >>$@.tmpfile
1845 .IF
"$(DEF7EXPORT18)"!=""
1846 @echo
$(DEF7EXPORT18
) >>$@.tmpfile
1848 .IF
"$(DEF7EXPORT19)"!=""
1849 @echo
$(DEF7EXPORT19
) >>$@.tmpfile
1851 .IF
"$(DEF7EXPORT20)"!=""
1852 @echo
$(DEF7EXPORT20
) >>$@.tmpfile
1854 .IF
"$(DEF7EXPORTFILE)"!=""
1856 $(TYPE
) $(DEF7EXPORTFILE
) | sed
-e s
:PRIVATE
:: >> $@.tmpfile
1858 $(TYPE
) $(DEF7EXPORTFILE
) >> $@.tmpfile
1862 @
$(RENAME
) $@.tmpfile
$@
1863 .ENDIF
# "$(GUI)"=="WNT"
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)"==""
1878 .ELSE
# "$(link_always)"==""
1879 $(DEF7TARGETN
) .PHONY
:
1880 .ENDIF
# "$(link_always)"==""
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
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
1901 .IF
"$(DEF7EXPORT2)"!=""
1902 @echo
$(DEF7EXPORT2
) >>$@.tmpfile
1904 .IF
"$(DEF7EXPORT3)"!=""
1905 @echo
$(DEF7EXPORT3
) >>$@.tmpfile
1907 .IF
"$(DEF7EXPORT4)"!=""
1908 @echo
$(DEF7EXPORT4
) >>$@.tmpfile
1910 .IF
"$(DEF7EXPORT5)"!=""
1911 @echo
$(DEF7EXPORT5
) >>$@.tmpfile
1913 .IF
"$(DEF7EXPORT6)"!=""
1914 @echo
$(DEF7EXPORT6
) >>$@.tmpfile
1916 .IF
"$(DEF7EXPORT7)"!=""
1917 @echo
$(DEF7EXPORT7
) >>$@.tmpfile
1919 .IF
"$(DEF7EXPORT8)"!=""
1920 @echo
$(DEF7EXPORT8
) >>$@.tmpfile
1922 .IF
"$(DEF7EXPORT9)"!=""
1923 @echo
$(DEF7EXPORT9
) >>$@.tmpfile
1925 .IF
"$(DEF7EXPORT10)"!=""
1926 @echo
$(DEF7EXPORT10
) >>$@.tmpfile
1928 .IF
"$(DEF7EXPORT11)"!=""
1929 @echo
$(DEF7EXPORT11
) >>$@.tmpfile
1931 .IF
"$(DEF7EXPORT12)"!=""
1932 @echo
$(DEF7EXPORT12
) >>$@.tmpfile
1934 .IF
"$(DEF7EXPORT13)"!=""
1935 @echo
$(DEF7EXPORT13
) >>$@.tmpfile
1937 .IF
"$(DEF7EXPORT14)"!=""
1938 @echo
$(DEF7EXPORT14
) >>$@.tmpfile
1940 .IF
"$(DEF7EXPORT15)"!=""
1941 @echo
$(DEF7EXPORT15
) >>$@.tmpfile
1943 .IF
"$(DEF7EXPORT16)"!=""
1944 @echo
$(DEF7EXPORT16
) >>$@.tmpfile
1946 .IF
"$(DEF7EXPORT17)"!=""
1947 @echo
$(DEF7EXPORT17
) >>$@.tmpfile
1949 .IF
"$(DEF7EXPORT18)"!=""
1950 @echo
$(DEF7EXPORT18
) >>$@.tmpfile
1952 .IF
"$(DEF7EXPORT19)"!=""
1953 @echo
$(DEF7EXPORT19
) >>$@.tmpfile
1955 .IF
"$(DEF7EXPORT20)"!=""
1956 @echo
$(DEF7EXPORT20
) >>$@.tmpfile
1958 .IF
"$(DEF7EXPORTFILE)"!=""
1959 @fix_def_file
< $(DEF7EXPORTFILE
) >> $@.tmp_ord
1961 @
sort < $@.tmp_ord | uniq
> $@.exptmpfile
1962 @fix_def_ord
< $@.exptmpfile
>> $@.tmpfile
1964 +$(RENAME
) $@.tmpfile
$@
1966 @
+-$(RM
) $@.exptmpfile
1967 +$(IMPLIB
) $(IMPLIBFLAGS
) $(SHL7IMPLIBN
:s
/.lib
/.a
/) $@
1968 +emxomf
-o
$(SHL7IMPLIBN
) $(SHL7IMPLIBN
:s
/.lib
/.a
/)
1970 .ENDIF
# "$(GUI)"=="OS2"
1976 @echo just a dummy for UNIX
> $@
1978 .ENDIF
# "$(DEF7TARGETN)"!=""
1981 # Anweisungen fuer das Linken
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
)
1995 .IF
"$(SHL8VERSIONMAP)"!=""
1996 .IF
"$(DEF8EXPORTFILE)"==""
1998 DEF8EXPORTFILE
=$(MISC
)/$(SHL8VERSIONMAP
:b
)_
$(SHL8TARGET
).dxp
2000 $(DEF8EXPORTFILE
) : $(SHL8OBJS
) $(SHL8LIBS
)
2001 .ENDIF
# .IF "$(COM)"=="GCC"
2003 $(DEF8EXPORTFILE
) : $(SHL8VERSIONMAP
)
2004 $(TYPE
) $< |
$(AWK
) -f
$(SOLARENV
)/bin
/getcsym.awk
> $@
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"
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)"!=""
2031 DEF8FILTER
=$(SOLARENV
)/inc
/dummy.flt
2035 .IF
"$(DEF8CEXP)"!=""
2036 EXPORT_ALL_SWITCH
=-A
$(DEF8CEXP
)
2039 .IF
"$(link_always)"==""
2043 .ELSE
# "$(link_always)"==""
2044 $(DEF8TARGETN
) .PHONY
:
2045 .ENDIF
# "$(link_always)"==""
2047 @echo
------------------------------
2048 @echo Making Module-Definitionfile
: $@
2049 @echo LIBRARY
$(EMQ
)"$(SHL8TARGETN:f)$(EMQ)" >$@.tmpfile
2051 @echo HEAPSIZE
0 >>$@.tmpfile
2053 @echo EXPORTS
>>$@.tmpfile
2054 .IF
"$(VERSIONOBJ)"!=""
2055 # getversioninfo fuer alle!!
2056 @echo GetVersionInfo
>>$@.tmpfile
2058 .IF
"$(DEFLIB8NAME)"!=""
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
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)"==""
2076 .ENDIF
# "$(DEFLIB8NAME)"!=""
2077 .IF
"$(DEF8EXPORT1)"!=""
2078 @echo
$(DEF8EXPORT1
) >>$@.tmpfile
2080 .IF
"$(DEF8EXPORT2)"!=""
2081 @echo
$(DEF8EXPORT2
) >>$@.tmpfile
2083 .IF
"$(DEF8EXPORT3)"!=""
2084 @echo
$(DEF8EXPORT3
) >>$@.tmpfile
2086 .IF
"$(DEF8EXPORT4)"!=""
2087 @echo
$(DEF8EXPORT4
) >>$@.tmpfile
2089 .IF
"$(DEF8EXPORT5)"!=""
2090 @echo
$(DEF8EXPORT5
) >>$@.tmpfile
2092 .IF
"$(DEF8EXPORT6)"!=""
2093 @echo
$(DEF8EXPORT6
) >>$@.tmpfile
2095 .IF
"$(DEF8EXPORT7)"!=""
2096 @echo
$(DEF8EXPORT7
) >>$@.tmpfile
2098 .IF
"$(DEF8EXPORT8)"!=""
2099 @echo
$(DEF8EXPORT8
) >>$@.tmpfile
2101 .IF
"$(DEF8EXPORT9)"!=""
2102 @echo
$(DEF8EXPORT9
) >>$@.tmpfile
2104 .IF
"$(DEF8EXPORT10)"!=""
2105 @echo
$(DEF8EXPORT10
) >>$@.tmpfile
2107 .IF
"$(DEF8EXPORT11)"!=""
2108 @echo
$(DEF8EXPORT11
) >>$@.tmpfile
2110 .IF
"$(DEF8EXPORT12)"!=""
2111 @echo
$(DEF8EXPORT12
) >>$@.tmpfile
2113 .IF
"$(DEF8EXPORT13)"!=""
2114 @echo
$(DEF8EXPORT13
) >>$@.tmpfile
2116 .IF
"$(DEF8EXPORT14)"!=""
2117 @echo
$(DEF8EXPORT14
) >>$@.tmpfile
2119 .IF
"$(DEF8EXPORT15)"!=""
2120 @echo
$(DEF8EXPORT15
) >>$@.tmpfile
2122 .IF
"$(DEF8EXPORT16)"!=""
2123 @echo
$(DEF8EXPORT16
) >>$@.tmpfile
2125 .IF
"$(DEF8EXPORT17)"!=""
2126 @echo
$(DEF8EXPORT17
) >>$@.tmpfile
2128 .IF
"$(DEF8EXPORT18)"!=""
2129 @echo
$(DEF8EXPORT18
) >>$@.tmpfile
2131 .IF
"$(DEF8EXPORT19)"!=""
2132 @echo
$(DEF8EXPORT19
) >>$@.tmpfile
2134 .IF
"$(DEF8EXPORT20)"!=""
2135 @echo
$(DEF8EXPORT20
) >>$@.tmpfile
2137 .IF
"$(DEF8EXPORTFILE)"!=""
2139 $(TYPE
) $(DEF8EXPORTFILE
) | sed
-e s
:PRIVATE
:: >> $@.tmpfile
2141 $(TYPE
) $(DEF8EXPORTFILE
) >> $@.tmpfile
2145 @
$(RENAME
) $@.tmpfile
$@
2146 .ENDIF
# "$(GUI)"=="WNT"
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)"==""
2161 .ELSE
# "$(link_always)"==""
2162 $(DEF8TARGETN
) .PHONY
:
2163 .ENDIF
# "$(link_always)"==""
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
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
2184 .IF
"$(DEF8EXPORT2)"!=""
2185 @echo
$(DEF8EXPORT2
) >>$@.tmpfile
2187 .IF
"$(DEF8EXPORT3)"!=""
2188 @echo
$(DEF8EXPORT3
) >>$@.tmpfile
2190 .IF
"$(DEF8EXPORT4)"!=""
2191 @echo
$(DEF8EXPORT4
) >>$@.tmpfile
2193 .IF
"$(DEF8EXPORT5)"!=""
2194 @echo
$(DEF8EXPORT5
) >>$@.tmpfile
2196 .IF
"$(DEF8EXPORT6)"!=""
2197 @echo
$(DEF8EXPORT6
) >>$@.tmpfile
2199 .IF
"$(DEF8EXPORT7)"!=""
2200 @echo
$(DEF8EXPORT7
) >>$@.tmpfile
2202 .IF
"$(DEF8EXPORT8)"!=""
2203 @echo
$(DEF8EXPORT8
) >>$@.tmpfile
2205 .IF
"$(DEF8EXPORT9)"!=""
2206 @echo
$(DEF8EXPORT9
) >>$@.tmpfile
2208 .IF
"$(DEF8EXPORT10)"!=""
2209 @echo
$(DEF8EXPORT10
) >>$@.tmpfile
2211 .IF
"$(DEF8EXPORT11)"!=""
2212 @echo
$(DEF8EXPORT11
) >>$@.tmpfile
2214 .IF
"$(DEF8EXPORT12)"!=""
2215 @echo
$(DEF8EXPORT12
) >>$@.tmpfile
2217 .IF
"$(DEF8EXPORT13)"!=""
2218 @echo
$(DEF8EXPORT13
) >>$@.tmpfile
2220 .IF
"$(DEF8EXPORT14)"!=""
2221 @echo
$(DEF8EXPORT14
) >>$@.tmpfile
2223 .IF
"$(DEF8EXPORT15)"!=""
2224 @echo
$(DEF8EXPORT15
) >>$@.tmpfile
2226 .IF
"$(DEF8EXPORT16)"!=""
2227 @echo
$(DEF8EXPORT16
) >>$@.tmpfile
2229 .IF
"$(DEF8EXPORT17)"!=""
2230 @echo
$(DEF8EXPORT17
) >>$@.tmpfile
2232 .IF
"$(DEF8EXPORT18)"!=""
2233 @echo
$(DEF8EXPORT18
) >>$@.tmpfile
2235 .IF
"$(DEF8EXPORT19)"!=""
2236 @echo
$(DEF8EXPORT19
) >>$@.tmpfile
2238 .IF
"$(DEF8EXPORT20)"!=""
2239 @echo
$(DEF8EXPORT20
) >>$@.tmpfile
2241 .IF
"$(DEF8EXPORTFILE)"!=""
2242 @fix_def_file
< $(DEF8EXPORTFILE
) >> $@.tmp_ord
2244 @
sort < $@.tmp_ord | uniq
> $@.exptmpfile
2245 @fix_def_ord
< $@.exptmpfile
>> $@.tmpfile
2247 +$(RENAME
) $@.tmpfile
$@
2249 @
+-$(RM
) $@.exptmpfile
2250 +$(IMPLIB
) $(IMPLIBFLAGS
) $(SHL8IMPLIBN
:s
/.lib
/.a
/) $@
2251 +emxomf
-o
$(SHL8IMPLIBN
) $(SHL8IMPLIBN
:s
/.lib
/.a
/)
2253 .ENDIF
# "$(GUI)"=="OS2"
2259 @echo just a dummy for UNIX
> $@
2261 .ENDIF
# "$(DEF8TARGETN)"!=""
2264 # Anweisungen fuer das Linken
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
)
2278 .IF
"$(SHL9VERSIONMAP)"!=""
2279 .IF
"$(DEF9EXPORTFILE)"==""
2281 DEF9EXPORTFILE
=$(MISC
)/$(SHL9VERSIONMAP
:b
)_
$(SHL9TARGET
).dxp
2283 $(DEF9EXPORTFILE
) : $(SHL9OBJS
) $(SHL9LIBS
)
2284 .ENDIF
# .IF "$(COM)"=="GCC"
2286 $(DEF9EXPORTFILE
) : $(SHL9VERSIONMAP
)
2287 $(TYPE
) $< |
$(AWK
) -f
$(SOLARENV
)/bin
/getcsym.awk
> $@
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"
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)"!=""
2314 DEF9FILTER
=$(SOLARENV
)/inc
/dummy.flt
2318 .IF
"$(DEF9CEXP)"!=""
2319 EXPORT_ALL_SWITCH
=-A
$(DEF9CEXP
)
2322 .IF
"$(link_always)"==""
2326 .ELSE
# "$(link_always)"==""
2327 $(DEF9TARGETN
) .PHONY
:
2328 .ENDIF
# "$(link_always)"==""
2330 @echo
------------------------------
2331 @echo Making Module-Definitionfile
: $@
2332 @echo LIBRARY
$(EMQ
)"$(SHL9TARGETN:f)$(EMQ)" >$@.tmpfile
2334 @echo HEAPSIZE
0 >>$@.tmpfile
2336 @echo EXPORTS
>>$@.tmpfile
2337 .IF
"$(VERSIONOBJ)"!=""
2338 # getversioninfo fuer alle!!
2339 @echo GetVersionInfo
>>$@.tmpfile
2341 .IF
"$(DEFLIB9NAME)"!=""
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
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)"==""
2359 .ENDIF
# "$(DEFLIB9NAME)"!=""
2360 .IF
"$(DEF9EXPORT1)"!=""
2361 @echo
$(DEF9EXPORT1
) >>$@.tmpfile
2363 .IF
"$(DEF9EXPORT2)"!=""
2364 @echo
$(DEF9EXPORT2
) >>$@.tmpfile
2366 .IF
"$(DEF9EXPORT3)"!=""
2367 @echo
$(DEF9EXPORT3
) >>$@.tmpfile
2369 .IF
"$(DEF9EXPORT4)"!=""
2370 @echo
$(DEF9EXPORT4
) >>$@.tmpfile
2372 .IF
"$(DEF9EXPORT5)"!=""
2373 @echo
$(DEF9EXPORT5
) >>$@.tmpfile
2375 .IF
"$(DEF9EXPORT6)"!=""
2376 @echo
$(DEF9EXPORT6
) >>$@.tmpfile
2378 .IF
"$(DEF9EXPORT7)"!=""
2379 @echo
$(DEF9EXPORT7
) >>$@.tmpfile
2381 .IF
"$(DEF9EXPORT8)"!=""
2382 @echo
$(DEF9EXPORT8
) >>$@.tmpfile
2384 .IF
"$(DEF9EXPORT9)"!=""
2385 @echo
$(DEF9EXPORT9
) >>$@.tmpfile
2387 .IF
"$(DEF9EXPORT10)"!=""
2388 @echo
$(DEF9EXPORT10
) >>$@.tmpfile
2390 .IF
"$(DEF9EXPORT11)"!=""
2391 @echo
$(DEF9EXPORT11
) >>$@.tmpfile
2393 .IF
"$(DEF9EXPORT12)"!=""
2394 @echo
$(DEF9EXPORT12
) >>$@.tmpfile
2396 .IF
"$(DEF9EXPORT13)"!=""
2397 @echo
$(DEF9EXPORT13
) >>$@.tmpfile
2399 .IF
"$(DEF9EXPORT14)"!=""
2400 @echo
$(DEF9EXPORT14
) >>$@.tmpfile
2402 .IF
"$(DEF9EXPORT15)"!=""
2403 @echo
$(DEF9EXPORT15
) >>$@.tmpfile
2405 .IF
"$(DEF9EXPORT16)"!=""
2406 @echo
$(DEF9EXPORT16
) >>$@.tmpfile
2408 .IF
"$(DEF9EXPORT17)"!=""
2409 @echo
$(DEF9EXPORT17
) >>$@.tmpfile
2411 .IF
"$(DEF9EXPORT18)"!=""
2412 @echo
$(DEF9EXPORT18
) >>$@.tmpfile
2414 .IF
"$(DEF9EXPORT19)"!=""
2415 @echo
$(DEF9EXPORT19
) >>$@.tmpfile
2417 .IF
"$(DEF9EXPORT20)"!=""
2418 @echo
$(DEF9EXPORT20
) >>$@.tmpfile
2420 .IF
"$(DEF9EXPORTFILE)"!=""
2422 $(TYPE
) $(DEF9EXPORTFILE
) | sed
-e s
:PRIVATE
:: >> $@.tmpfile
2424 $(TYPE
) $(DEF9EXPORTFILE
) >> $@.tmpfile
2428 @
$(RENAME
) $@.tmpfile
$@
2429 .ENDIF
# "$(GUI)"=="WNT"
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)"==""
2444 .ELSE
# "$(link_always)"==""
2445 $(DEF9TARGETN
) .PHONY
:
2446 .ENDIF
# "$(link_always)"==""
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
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
2467 .IF
"$(DEF9EXPORT2)"!=""
2468 @echo
$(DEF9EXPORT2
) >>$@.tmpfile
2470 .IF
"$(DEF9EXPORT3)"!=""
2471 @echo
$(DEF9EXPORT3
) >>$@.tmpfile
2473 .IF
"$(DEF9EXPORT4)"!=""
2474 @echo
$(DEF9EXPORT4
) >>$@.tmpfile
2476 .IF
"$(DEF9EXPORT5)"!=""
2477 @echo
$(DEF9EXPORT5
) >>$@.tmpfile
2479 .IF
"$(DEF9EXPORT6)"!=""
2480 @echo
$(DEF9EXPORT6
) >>$@.tmpfile
2482 .IF
"$(DEF9EXPORT7)"!=""
2483 @echo
$(DEF9EXPORT7
) >>$@.tmpfile
2485 .IF
"$(DEF9EXPORT8)"!=""
2486 @echo
$(DEF9EXPORT8
) >>$@.tmpfile
2488 .IF
"$(DEF9EXPORT9)"!=""
2489 @echo
$(DEF9EXPORT9
) >>$@.tmpfile
2491 .IF
"$(DEF9EXPORT10)"!=""
2492 @echo
$(DEF9EXPORT10
) >>$@.tmpfile
2494 .IF
"$(DEF9EXPORT11)"!=""
2495 @echo
$(DEF9EXPORT11
) >>$@.tmpfile
2497 .IF
"$(DEF9EXPORT12)"!=""
2498 @echo
$(DEF9EXPORT12
) >>$@.tmpfile
2500 .IF
"$(DEF9EXPORT13)"!=""
2501 @echo
$(DEF9EXPORT13
) >>$@.tmpfile
2503 .IF
"$(DEF9EXPORT14)"!=""
2504 @echo
$(DEF9EXPORT14
) >>$@.tmpfile
2506 .IF
"$(DEF9EXPORT15)"!=""
2507 @echo
$(DEF9EXPORT15
) >>$@.tmpfile
2509 .IF
"$(DEF9EXPORT16)"!=""
2510 @echo
$(DEF9EXPORT16
) >>$@.tmpfile
2512 .IF
"$(DEF9EXPORT17)"!=""
2513 @echo
$(DEF9EXPORT17
) >>$@.tmpfile
2515 .IF
"$(DEF9EXPORT18)"!=""
2516 @echo
$(DEF9EXPORT18
) >>$@.tmpfile
2518 .IF
"$(DEF9EXPORT19)"!=""
2519 @echo
$(DEF9EXPORT19
) >>$@.tmpfile
2521 .IF
"$(DEF9EXPORT20)"!=""
2522 @echo
$(DEF9EXPORT20
) >>$@.tmpfile
2524 .IF
"$(DEF9EXPORTFILE)"!=""
2525 @fix_def_file
< $(DEF9EXPORTFILE
) >> $@.tmp_ord
2527 @
sort < $@.tmp_ord | uniq
> $@.exptmpfile
2528 @fix_def_ord
< $@.exptmpfile
>> $@.tmpfile
2530 +$(RENAME
) $@.tmpfile
$@
2532 @
+-$(RM
) $@.exptmpfile
2533 +$(IMPLIB
) $(IMPLIBFLAGS
) $(SHL9IMPLIBN
:s
/.lib
/.a
/) $@
2534 +emxomf
-o
$(SHL9IMPLIBN
) $(SHL9IMPLIBN
:s
/.lib
/.a
/)
2536 .ENDIF
# "$(GUI)"=="OS2"
2542 @echo just a dummy for UNIX
> $@
2544 .ENDIF
# "$(DEF9TARGETN)"!=""
2547 # Anweisungen fuer das Linken
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
)
2561 .IF
"$(SHL10VERSIONMAP)"!=""
2562 .IF
"$(DEF10EXPORTFILE)"==""
2564 DEF10EXPORTFILE
=$(MISC
)/$(SHL10VERSIONMAP
:b
)_
$(SHL10TARGET
).dxp
2566 $(DEF10EXPORTFILE
) : $(SHL10OBJS
) $(SHL10LIBS
)
2567 .ENDIF
# .IF "$(COM)"=="GCC"
2569 $(DEF10EXPORTFILE
) : $(SHL10VERSIONMAP
)
2570 $(TYPE
) $< |
$(AWK
) -f
$(SOLARENV
)/bin
/getcsym.awk
> $@
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"
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)"!=""
2597 DEF10FILTER
=$(SOLARENV
)/inc
/dummy.flt
2601 .IF
"$(DEF10CEXP)"!=""
2602 EXPORT_ALL_SWITCH
=-A
$(DEF10CEXP
)
2605 .IF
"$(link_always)"==""
2609 .ELSE
# "$(link_always)"==""
2610 $(DEF10TARGETN
) .PHONY
:
2611 .ENDIF
# "$(link_always)"==""
2613 @echo
------------------------------
2614 @echo Making Module-Definitionfile
: $@
2615 @echo LIBRARY
$(EMQ
)"$(SHL10TARGETN:f)$(EMQ)" >$@.tmpfile
2617 @echo HEAPSIZE
0 >>$@.tmpfile
2619 @echo EXPORTS
>>$@.tmpfile
2620 .IF
"$(VERSIONOBJ)"!=""
2621 # getversioninfo fuer alle!!
2622 @echo GetVersionInfo
>>$@.tmpfile
2624 .IF
"$(DEFLIB10NAME)"!=""
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
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)"==""
2642 .ENDIF
# "$(DEFLIB10NAME)"!=""
2643 .IF
"$(DEF10EXPORT1)"!=""
2644 @echo
$(DEF10EXPORT1
) >>$@.tmpfile
2646 .IF
"$(DEF10EXPORT2)"!=""
2647 @echo
$(DEF10EXPORT2
) >>$@.tmpfile
2649 .IF
"$(DEF10EXPORT3)"!=""
2650 @echo
$(DEF10EXPORT3
) >>$@.tmpfile
2652 .IF
"$(DEF10EXPORT4)"!=""
2653 @echo
$(DEF10EXPORT4
) >>$@.tmpfile
2655 .IF
"$(DEF10EXPORT5)"!=""
2656 @echo
$(DEF10EXPORT5
) >>$@.tmpfile
2658 .IF
"$(DEF10EXPORT6)"!=""
2659 @echo
$(DEF10EXPORT6
) >>$@.tmpfile
2661 .IF
"$(DEF10EXPORT7)"!=""
2662 @echo
$(DEF10EXPORT7
) >>$@.tmpfile
2664 .IF
"$(DEF10EXPORT8)"!=""
2665 @echo
$(DEF10EXPORT8
) >>$@.tmpfile
2667 .IF
"$(DEF10EXPORT9)"!=""
2668 @echo
$(DEF10EXPORT9
) >>$@.tmpfile
2670 .IF
"$(DEF10EXPORT10)"!=""
2671 @echo
$(DEF10EXPORT10
) >>$@.tmpfile
2673 .IF
"$(DEF10EXPORT11)"!=""
2674 @echo
$(DEF10EXPORT11
) >>$@.tmpfile
2676 .IF
"$(DEF10EXPORT12)"!=""
2677 @echo
$(DEF10EXPORT12
) >>$@.tmpfile
2679 .IF
"$(DEF10EXPORT13)"!=""
2680 @echo
$(DEF10EXPORT13
) >>$@.tmpfile
2682 .IF
"$(DEF10EXPORT14)"!=""
2683 @echo
$(DEF10EXPORT14
) >>$@.tmpfile
2685 .IF
"$(DEF10EXPORT15)"!=""
2686 @echo
$(DEF10EXPORT15
) >>$@.tmpfile
2688 .IF
"$(DEF10EXPORT16)"!=""
2689 @echo
$(DEF10EXPORT16
) >>$@.tmpfile
2691 .IF
"$(DEF10EXPORT17)"!=""
2692 @echo
$(DEF10EXPORT17
) >>$@.tmpfile
2694 .IF
"$(DEF10EXPORT18)"!=""
2695 @echo
$(DEF10EXPORT18
) >>$@.tmpfile
2697 .IF
"$(DEF10EXPORT19)"!=""
2698 @echo
$(DEF10EXPORT19
) >>$@.tmpfile
2700 .IF
"$(DEF10EXPORT20)"!=""
2701 @echo
$(DEF10EXPORT20
) >>$@.tmpfile
2703 .IF
"$(DEF10EXPORTFILE)"!=""
2705 $(TYPE
) $(DEF10EXPORTFILE
) | sed
-e s
:PRIVATE
:: >> $@.tmpfile
2707 $(TYPE
) $(DEF10EXPORTFILE
) >> $@.tmpfile
2711 @
$(RENAME
) $@.tmpfile
$@
2712 .ENDIF
# "$(GUI)"=="WNT"
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)"==""
2727 .ELSE
# "$(link_always)"==""
2728 $(DEF10TARGETN
) .PHONY
:
2729 .ENDIF
# "$(link_always)"==""
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
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
2750 .IF
"$(DEF10EXPORT2)"!=""
2751 @echo
$(DEF10EXPORT2
) >>$@.tmpfile
2753 .IF
"$(DEF10EXPORT3)"!=""
2754 @echo
$(DEF10EXPORT3
) >>$@.tmpfile
2756 .IF
"$(DEF10EXPORT4)"!=""
2757 @echo
$(DEF10EXPORT4
) >>$@.tmpfile
2759 .IF
"$(DEF10EXPORT5)"!=""
2760 @echo
$(DEF10EXPORT5
) >>$@.tmpfile
2762 .IF
"$(DEF10EXPORT6)"!=""
2763 @echo
$(DEF10EXPORT6
) >>$@.tmpfile
2765 .IF
"$(DEF10EXPORT7)"!=""
2766 @echo
$(DEF10EXPORT7
) >>$@.tmpfile
2768 .IF
"$(DEF10EXPORT8)"!=""
2769 @echo
$(DEF10EXPORT8
) >>$@.tmpfile
2771 .IF
"$(DEF10EXPORT9)"!=""
2772 @echo
$(DEF10EXPORT9
) >>$@.tmpfile
2774 .IF
"$(DEF10EXPORT10)"!=""
2775 @echo
$(DEF10EXPORT10
) >>$@.tmpfile
2777 .IF
"$(DEF10EXPORT11)"!=""
2778 @echo
$(DEF10EXPORT11
) >>$@.tmpfile
2780 .IF
"$(DEF10EXPORT12)"!=""
2781 @echo
$(DEF10EXPORT12
) >>$@.tmpfile
2783 .IF
"$(DEF10EXPORT13)"!=""
2784 @echo
$(DEF10EXPORT13
) >>$@.tmpfile
2786 .IF
"$(DEF10EXPORT14)"!=""
2787 @echo
$(DEF10EXPORT14
) >>$@.tmpfile
2789 .IF
"$(DEF10EXPORT15)"!=""
2790 @echo
$(DEF10EXPORT15
) >>$@.tmpfile
2792 .IF
"$(DEF10EXPORT16)"!=""
2793 @echo
$(DEF10EXPORT16
) >>$@.tmpfile
2795 .IF
"$(DEF10EXPORT17)"!=""
2796 @echo
$(DEF10EXPORT17
) >>$@.tmpfile
2798 .IF
"$(DEF10EXPORT18)"!=""
2799 @echo
$(DEF10EXPORT18
) >>$@.tmpfile
2801 .IF
"$(DEF10EXPORT19)"!=""
2802 @echo
$(DEF10EXPORT19
) >>$@.tmpfile
2804 .IF
"$(DEF10EXPORT20)"!=""
2805 @echo
$(DEF10EXPORT20
) >>$@.tmpfile
2807 .IF
"$(DEF10EXPORTFILE)"!=""
2808 @fix_def_file
< $(DEF10EXPORTFILE
) >> $@.tmp_ord
2810 @
sort < $@.tmp_ord | uniq
> $@.exptmpfile
2811 @fix_def_ord
< $@.exptmpfile
>> $@.tmpfile
2813 +$(RENAME
) $@.tmpfile
$@
2815 @
+-$(RM
) $@.exptmpfile
2816 +$(IMPLIB
) $(IMPLIBFLAGS
) $(SHL10IMPLIBN
:s
/.lib
/.a
/) $@
2817 +emxomf
-o
$(SHL10IMPLIBN
) $(SHL10IMPLIBN
:s
/.lib
/.a
/)
2819 .ENDIF
# "$(GUI)"=="OS2"
2825 @echo just a dummy for UNIX
> $@
2827 .ENDIF
# "$(DEF10TARGETN)"!=""
2830 # Anweisungen fuer das Linken