Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / solenv / inc / _tg_def.mk
blobb0b35d8d5c99513c57da8f6bdaba4c4c25bae895
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 $(COMMAND_ECHO)$(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
24 .IF "$(COM)"=="GCC"
25 $(COMMAND_ECHO)-$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
26 $(COMMAND_ECHO)-$(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 $(COMMAND_ECHO)$(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 $(COMMAND_ECHO)$(RENAME) $@.exported-symbols $@
35 .ENDIF # .IF "$(COM)"=="GCC"
37 .ENDIF # "$(GUI)"=="WNT"
39 .ENDIF # "$(DEF1EXPORTFILE)"==""
40 .ENDIF # "$(SHL1VERSIONMAP)"!=""
42 .IF "$(GUI)"=="WNT"
44 DEF1FILTER=$(SOLARENV)/inc/dummy.flt
46 RMHACK1:=$(RM)
48 .IF "$(DEF1CEXP)"!=""
49 EXPORT_ALL_SWITCH=-A $(DEF1CEXP)
50 .ENDIF
52 .IF "$(link_always)"==""
53 $(DEF1TARGETN) : \
54 $(DEF1DEPN) \
55 $(DEF1EXPORTFILE)
56 .ELSE # "$(link_always)"==""
57 $(DEF1TARGETN) .PHONY :
58 .ENDIF # "$(link_always)"==""
59 $(COMMAND_ECHO)-$(RM) $@.tmpfile
60 @echo "Making: module definition file" $(@:f)
61 $(COMMAND_ECHO)echo LIBRARY $(EMQ)"$(SHL1TARGETN:f)$(EMQ)" >$@.tmpfile
62 .IF "$(COM)"!="GCC"
63 $(COMMAND_ECHO)echo HEAPSIZE 0 >>$@.tmpfile
64 .ENDIF
65 $(COMMAND_ECHO)echo EXPORTS >>$@.tmpfile
66 .IF "$(VERSIONOBJ)"!=""
67 # getversioninfo fuer alle!!
68 $(COMMAND_ECHO)echo GetVersionInfo >>$@.tmpfile
69 .ENDIF
70 .IF "$(DEFLIB1NAME)"!=""
71 .IF "$(COM)"=="GCC"
72 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL1TARGET).exp
73 $(COMMAND_ECHO)$(DLLTOOL) --output-def $(MISC)/$(SHL1TARGET).exp --export-all-symbols \
74 `$(TYPE) $(foreach,i,$(DEFLIB1NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
75 $(COMMAND_ECHO)tail --lines +3 $(MISC)/$(SHL1TARGET).exp | sed '/^;/d' >>$@.tmpfile
76 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL1TARGET).exp
77 .ELSE
78 .IF "$(SHL1USE_EXPORTS)"==""
79 $(COMMAND_ECHO)-$(RMHACK1) $(MISC)/$(SHL1TARGET).exp
80 $(COMMAND_ECHO)$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL1TARGET).exp $(SLB)/$(DEFLIB1NAME).lib
81 $(COMMAND_ECHO)$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL1TARGET).flt $(MISC)/$(SHL1TARGET).exp >>$@.tmpfile
82 $(COMMAND_ECHO)$(RMHACK1) $(MISC)/$(SHL1TARGET).exp
83 .ELSE # "$(SHL1USE_EXPORTS)"==""
84 $(COMMAND_ECHO)$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB1NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL1TARGET).direct
85 $(COMMAND_ECHO)$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF1FILTER) $(MISC)/$(SHL1TARGET).direct >>$@.tmpfile
86 .ENDIF # "$(SHL1USE_EXPORTS)"==""
87 .ENDIF
88 .ENDIF # "$(DEFLIB1NAME)"!=""
89 .IF "$(DEF1EXPORT1)"!=""
90 $(COMMAND_ECHO)echo $(DEF1EXPORT1) >>$@.tmpfile
91 .ENDIF
92 .IF "$(DEF1EXPORT2)"!=""
93 $(COMMAND_ECHO)echo $(DEF1EXPORT2) >>$@.tmpfile
94 .ENDIF
95 .IF "$(DEF1EXPORT3)"!=""
96 $(COMMAND_ECHO)echo $(DEF1EXPORT3) >>$@.tmpfile
97 .ENDIF
98 .IF "$(DEF1EXPORT4)"!=""
99 $(COMMAND_ECHO)echo $(DEF1EXPORT4) >>$@.tmpfile
100 .ENDIF
101 .IF "$(DEF1EXPORT5)"!=""
102 $(COMMAND_ECHO)echo $(DEF1EXPORT5) >>$@.tmpfile
103 .ENDIF
104 .IF "$(DEF1EXPORT6)"!=""
105 $(COMMAND_ECHO)echo $(DEF1EXPORT6) >>$@.tmpfile
106 .ENDIF
107 .IF "$(DEF1EXPORT7)"!=""
108 $(COMMAND_ECHO)echo $(DEF1EXPORT7) >>$@.tmpfile
109 .ENDIF
110 .IF "$(DEF1EXPORT8)"!=""
111 $(COMMAND_ECHO)echo $(DEF1EXPORT8) >>$@.tmpfile
112 .ENDIF
113 .IF "$(DEF1EXPORT9)"!=""
114 $(COMMAND_ECHO)echo $(DEF1EXPORT9) >>$@.tmpfile
115 .ENDIF
116 .IF "$(DEF1EXPORT10)"!=""
117 $(COMMAND_ECHO)echo $(DEF1EXPORT10) >>$@.tmpfile
118 .ENDIF
119 .IF "$(DEF1EXPORT11)"!=""
120 $(COMMAND_ECHO)echo $(DEF1EXPORT11) >>$@.tmpfile
121 .ENDIF
122 .IF "$(DEF1EXPORT12)"!=""
123 $(COMMAND_ECHO)echo $(DEF1EXPORT12) >>$@.tmpfile
124 .ENDIF
125 .IF "$(DEF1EXPORT13)"!=""
126 $(COMMAND_ECHO)echo $(DEF1EXPORT13) >>$@.tmpfile
127 .ENDIF
128 .IF "$(DEF1EXPORT14)"!=""
129 $(COMMAND_ECHO)echo $(DEF1EXPORT14) >>$@.tmpfile
130 .ENDIF
131 .IF "$(DEF1EXPORT15)"!=""
132 $(COMMAND_ECHO)echo $(DEF1EXPORT15) >>$@.tmpfile
133 .ENDIF
134 .IF "$(DEF1EXPORT16)"!=""
135 $(COMMAND_ECHO)echo $(DEF1EXPORT16) >>$@.tmpfile
136 .ENDIF
137 .IF "$(DEF1EXPORT17)"!=""
138 $(COMMAND_ECHO)echo $(DEF1EXPORT17) >>$@.tmpfile
139 .ENDIF
140 .IF "$(DEF1EXPORT18)"!=""
141 $(COMMAND_ECHO)echo $(DEF1EXPORT18) >>$@.tmpfile
142 .ENDIF
143 .IF "$(DEF1EXPORT19)"!=""
144 $(COMMAND_ECHO)echo $(DEF1EXPORT19) >>$@.tmpfile
145 .ENDIF
146 .IF "$(DEF1EXPORT20)"!=""
147 $(COMMAND_ECHO)echo $(DEF1EXPORT20) >>$@.tmpfile
148 .ENDIF
149 .IF "$(DEF1EXPORTFILE)"!=""
150 .IF "$(COM)"=="GCC"
151 $(COMMAND_ECHO)$(TYPE) $(DEF1EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
152 .ELSE
153 $(COMMAND_ECHO)$(TYPE) $(DEF1EXPORTFILE) >> $@.tmpfile
154 .ENDIF
155 .ENDIF
156 $(COMMAND_ECHO)-$(RM) $@
157 $(COMMAND_ECHO)$(RENAME) $@.tmpfile $@
158 .ENDIF # "$(GUI)"=="WNT"
160 .IF "$(GUI)"=="UNX"
161 $(DEF1TARGETN): \
162 $(DEF1DEPN) \
163 $(DEF1EXPORTFILE)
164 $(COMMAND_ECHO)echo just a dummy for UNIX > $@
165 .ENDIF
166 .ENDIF # "$(DEF1TARGETN)"!=""
169 # Anweisungen fuer das Linken
170 # unroll begin
172 .IF "$(DEF2TARGETN)"!=""
174 #to make intuitiv naming work
175 .IF "$(DEF2LIBNAME)"!=""
176 DEFLIB2NAME*=$(DEF2LIBNAME)
177 .ENDIF # "$(DEF2LIBNAME)"!=""
179 .IF "$(DEFLIB2NAME)"!=""
180 DEF2DEPN+=$(foreach,i,$(DEFLIB2NAME) $(SLB)/$(i).lib)
181 .ENDIF
183 .IF "$(SHL2VERSIONMAP)"!=""
184 .IF "$(DEF2EXPORTFILE)"==""
185 .IF "$(GUI)"=="WNT"
186 DEF2EXPORTFILE=$(MISC)/$(SHL2VERSIONMAP:b)_$(SHL2TARGET).dxp
187 .IF "$(COM)"=="GCC"
188 $(DEF2EXPORTFILE) : $(SHL2OBJS) $(SHL2LIBS)
189 .ENDIF # .IF "$(COM)"=="GCC"
191 $(DEF2EXPORTFILE) : $(SHL2VERSIONMAP)
192 $(COMMAND_ECHO)$(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
193 .IF "$(COM)"=="GCC"
194 $(COMMAND_ECHO)-$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
195 $(COMMAND_ECHO)-$(GREP) "\*\|?" $@ > $@.symbols-regexp
196 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
197 # Extract RTTI symbols from all the objects that will be used to build a shared library
198 $(COMMAND_ECHO)$(NM) -gP $(SHL2OBJS) \
199 `$(TYPE) /dev/null $(foreach,j,$(SHL2LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
200 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
201 # overwrite the map file generate into the local output tree with the generated
202 # exported symbols list
203 $(COMMAND_ECHO)$(RENAME) $@.exported-symbols $@
204 .ENDIF # .IF "$(COM)"=="GCC"
206 .ENDIF # "$(GUI)"=="WNT"
208 .ENDIF # "$(DEF2EXPORTFILE)"==""
209 .ENDIF # "$(SHL2VERSIONMAP)"!=""
211 .IF "$(GUI)"=="WNT"
213 DEF2FILTER=$(SOLARENV)/inc/dummy.flt
215 RMHACK2:=$(RM)
217 .IF "$(DEF2CEXP)"!=""
218 EXPORT_ALL_SWITCH=-A $(DEF2CEXP)
219 .ENDIF
221 .IF "$(link_always)"==""
222 $(DEF2TARGETN) : \
223 $(DEF2DEPN) \
224 $(DEF2EXPORTFILE)
225 .ELSE # "$(link_always)"==""
226 $(DEF2TARGETN) .PHONY :
227 .ENDIF # "$(link_always)"==""
228 $(COMMAND_ECHO)-$(RM) $@.tmpfile
229 @echo "Making: module definition file" $(@:f)
230 $(COMMAND_ECHO)echo LIBRARY $(EMQ)"$(SHL2TARGETN:f)$(EMQ)" >$@.tmpfile
231 .IF "$(COM)"!="GCC"
232 $(COMMAND_ECHO)echo HEAPSIZE 0 >>$@.tmpfile
233 .ENDIF
234 $(COMMAND_ECHO)echo EXPORTS >>$@.tmpfile
235 .IF "$(VERSIONOBJ)"!=""
236 # getversioninfo fuer alle!!
237 $(COMMAND_ECHO)echo GetVersionInfo >>$@.tmpfile
238 .ENDIF
239 .IF "$(DEFLIB2NAME)"!=""
240 .IF "$(COM)"=="GCC"
241 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL2TARGET).exp
242 $(COMMAND_ECHO)$(DLLTOOL) --output-def $(MISC)/$(SHL2TARGET).exp --export-all-symbols \
243 `$(TYPE) $(foreach,i,$(DEFLIB2NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
244 $(COMMAND_ECHO)tail --lines +3 $(MISC)/$(SHL2TARGET).exp | sed '/^;/d' >>$@.tmpfile
245 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL2TARGET).exp
246 .ELSE
247 .IF "$(SHL2USE_EXPORTS)"==""
248 $(COMMAND_ECHO)-$(RMHACK2) $(MISC)/$(SHL2TARGET).exp
249 $(COMMAND_ECHO)$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL2TARGET).exp $(SLB)/$(DEFLIB2NAME).lib
250 $(COMMAND_ECHO)$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL2TARGET).flt $(MISC)/$(SHL2TARGET).exp >>$@.tmpfile
251 $(COMMAND_ECHO)$(RMHACK2) $(MISC)/$(SHL2TARGET).exp
252 .ELSE # "$(SHL2USE_EXPORTS)"==""
253 $(COMMAND_ECHO)$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB2NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL2TARGET).direct
254 $(COMMAND_ECHO)$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF2FILTER) $(MISC)/$(SHL2TARGET).direct >>$@.tmpfile
255 .ENDIF # "$(SHL2USE_EXPORTS)"==""
256 .ENDIF
257 .ENDIF # "$(DEFLIB2NAME)"!=""
258 .IF "$(DEF2EXPORT1)"!=""
259 $(COMMAND_ECHO)echo $(DEF2EXPORT1) >>$@.tmpfile
260 .ENDIF
261 .IF "$(DEF2EXPORT2)"!=""
262 $(COMMAND_ECHO)echo $(DEF2EXPORT2) >>$@.tmpfile
263 .ENDIF
264 .IF "$(DEF2EXPORT3)"!=""
265 $(COMMAND_ECHO)echo $(DEF2EXPORT3) >>$@.tmpfile
266 .ENDIF
267 .IF "$(DEF2EXPORT4)"!=""
268 $(COMMAND_ECHO)echo $(DEF2EXPORT4) >>$@.tmpfile
269 .ENDIF
270 .IF "$(DEF2EXPORT5)"!=""
271 $(COMMAND_ECHO)echo $(DEF2EXPORT5) >>$@.tmpfile
272 .ENDIF
273 .IF "$(DEF2EXPORT6)"!=""
274 $(COMMAND_ECHO)echo $(DEF2EXPORT6) >>$@.tmpfile
275 .ENDIF
276 .IF "$(DEF2EXPORT7)"!=""
277 $(COMMAND_ECHO)echo $(DEF2EXPORT7) >>$@.tmpfile
278 .ENDIF
279 .IF "$(DEF2EXPORT8)"!=""
280 $(COMMAND_ECHO)echo $(DEF2EXPORT8) >>$@.tmpfile
281 .ENDIF
282 .IF "$(DEF2EXPORT9)"!=""
283 $(COMMAND_ECHO)echo $(DEF2EXPORT9) >>$@.tmpfile
284 .ENDIF
285 .IF "$(DEF2EXPORT10)"!=""
286 $(COMMAND_ECHO)echo $(DEF2EXPORT10) >>$@.tmpfile
287 .ENDIF
288 .IF "$(DEF2EXPORT11)"!=""
289 $(COMMAND_ECHO)echo $(DEF2EXPORT11) >>$@.tmpfile
290 .ENDIF
291 .IF "$(DEF2EXPORT12)"!=""
292 $(COMMAND_ECHO)echo $(DEF2EXPORT12) >>$@.tmpfile
293 .ENDIF
294 .IF "$(DEF2EXPORT13)"!=""
295 $(COMMAND_ECHO)echo $(DEF2EXPORT13) >>$@.tmpfile
296 .ENDIF
297 .IF "$(DEF2EXPORT14)"!=""
298 $(COMMAND_ECHO)echo $(DEF2EXPORT14) >>$@.tmpfile
299 .ENDIF
300 .IF "$(DEF2EXPORT15)"!=""
301 $(COMMAND_ECHO)echo $(DEF2EXPORT15) >>$@.tmpfile
302 .ENDIF
303 .IF "$(DEF2EXPORT16)"!=""
304 $(COMMAND_ECHO)echo $(DEF2EXPORT16) >>$@.tmpfile
305 .ENDIF
306 .IF "$(DEF2EXPORT17)"!=""
307 $(COMMAND_ECHO)echo $(DEF2EXPORT17) >>$@.tmpfile
308 .ENDIF
309 .IF "$(DEF2EXPORT18)"!=""
310 $(COMMAND_ECHO)echo $(DEF2EXPORT18) >>$@.tmpfile
311 .ENDIF
312 .IF "$(DEF2EXPORT19)"!=""
313 $(COMMAND_ECHO)echo $(DEF2EXPORT19) >>$@.tmpfile
314 .ENDIF
315 .IF "$(DEF2EXPORT20)"!=""
316 $(COMMAND_ECHO)echo $(DEF2EXPORT20) >>$@.tmpfile
317 .ENDIF
318 .IF "$(DEF2EXPORTFILE)"!=""
319 .IF "$(COM)"=="GCC"
320 $(COMMAND_ECHO)$(TYPE) $(DEF2EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
321 .ELSE
322 $(COMMAND_ECHO)$(TYPE) $(DEF2EXPORTFILE) >> $@.tmpfile
323 .ENDIF
324 .ENDIF
325 $(COMMAND_ECHO)-$(RM) $@
326 $(COMMAND_ECHO)$(RENAME) $@.tmpfile $@
327 .ENDIF # "$(GUI)"=="WNT"
329 .IF "$(GUI)"=="UNX"
330 $(DEF2TARGETN): \
331 $(DEF2DEPN) \
332 $(DEF2EXPORTFILE)
333 $(COMMAND_ECHO)echo just a dummy for UNIX > $@
334 .ENDIF
335 .ENDIF # "$(DEF2TARGETN)"!=""
338 # Anweisungen fuer das Linken
339 # unroll begin
341 .IF "$(DEF3TARGETN)"!=""
343 #to make intuitiv naming work
344 .IF "$(DEF3LIBNAME)"!=""
345 DEFLIB3NAME*=$(DEF3LIBNAME)
346 .ENDIF # "$(DEF3LIBNAME)"!=""
348 .IF "$(DEFLIB3NAME)"!=""
349 DEF3DEPN+=$(foreach,i,$(DEFLIB3NAME) $(SLB)/$(i).lib)
350 .ENDIF
352 .IF "$(SHL3VERSIONMAP)"!=""
353 .IF "$(DEF3EXPORTFILE)"==""
354 .IF "$(GUI)"=="WNT"
355 DEF3EXPORTFILE=$(MISC)/$(SHL3VERSIONMAP:b)_$(SHL3TARGET).dxp
356 .IF "$(COM)"=="GCC"
357 $(DEF3EXPORTFILE) : $(SHL3OBJS) $(SHL3LIBS)
358 .ENDIF # .IF "$(COM)"=="GCC"
360 $(DEF3EXPORTFILE) : $(SHL3VERSIONMAP)
361 $(COMMAND_ECHO)$(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
362 .IF "$(COM)"=="GCC"
363 $(COMMAND_ECHO)-$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
364 $(COMMAND_ECHO)-$(GREP) "\*\|?" $@ > $@.symbols-regexp
365 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
366 # Extract RTTI symbols from all the objects that will be used to build a shared library
367 $(COMMAND_ECHO)$(NM) -gP $(SHL3OBJS) \
368 `$(TYPE) /dev/null $(foreach,j,$(SHL3LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
369 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
370 # overwrite the map file generate into the local output tree with the generated
371 # exported symbols list
372 $(COMMAND_ECHO)$(RENAME) $@.exported-symbols $@
373 .ENDIF # .IF "$(COM)"=="GCC"
375 .ENDIF # "$(GUI)"=="WNT"
377 .ENDIF # "$(DEF3EXPORTFILE)"==""
378 .ENDIF # "$(SHL3VERSIONMAP)"!=""
380 .IF "$(GUI)"=="WNT"
382 DEF3FILTER=$(SOLARENV)/inc/dummy.flt
384 RMHACK3:=$(RM)
386 .IF "$(DEF3CEXP)"!=""
387 EXPORT_ALL_SWITCH=-A $(DEF3CEXP)
388 .ENDIF
390 .IF "$(link_always)"==""
391 $(DEF3TARGETN) : \
392 $(DEF3DEPN) \
393 $(DEF3EXPORTFILE)
394 .ELSE # "$(link_always)"==""
395 $(DEF3TARGETN) .PHONY :
396 .ENDIF # "$(link_always)"==""
397 $(COMMAND_ECHO)-$(RM) $@.tmpfile
398 @echo "Making: module definition file" $(@:f)
399 $(COMMAND_ECHO)echo LIBRARY $(EMQ)"$(SHL3TARGETN:f)$(EMQ)" >$@.tmpfile
400 .IF "$(COM)"!="GCC"
401 $(COMMAND_ECHO)echo HEAPSIZE 0 >>$@.tmpfile
402 .ENDIF
403 $(COMMAND_ECHO)echo EXPORTS >>$@.tmpfile
404 .IF "$(VERSIONOBJ)"!=""
405 # getversioninfo fuer alle!!
406 $(COMMAND_ECHO)echo GetVersionInfo >>$@.tmpfile
407 .ENDIF
408 .IF "$(DEFLIB3NAME)"!=""
409 .IF "$(COM)"=="GCC"
410 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL3TARGET).exp
411 $(COMMAND_ECHO)$(DLLTOOL) --output-def $(MISC)/$(SHL3TARGET).exp --export-all-symbols \
412 `$(TYPE) $(foreach,i,$(DEFLIB3NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
413 $(COMMAND_ECHO)tail --lines +3 $(MISC)/$(SHL3TARGET).exp | sed '/^;/d' >>$@.tmpfile
414 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL3TARGET).exp
415 .ELSE
416 .IF "$(SHL3USE_EXPORTS)"==""
417 $(COMMAND_ECHO)-$(RMHACK3) $(MISC)/$(SHL3TARGET).exp
418 $(COMMAND_ECHO)$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL3TARGET).exp $(SLB)/$(DEFLIB3NAME).lib
419 $(COMMAND_ECHO)$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL3TARGET).flt $(MISC)/$(SHL3TARGET).exp >>$@.tmpfile
420 $(COMMAND_ECHO)$(RMHACK3) $(MISC)/$(SHL3TARGET).exp
421 .ELSE # "$(SHL3USE_EXPORTS)"==""
422 $(COMMAND_ECHO)$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB3NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL3TARGET).direct
423 $(COMMAND_ECHO)$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF3FILTER) $(MISC)/$(SHL3TARGET).direct >>$@.tmpfile
424 .ENDIF # "$(SHL3USE_EXPORTS)"==""
425 .ENDIF
426 .ENDIF # "$(DEFLIB3NAME)"!=""
427 .IF "$(DEF3EXPORT1)"!=""
428 $(COMMAND_ECHO)echo $(DEF3EXPORT1) >>$@.tmpfile
429 .ENDIF
430 .IF "$(DEF3EXPORT2)"!=""
431 $(COMMAND_ECHO)echo $(DEF3EXPORT2) >>$@.tmpfile
432 .ENDIF
433 .IF "$(DEF3EXPORT3)"!=""
434 $(COMMAND_ECHO)echo $(DEF3EXPORT3) >>$@.tmpfile
435 .ENDIF
436 .IF "$(DEF3EXPORT4)"!=""
437 $(COMMAND_ECHO)echo $(DEF3EXPORT4) >>$@.tmpfile
438 .ENDIF
439 .IF "$(DEF3EXPORT5)"!=""
440 $(COMMAND_ECHO)echo $(DEF3EXPORT5) >>$@.tmpfile
441 .ENDIF
442 .IF "$(DEF3EXPORT6)"!=""
443 $(COMMAND_ECHO)echo $(DEF3EXPORT6) >>$@.tmpfile
444 .ENDIF
445 .IF "$(DEF3EXPORT7)"!=""
446 $(COMMAND_ECHO)echo $(DEF3EXPORT7) >>$@.tmpfile
447 .ENDIF
448 .IF "$(DEF3EXPORT8)"!=""
449 $(COMMAND_ECHO)echo $(DEF3EXPORT8) >>$@.tmpfile
450 .ENDIF
451 .IF "$(DEF3EXPORT9)"!=""
452 $(COMMAND_ECHO)echo $(DEF3EXPORT9) >>$@.tmpfile
453 .ENDIF
454 .IF "$(DEF3EXPORT10)"!=""
455 $(COMMAND_ECHO)echo $(DEF3EXPORT10) >>$@.tmpfile
456 .ENDIF
457 .IF "$(DEF3EXPORT11)"!=""
458 $(COMMAND_ECHO)echo $(DEF3EXPORT11) >>$@.tmpfile
459 .ENDIF
460 .IF "$(DEF3EXPORT12)"!=""
461 $(COMMAND_ECHO)echo $(DEF3EXPORT12) >>$@.tmpfile
462 .ENDIF
463 .IF "$(DEF3EXPORT13)"!=""
464 $(COMMAND_ECHO)echo $(DEF3EXPORT13) >>$@.tmpfile
465 .ENDIF
466 .IF "$(DEF3EXPORT14)"!=""
467 $(COMMAND_ECHO)echo $(DEF3EXPORT14) >>$@.tmpfile
468 .ENDIF
469 .IF "$(DEF3EXPORT15)"!=""
470 $(COMMAND_ECHO)echo $(DEF3EXPORT15) >>$@.tmpfile
471 .ENDIF
472 .IF "$(DEF3EXPORT16)"!=""
473 $(COMMAND_ECHO)echo $(DEF3EXPORT16) >>$@.tmpfile
474 .ENDIF
475 .IF "$(DEF3EXPORT17)"!=""
476 $(COMMAND_ECHO)echo $(DEF3EXPORT17) >>$@.tmpfile
477 .ENDIF
478 .IF "$(DEF3EXPORT18)"!=""
479 $(COMMAND_ECHO)echo $(DEF3EXPORT18) >>$@.tmpfile
480 .ENDIF
481 .IF "$(DEF3EXPORT19)"!=""
482 $(COMMAND_ECHO)echo $(DEF3EXPORT19) >>$@.tmpfile
483 .ENDIF
484 .IF "$(DEF3EXPORT20)"!=""
485 $(COMMAND_ECHO)echo $(DEF3EXPORT20) >>$@.tmpfile
486 .ENDIF
487 .IF "$(DEF3EXPORTFILE)"!=""
488 .IF "$(COM)"=="GCC"
489 $(COMMAND_ECHO)$(TYPE) $(DEF3EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
490 .ELSE
491 $(COMMAND_ECHO)$(TYPE) $(DEF3EXPORTFILE) >> $@.tmpfile
492 .ENDIF
493 .ENDIF
494 $(COMMAND_ECHO)-$(RM) $@
495 $(COMMAND_ECHO)$(RENAME) $@.tmpfile $@
496 .ENDIF # "$(GUI)"=="WNT"
498 .IF "$(GUI)"=="UNX"
499 $(DEF3TARGETN): \
500 $(DEF3DEPN) \
501 $(DEF3EXPORTFILE)
502 $(COMMAND_ECHO)echo just a dummy for UNIX > $@
503 .ENDIF
504 .ENDIF # "$(DEF3TARGETN)"!=""
507 # Anweisungen fuer das Linken
508 # unroll begin
510 .IF "$(DEF4TARGETN)"!=""
512 #to make intuitiv naming work
513 .IF "$(DEF4LIBNAME)"!=""
514 DEFLIB4NAME*=$(DEF4LIBNAME)
515 .ENDIF # "$(DEF4LIBNAME)"!=""
517 .IF "$(DEFLIB4NAME)"!=""
518 DEF4DEPN+=$(foreach,i,$(DEFLIB4NAME) $(SLB)/$(i).lib)
519 .ENDIF
521 .IF "$(SHL4VERSIONMAP)"!=""
522 .IF "$(DEF4EXPORTFILE)"==""
523 .IF "$(GUI)"=="WNT"
524 DEF4EXPORTFILE=$(MISC)/$(SHL4VERSIONMAP:b)_$(SHL4TARGET).dxp
525 .IF "$(COM)"=="GCC"
526 $(DEF4EXPORTFILE) : $(SHL4OBJS) $(SHL4LIBS)
527 .ENDIF # .IF "$(COM)"=="GCC"
529 $(DEF4EXPORTFILE) : $(SHL4VERSIONMAP)
530 $(COMMAND_ECHO)$(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
531 .IF "$(COM)"=="GCC"
532 $(COMMAND_ECHO)-$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
533 $(COMMAND_ECHO)-$(GREP) "\*\|?" $@ > $@.symbols-regexp
534 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
535 # Extract RTTI symbols from all the objects that will be used to build a shared library
536 $(COMMAND_ECHO)$(NM) -gP $(SHL4OBJS) \
537 `$(TYPE) /dev/null $(foreach,j,$(SHL4LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
538 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
539 # overwrite the map file generate into the local output tree with the generated
540 # exported symbols list
541 $(COMMAND_ECHO)$(RENAME) $@.exported-symbols $@
542 .ENDIF # .IF "$(COM)"=="GCC"
544 .ENDIF # "$(GUI)"=="WNT"
546 .ENDIF # "$(DEF4EXPORTFILE)"==""
547 .ENDIF # "$(SHL4VERSIONMAP)"!=""
549 .IF "$(GUI)"=="WNT"
551 DEF4FILTER=$(SOLARENV)/inc/dummy.flt
553 RMHACK4:=$(RM)
555 .IF "$(DEF4CEXP)"!=""
556 EXPORT_ALL_SWITCH=-A $(DEF4CEXP)
557 .ENDIF
559 .IF "$(link_always)"==""
560 $(DEF4TARGETN) : \
561 $(DEF4DEPN) \
562 $(DEF4EXPORTFILE)
563 .ELSE # "$(link_always)"==""
564 $(DEF4TARGETN) .PHONY :
565 .ENDIF # "$(link_always)"==""
566 $(COMMAND_ECHO)-$(RM) $@.tmpfile
567 @echo "Making: module definition file" $(@:f)
568 $(COMMAND_ECHO)echo LIBRARY $(EMQ)"$(SHL4TARGETN:f)$(EMQ)" >$@.tmpfile
569 .IF "$(COM)"!="GCC"
570 $(COMMAND_ECHO)echo HEAPSIZE 0 >>$@.tmpfile
571 .ENDIF
572 $(COMMAND_ECHO)echo EXPORTS >>$@.tmpfile
573 .IF "$(VERSIONOBJ)"!=""
574 # getversioninfo fuer alle!!
575 $(COMMAND_ECHO)echo GetVersionInfo >>$@.tmpfile
576 .ENDIF
577 .IF "$(DEFLIB4NAME)"!=""
578 .IF "$(COM)"=="GCC"
579 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL4TARGET).exp
580 $(COMMAND_ECHO)$(DLLTOOL) --output-def $(MISC)/$(SHL4TARGET).exp --export-all-symbols \
581 `$(TYPE) $(foreach,i,$(DEFLIB4NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
582 $(COMMAND_ECHO)tail --lines +3 $(MISC)/$(SHL4TARGET).exp | sed '/^;/d' >>$@.tmpfile
583 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL4TARGET).exp
584 .ELSE
585 .IF "$(SHL4USE_EXPORTS)"==""
586 $(COMMAND_ECHO)-$(RMHACK4) $(MISC)/$(SHL4TARGET).exp
587 $(COMMAND_ECHO)$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL4TARGET).exp $(SLB)/$(DEFLIB4NAME).lib
588 $(COMMAND_ECHO)$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL4TARGET).flt $(MISC)/$(SHL4TARGET).exp >>$@.tmpfile
589 $(COMMAND_ECHO)$(RMHACK4) $(MISC)/$(SHL4TARGET).exp
590 .ELSE # "$(SHL4USE_EXPORTS)"==""
591 $(COMMAND_ECHO)$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB4NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL4TARGET).direct
592 $(COMMAND_ECHO)$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF4FILTER) $(MISC)/$(SHL4TARGET).direct >>$@.tmpfile
593 .ENDIF # "$(SHL4USE_EXPORTS)"==""
594 .ENDIF
595 .ENDIF # "$(DEFLIB4NAME)"!=""
596 .IF "$(DEF4EXPORT1)"!=""
597 $(COMMAND_ECHO)echo $(DEF4EXPORT1) >>$@.tmpfile
598 .ENDIF
599 .IF "$(DEF4EXPORT2)"!=""
600 $(COMMAND_ECHO)echo $(DEF4EXPORT2) >>$@.tmpfile
601 .ENDIF
602 .IF "$(DEF4EXPORT3)"!=""
603 $(COMMAND_ECHO)echo $(DEF4EXPORT3) >>$@.tmpfile
604 .ENDIF
605 .IF "$(DEF4EXPORT4)"!=""
606 $(COMMAND_ECHO)echo $(DEF4EXPORT4) >>$@.tmpfile
607 .ENDIF
608 .IF "$(DEF4EXPORT5)"!=""
609 $(COMMAND_ECHO)echo $(DEF4EXPORT5) >>$@.tmpfile
610 .ENDIF
611 .IF "$(DEF4EXPORT6)"!=""
612 $(COMMAND_ECHO)echo $(DEF4EXPORT6) >>$@.tmpfile
613 .ENDIF
614 .IF "$(DEF4EXPORT7)"!=""
615 $(COMMAND_ECHO)echo $(DEF4EXPORT7) >>$@.tmpfile
616 .ENDIF
617 .IF "$(DEF4EXPORT8)"!=""
618 $(COMMAND_ECHO)echo $(DEF4EXPORT8) >>$@.tmpfile
619 .ENDIF
620 .IF "$(DEF4EXPORT9)"!=""
621 $(COMMAND_ECHO)echo $(DEF4EXPORT9) >>$@.tmpfile
622 .ENDIF
623 .IF "$(DEF4EXPORT10)"!=""
624 $(COMMAND_ECHO)echo $(DEF4EXPORT10) >>$@.tmpfile
625 .ENDIF
626 .IF "$(DEF4EXPORT11)"!=""
627 $(COMMAND_ECHO)echo $(DEF4EXPORT11) >>$@.tmpfile
628 .ENDIF
629 .IF "$(DEF4EXPORT12)"!=""
630 $(COMMAND_ECHO)echo $(DEF4EXPORT12) >>$@.tmpfile
631 .ENDIF
632 .IF "$(DEF4EXPORT13)"!=""
633 $(COMMAND_ECHO)echo $(DEF4EXPORT13) >>$@.tmpfile
634 .ENDIF
635 .IF "$(DEF4EXPORT14)"!=""
636 $(COMMAND_ECHO)echo $(DEF4EXPORT14) >>$@.tmpfile
637 .ENDIF
638 .IF "$(DEF4EXPORT15)"!=""
639 $(COMMAND_ECHO)echo $(DEF4EXPORT15) >>$@.tmpfile
640 .ENDIF
641 .IF "$(DEF4EXPORT16)"!=""
642 $(COMMAND_ECHO)echo $(DEF4EXPORT16) >>$@.tmpfile
643 .ENDIF
644 .IF "$(DEF4EXPORT17)"!=""
645 $(COMMAND_ECHO)echo $(DEF4EXPORT17) >>$@.tmpfile
646 .ENDIF
647 .IF "$(DEF4EXPORT18)"!=""
648 $(COMMAND_ECHO)echo $(DEF4EXPORT18) >>$@.tmpfile
649 .ENDIF
650 .IF "$(DEF4EXPORT19)"!=""
651 $(COMMAND_ECHO)echo $(DEF4EXPORT19) >>$@.tmpfile
652 .ENDIF
653 .IF "$(DEF4EXPORT20)"!=""
654 $(COMMAND_ECHO)echo $(DEF4EXPORT20) >>$@.tmpfile
655 .ENDIF
656 .IF "$(DEF4EXPORTFILE)"!=""
657 .IF "$(COM)"=="GCC"
658 $(COMMAND_ECHO)$(TYPE) $(DEF4EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
659 .ELSE
660 $(COMMAND_ECHO)$(TYPE) $(DEF4EXPORTFILE) >> $@.tmpfile
661 .ENDIF
662 .ENDIF
663 $(COMMAND_ECHO)-$(RM) $@
664 $(COMMAND_ECHO)$(RENAME) $@.tmpfile $@
665 .ENDIF # "$(GUI)"=="WNT"
667 .IF "$(GUI)"=="UNX"
668 $(DEF4TARGETN): \
669 $(DEF4DEPN) \
670 $(DEF4EXPORTFILE)
671 $(COMMAND_ECHO)echo just a dummy for UNIX > $@
672 .ENDIF
673 .ENDIF # "$(DEF4TARGETN)"!=""
676 # Anweisungen fuer das Linken
677 # unroll begin
679 .IF "$(DEF5TARGETN)"!=""
681 #to make intuitiv naming work
682 .IF "$(DEF5LIBNAME)"!=""
683 DEFLIB5NAME*=$(DEF5LIBNAME)
684 .ENDIF # "$(DEF5LIBNAME)"!=""
686 .IF "$(DEFLIB5NAME)"!=""
687 DEF5DEPN+=$(foreach,i,$(DEFLIB5NAME) $(SLB)/$(i).lib)
688 .ENDIF
690 .IF "$(SHL5VERSIONMAP)"!=""
691 .IF "$(DEF5EXPORTFILE)"==""
692 .IF "$(GUI)"=="WNT"
693 DEF5EXPORTFILE=$(MISC)/$(SHL5VERSIONMAP:b)_$(SHL5TARGET).dxp
694 .IF "$(COM)"=="GCC"
695 $(DEF5EXPORTFILE) : $(SHL5OBJS) $(SHL5LIBS)
696 .ENDIF # .IF "$(COM)"=="GCC"
698 $(DEF5EXPORTFILE) : $(SHL5VERSIONMAP)
699 $(COMMAND_ECHO)$(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
700 .IF "$(COM)"=="GCC"
701 $(COMMAND_ECHO)-$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
702 $(COMMAND_ECHO)-$(GREP) "\*\|?" $@ > $@.symbols-regexp
703 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
704 # Extract RTTI symbols from all the objects that will be used to build a shared library
705 $(COMMAND_ECHO)$(NM) -gP $(SHL5OBJS) \
706 `$(TYPE) /dev/null $(foreach,j,$(SHL5LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
707 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
708 # overwrite the map file generate into the local output tree with the generated
709 # exported symbols list
710 $(COMMAND_ECHO)$(RENAME) $@.exported-symbols $@
711 .ENDIF # .IF "$(COM)"=="GCC"
713 .ENDIF # "$(GUI)"=="WNT"
715 .ENDIF # "$(DEF5EXPORTFILE)"==""
716 .ENDIF # "$(SHL5VERSIONMAP)"!=""
718 .IF "$(GUI)"=="WNT"
720 DEF5FILTER=$(SOLARENV)/inc/dummy.flt
722 RMHACK5:=$(RM)
724 .IF "$(DEF5CEXP)"!=""
725 EXPORT_ALL_SWITCH=-A $(DEF5CEXP)
726 .ENDIF
728 .IF "$(link_always)"==""
729 $(DEF5TARGETN) : \
730 $(DEF5DEPN) \
731 $(DEF5EXPORTFILE)
732 .ELSE # "$(link_always)"==""
733 $(DEF5TARGETN) .PHONY :
734 .ENDIF # "$(link_always)"==""
735 $(COMMAND_ECHO)-$(RM) $@.tmpfile
736 @echo "Making: module definition file" $(@:f)
737 $(COMMAND_ECHO)echo LIBRARY $(EMQ)"$(SHL5TARGETN:f)$(EMQ)" >$@.tmpfile
738 .IF "$(COM)"!="GCC"
739 $(COMMAND_ECHO)echo HEAPSIZE 0 >>$@.tmpfile
740 .ENDIF
741 $(COMMAND_ECHO)echo EXPORTS >>$@.tmpfile
742 .IF "$(VERSIONOBJ)"!=""
743 # getversioninfo fuer alle!!
744 $(COMMAND_ECHO)echo GetVersionInfo >>$@.tmpfile
745 .ENDIF
746 .IF "$(DEFLIB5NAME)"!=""
747 .IF "$(COM)"=="GCC"
748 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL5TARGET).exp
749 $(COMMAND_ECHO)$(DLLTOOL) --output-def $(MISC)/$(SHL5TARGET).exp --export-all-symbols \
750 `$(TYPE) $(foreach,i,$(DEFLIB5NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
751 $(COMMAND_ECHO)tail --lines +3 $(MISC)/$(SHL5TARGET).exp | sed '/^;/d' >>$@.tmpfile
752 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL5TARGET).exp
753 .ELSE
754 .IF "$(SHL5USE_EXPORTS)"==""
755 $(COMMAND_ECHO)-$(RMHACK5) $(MISC)/$(SHL5TARGET).exp
756 $(COMMAND_ECHO)$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL5TARGET).exp $(SLB)/$(DEFLIB5NAME).lib
757 $(COMMAND_ECHO)$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL5TARGET).flt $(MISC)/$(SHL5TARGET).exp >>$@.tmpfile
758 $(COMMAND_ECHO)$(RMHACK5) $(MISC)/$(SHL5TARGET).exp
759 .ELSE # "$(SHL5USE_EXPORTS)"==""
760 $(COMMAND_ECHO)$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB5NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL5TARGET).direct
761 $(COMMAND_ECHO)$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF5FILTER) $(MISC)/$(SHL5TARGET).direct >>$@.tmpfile
762 .ENDIF # "$(SHL5USE_EXPORTS)"==""
763 .ENDIF
764 .ENDIF # "$(DEFLIB5NAME)"!=""
765 .IF "$(DEF5EXPORT1)"!=""
766 $(COMMAND_ECHO)echo $(DEF5EXPORT1) >>$@.tmpfile
767 .ENDIF
768 .IF "$(DEF5EXPORT2)"!=""
769 $(COMMAND_ECHO)echo $(DEF5EXPORT2) >>$@.tmpfile
770 .ENDIF
771 .IF "$(DEF5EXPORT3)"!=""
772 $(COMMAND_ECHO)echo $(DEF5EXPORT3) >>$@.tmpfile
773 .ENDIF
774 .IF "$(DEF5EXPORT4)"!=""
775 $(COMMAND_ECHO)echo $(DEF5EXPORT4) >>$@.tmpfile
776 .ENDIF
777 .IF "$(DEF5EXPORT5)"!=""
778 $(COMMAND_ECHO)echo $(DEF5EXPORT5) >>$@.tmpfile
779 .ENDIF
780 .IF "$(DEF5EXPORT6)"!=""
781 $(COMMAND_ECHO)echo $(DEF5EXPORT6) >>$@.tmpfile
782 .ENDIF
783 .IF "$(DEF5EXPORT7)"!=""
784 $(COMMAND_ECHO)echo $(DEF5EXPORT7) >>$@.tmpfile
785 .ENDIF
786 .IF "$(DEF5EXPORT8)"!=""
787 $(COMMAND_ECHO)echo $(DEF5EXPORT8) >>$@.tmpfile
788 .ENDIF
789 .IF "$(DEF5EXPORT9)"!=""
790 $(COMMAND_ECHO)echo $(DEF5EXPORT9) >>$@.tmpfile
791 .ENDIF
792 .IF "$(DEF5EXPORT10)"!=""
793 $(COMMAND_ECHO)echo $(DEF5EXPORT10) >>$@.tmpfile
794 .ENDIF
795 .IF "$(DEF5EXPORT11)"!=""
796 $(COMMAND_ECHO)echo $(DEF5EXPORT11) >>$@.tmpfile
797 .ENDIF
798 .IF "$(DEF5EXPORT12)"!=""
799 $(COMMAND_ECHO)echo $(DEF5EXPORT12) >>$@.tmpfile
800 .ENDIF
801 .IF "$(DEF5EXPORT13)"!=""
802 $(COMMAND_ECHO)echo $(DEF5EXPORT13) >>$@.tmpfile
803 .ENDIF
804 .IF "$(DEF5EXPORT14)"!=""
805 $(COMMAND_ECHO)echo $(DEF5EXPORT14) >>$@.tmpfile
806 .ENDIF
807 .IF "$(DEF5EXPORT15)"!=""
808 $(COMMAND_ECHO)echo $(DEF5EXPORT15) >>$@.tmpfile
809 .ENDIF
810 .IF "$(DEF5EXPORT16)"!=""
811 $(COMMAND_ECHO)echo $(DEF5EXPORT16) >>$@.tmpfile
812 .ENDIF
813 .IF "$(DEF5EXPORT17)"!=""
814 $(COMMAND_ECHO)echo $(DEF5EXPORT17) >>$@.tmpfile
815 .ENDIF
816 .IF "$(DEF5EXPORT18)"!=""
817 $(COMMAND_ECHO)echo $(DEF5EXPORT18) >>$@.tmpfile
818 .ENDIF
819 .IF "$(DEF5EXPORT19)"!=""
820 $(COMMAND_ECHO)echo $(DEF5EXPORT19) >>$@.tmpfile
821 .ENDIF
822 .IF "$(DEF5EXPORT20)"!=""
823 $(COMMAND_ECHO)echo $(DEF5EXPORT20) >>$@.tmpfile
824 .ENDIF
825 .IF "$(DEF5EXPORTFILE)"!=""
826 .IF "$(COM)"=="GCC"
827 $(COMMAND_ECHO)$(TYPE) $(DEF5EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
828 .ELSE
829 $(COMMAND_ECHO)$(TYPE) $(DEF5EXPORTFILE) >> $@.tmpfile
830 .ENDIF
831 .ENDIF
832 $(COMMAND_ECHO)-$(RM) $@
833 $(COMMAND_ECHO)$(RENAME) $@.tmpfile $@
834 .ENDIF # "$(GUI)"=="WNT"
836 .IF "$(GUI)"=="UNX"
837 $(DEF5TARGETN): \
838 $(DEF5DEPN) \
839 $(DEF5EXPORTFILE)
840 $(COMMAND_ECHO)echo just a dummy for UNIX > $@
841 .ENDIF
842 .ENDIF # "$(DEF5TARGETN)"!=""
845 # Anweisungen fuer das Linken
846 # unroll begin
848 .IF "$(DEF6TARGETN)"!=""
850 #to make intuitiv naming work
851 .IF "$(DEF6LIBNAME)"!=""
852 DEFLIB6NAME*=$(DEF6LIBNAME)
853 .ENDIF # "$(DEF6LIBNAME)"!=""
855 .IF "$(DEFLIB6NAME)"!=""
856 DEF6DEPN+=$(foreach,i,$(DEFLIB6NAME) $(SLB)/$(i).lib)
857 .ENDIF
859 .IF "$(SHL6VERSIONMAP)"!=""
860 .IF "$(DEF6EXPORTFILE)"==""
861 .IF "$(GUI)"=="WNT"
862 DEF6EXPORTFILE=$(MISC)/$(SHL6VERSIONMAP:b)_$(SHL6TARGET).dxp
863 .IF "$(COM)"=="GCC"
864 $(DEF6EXPORTFILE) : $(SHL6OBJS) $(SHL6LIBS)
865 .ENDIF # .IF "$(COM)"=="GCC"
867 $(DEF6EXPORTFILE) : $(SHL6VERSIONMAP)
868 $(COMMAND_ECHO)$(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
869 .IF "$(COM)"=="GCC"
870 $(COMMAND_ECHO)-$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
871 $(COMMAND_ECHO)-$(GREP) "\*\|?" $@ > $@.symbols-regexp
872 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
873 # Extract RTTI symbols from all the objects that will be used to build a shared library
874 $(COMMAND_ECHO)$(NM) -gP $(SHL6OBJS) \
875 `$(TYPE) /dev/null $(foreach,j,$(SHL6LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
876 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
877 # overwrite the map file generate into the local output tree with the generated
878 # exported symbols list
879 $(COMMAND_ECHO)$(RENAME) $@.exported-symbols $@
880 .ENDIF # .IF "$(COM)"=="GCC"
882 .ENDIF # "$(GUI)"=="WNT"
884 .ENDIF # "$(DEF6EXPORTFILE)"==""
885 .ENDIF # "$(SHL6VERSIONMAP)"!=""
887 .IF "$(GUI)"=="WNT"
889 DEF6FILTER=$(SOLARENV)/inc/dummy.flt
891 RMHACK6:=$(RM)
893 .IF "$(DEF6CEXP)"!=""
894 EXPORT_ALL_SWITCH=-A $(DEF6CEXP)
895 .ENDIF
897 .IF "$(link_always)"==""
898 $(DEF6TARGETN) : \
899 $(DEF6DEPN) \
900 $(DEF6EXPORTFILE)
901 .ELSE # "$(link_always)"==""
902 $(DEF6TARGETN) .PHONY :
903 .ENDIF # "$(link_always)"==""
904 $(COMMAND_ECHO)-$(RM) $@.tmpfile
905 @echo "Making: module definition file" $(@:f)
906 $(COMMAND_ECHO)echo LIBRARY $(EMQ)"$(SHL6TARGETN:f)$(EMQ)" >$@.tmpfile
907 .IF "$(COM)"!="GCC"
908 $(COMMAND_ECHO)echo HEAPSIZE 0 >>$@.tmpfile
909 .ENDIF
910 $(COMMAND_ECHO)echo EXPORTS >>$@.tmpfile
911 .IF "$(VERSIONOBJ)"!=""
912 # getversioninfo fuer alle!!
913 $(COMMAND_ECHO)echo GetVersionInfo >>$@.tmpfile
914 .ENDIF
915 .IF "$(DEFLIB6NAME)"!=""
916 .IF "$(COM)"=="GCC"
917 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL6TARGET).exp
918 $(COMMAND_ECHO)$(DLLTOOL) --output-def $(MISC)/$(SHL6TARGET).exp --export-all-symbols \
919 `$(TYPE) $(foreach,i,$(DEFLIB6NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
920 $(COMMAND_ECHO)tail --lines +3 $(MISC)/$(SHL6TARGET).exp | sed '/^;/d' >>$@.tmpfile
921 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL6TARGET).exp
922 .ELSE
923 .IF "$(SHL6USE_EXPORTS)"==""
924 $(COMMAND_ECHO)-$(RMHACK6) $(MISC)/$(SHL6TARGET).exp
925 $(COMMAND_ECHO)$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL6TARGET).exp $(SLB)/$(DEFLIB6NAME).lib
926 $(COMMAND_ECHO)$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL6TARGET).flt $(MISC)/$(SHL6TARGET).exp >>$@.tmpfile
927 $(COMMAND_ECHO)$(RMHACK6) $(MISC)/$(SHL6TARGET).exp
928 .ELSE # "$(SHL6USE_EXPORTS)"==""
929 $(COMMAND_ECHO)$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB6NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL6TARGET).direct
930 $(COMMAND_ECHO)$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF6FILTER) $(MISC)/$(SHL6TARGET).direct >>$@.tmpfile
931 .ENDIF # "$(SHL6USE_EXPORTS)"==""
932 .ENDIF
933 .ENDIF # "$(DEFLIB6NAME)"!=""
934 .IF "$(DEF6EXPORT1)"!=""
935 $(COMMAND_ECHO)echo $(DEF6EXPORT1) >>$@.tmpfile
936 .ENDIF
937 .IF "$(DEF6EXPORT2)"!=""
938 $(COMMAND_ECHO)echo $(DEF6EXPORT2) >>$@.tmpfile
939 .ENDIF
940 .IF "$(DEF6EXPORT3)"!=""
941 $(COMMAND_ECHO)echo $(DEF6EXPORT3) >>$@.tmpfile
942 .ENDIF
943 .IF "$(DEF6EXPORT4)"!=""
944 $(COMMAND_ECHO)echo $(DEF6EXPORT4) >>$@.tmpfile
945 .ENDIF
946 .IF "$(DEF6EXPORT5)"!=""
947 $(COMMAND_ECHO)echo $(DEF6EXPORT5) >>$@.tmpfile
948 .ENDIF
949 .IF "$(DEF6EXPORT6)"!=""
950 $(COMMAND_ECHO)echo $(DEF6EXPORT6) >>$@.tmpfile
951 .ENDIF
952 .IF "$(DEF6EXPORT7)"!=""
953 $(COMMAND_ECHO)echo $(DEF6EXPORT7) >>$@.tmpfile
954 .ENDIF
955 .IF "$(DEF6EXPORT8)"!=""
956 $(COMMAND_ECHO)echo $(DEF6EXPORT8) >>$@.tmpfile
957 .ENDIF
958 .IF "$(DEF6EXPORT9)"!=""
959 $(COMMAND_ECHO)echo $(DEF6EXPORT9) >>$@.tmpfile
960 .ENDIF
961 .IF "$(DEF6EXPORT10)"!=""
962 $(COMMAND_ECHO)echo $(DEF6EXPORT10) >>$@.tmpfile
963 .ENDIF
964 .IF "$(DEF6EXPORT11)"!=""
965 $(COMMAND_ECHO)echo $(DEF6EXPORT11) >>$@.tmpfile
966 .ENDIF
967 .IF "$(DEF6EXPORT12)"!=""
968 $(COMMAND_ECHO)echo $(DEF6EXPORT12) >>$@.tmpfile
969 .ENDIF
970 .IF "$(DEF6EXPORT13)"!=""
971 $(COMMAND_ECHO)echo $(DEF6EXPORT13) >>$@.tmpfile
972 .ENDIF
973 .IF "$(DEF6EXPORT14)"!=""
974 $(COMMAND_ECHO)echo $(DEF6EXPORT14) >>$@.tmpfile
975 .ENDIF
976 .IF "$(DEF6EXPORT15)"!=""
977 $(COMMAND_ECHO)echo $(DEF6EXPORT15) >>$@.tmpfile
978 .ENDIF
979 .IF "$(DEF6EXPORT16)"!=""
980 $(COMMAND_ECHO)echo $(DEF6EXPORT16) >>$@.tmpfile
981 .ENDIF
982 .IF "$(DEF6EXPORT17)"!=""
983 $(COMMAND_ECHO)echo $(DEF6EXPORT17) >>$@.tmpfile
984 .ENDIF
985 .IF "$(DEF6EXPORT18)"!=""
986 $(COMMAND_ECHO)echo $(DEF6EXPORT18) >>$@.tmpfile
987 .ENDIF
988 .IF "$(DEF6EXPORT19)"!=""
989 $(COMMAND_ECHO)echo $(DEF6EXPORT19) >>$@.tmpfile
990 .ENDIF
991 .IF "$(DEF6EXPORT20)"!=""
992 $(COMMAND_ECHO)echo $(DEF6EXPORT20) >>$@.tmpfile
993 .ENDIF
994 .IF "$(DEF6EXPORTFILE)"!=""
995 .IF "$(COM)"=="GCC"
996 $(COMMAND_ECHO)$(TYPE) $(DEF6EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
997 .ELSE
998 $(COMMAND_ECHO)$(TYPE) $(DEF6EXPORTFILE) >> $@.tmpfile
999 .ENDIF
1000 .ENDIF
1001 $(COMMAND_ECHO)-$(RM) $@
1002 $(COMMAND_ECHO)$(RENAME) $@.tmpfile $@
1003 .ENDIF # "$(GUI)"=="WNT"
1005 .IF "$(GUI)"=="UNX"
1006 $(DEF6TARGETN): \
1007 $(DEF6DEPN) \
1008 $(DEF6EXPORTFILE)
1009 $(COMMAND_ECHO)echo just a dummy for UNIX > $@
1010 .ENDIF
1011 .ENDIF # "$(DEF6TARGETN)"!=""
1014 # Anweisungen fuer das Linken
1015 # unroll begin
1017 .IF "$(DEF7TARGETN)"!=""
1019 #to make intuitiv naming work
1020 .IF "$(DEF7LIBNAME)"!=""
1021 DEFLIB7NAME*=$(DEF7LIBNAME)
1022 .ENDIF # "$(DEF7LIBNAME)"!=""
1024 .IF "$(DEFLIB7NAME)"!=""
1025 DEF7DEPN+=$(foreach,i,$(DEFLIB7NAME) $(SLB)/$(i).lib)
1026 .ENDIF
1028 .IF "$(SHL7VERSIONMAP)"!=""
1029 .IF "$(DEF7EXPORTFILE)"==""
1030 .IF "$(GUI)"=="WNT"
1031 DEF7EXPORTFILE=$(MISC)/$(SHL7VERSIONMAP:b)_$(SHL7TARGET).dxp
1032 .IF "$(COM)"=="GCC"
1033 $(DEF7EXPORTFILE) : $(SHL7OBJS) $(SHL7LIBS)
1034 .ENDIF # .IF "$(COM)"=="GCC"
1036 $(DEF7EXPORTFILE) : $(SHL7VERSIONMAP)
1037 $(COMMAND_ECHO)$(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
1038 .IF "$(COM)"=="GCC"
1039 $(COMMAND_ECHO)-$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
1040 $(COMMAND_ECHO)-$(GREP) "\*\|?" $@ > $@.symbols-regexp
1041 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
1042 # Extract RTTI symbols from all the objects that will be used to build a shared library
1043 $(COMMAND_ECHO)$(NM) -gP $(SHL7OBJS) \
1044 `$(TYPE) /dev/null $(foreach,j,$(SHL7LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
1045 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
1046 # overwrite the map file generate into the local output tree with the generated
1047 # exported symbols list
1048 $(COMMAND_ECHO)$(RENAME) $@.exported-symbols $@
1049 .ENDIF # .IF "$(COM)"=="GCC"
1051 .ENDIF # "$(GUI)"=="WNT"
1053 .ENDIF # "$(DEF7EXPORTFILE)"==""
1054 .ENDIF # "$(SHL7VERSIONMAP)"!=""
1056 .IF "$(GUI)"=="WNT"
1058 DEF7FILTER=$(SOLARENV)/inc/dummy.flt
1060 RMHACK7:=$(RM)
1062 .IF "$(DEF7CEXP)"!=""
1063 EXPORT_ALL_SWITCH=-A $(DEF7CEXP)
1064 .ENDIF
1066 .IF "$(link_always)"==""
1067 $(DEF7TARGETN) : \
1068 $(DEF7DEPN) \
1069 $(DEF7EXPORTFILE)
1070 .ELSE # "$(link_always)"==""
1071 $(DEF7TARGETN) .PHONY :
1072 .ENDIF # "$(link_always)"==""
1073 $(COMMAND_ECHO)-$(RM) $@.tmpfile
1074 @echo "Making: module definition file" $(@:f)
1075 $(COMMAND_ECHO)echo LIBRARY $(EMQ)"$(SHL7TARGETN:f)$(EMQ)" >$@.tmpfile
1076 .IF "$(COM)"!="GCC"
1077 $(COMMAND_ECHO)echo HEAPSIZE 0 >>$@.tmpfile
1078 .ENDIF
1079 $(COMMAND_ECHO)echo EXPORTS >>$@.tmpfile
1080 .IF "$(VERSIONOBJ)"!=""
1081 # getversioninfo fuer alle!!
1082 $(COMMAND_ECHO)echo GetVersionInfo >>$@.tmpfile
1083 .ENDIF
1084 .IF "$(DEFLIB7NAME)"!=""
1085 .IF "$(COM)"=="GCC"
1086 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL7TARGET).exp
1087 $(COMMAND_ECHO)$(DLLTOOL) --output-def $(MISC)/$(SHL7TARGET).exp --export-all-symbols \
1088 `$(TYPE) $(foreach,i,$(DEFLIB7NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
1089 $(COMMAND_ECHO)tail --lines +3 $(MISC)/$(SHL7TARGET).exp | sed '/^;/d' >>$@.tmpfile
1090 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL7TARGET).exp
1091 .ELSE
1092 .IF "$(SHL7USE_EXPORTS)"==""
1093 $(COMMAND_ECHO)-$(RMHACK7) $(MISC)/$(SHL7TARGET).exp
1094 $(COMMAND_ECHO)$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL7TARGET).exp $(SLB)/$(DEFLIB7NAME).lib
1095 $(COMMAND_ECHO)$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL7TARGET).flt $(MISC)/$(SHL7TARGET).exp >>$@.tmpfile
1096 $(COMMAND_ECHO)$(RMHACK7) $(MISC)/$(SHL7TARGET).exp
1097 .ELSE # "$(SHL7USE_EXPORTS)"==""
1098 $(COMMAND_ECHO)$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB7NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL7TARGET).direct
1099 $(COMMAND_ECHO)$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF7FILTER) $(MISC)/$(SHL7TARGET).direct >>$@.tmpfile
1100 .ENDIF # "$(SHL7USE_EXPORTS)"==""
1101 .ENDIF
1102 .ENDIF # "$(DEFLIB7NAME)"!=""
1103 .IF "$(DEF7EXPORT1)"!=""
1104 $(COMMAND_ECHO)echo $(DEF7EXPORT1) >>$@.tmpfile
1105 .ENDIF
1106 .IF "$(DEF7EXPORT2)"!=""
1107 $(COMMAND_ECHO)echo $(DEF7EXPORT2) >>$@.tmpfile
1108 .ENDIF
1109 .IF "$(DEF7EXPORT3)"!=""
1110 $(COMMAND_ECHO)echo $(DEF7EXPORT3) >>$@.tmpfile
1111 .ENDIF
1112 .IF "$(DEF7EXPORT4)"!=""
1113 $(COMMAND_ECHO)echo $(DEF7EXPORT4) >>$@.tmpfile
1114 .ENDIF
1115 .IF "$(DEF7EXPORT5)"!=""
1116 $(COMMAND_ECHO)echo $(DEF7EXPORT5) >>$@.tmpfile
1117 .ENDIF
1118 .IF "$(DEF7EXPORT6)"!=""
1119 $(COMMAND_ECHO)echo $(DEF7EXPORT6) >>$@.tmpfile
1120 .ENDIF
1121 .IF "$(DEF7EXPORT7)"!=""
1122 $(COMMAND_ECHO)echo $(DEF7EXPORT7) >>$@.tmpfile
1123 .ENDIF
1124 .IF "$(DEF7EXPORT8)"!=""
1125 $(COMMAND_ECHO)echo $(DEF7EXPORT8) >>$@.tmpfile
1126 .ENDIF
1127 .IF "$(DEF7EXPORT9)"!=""
1128 $(COMMAND_ECHO)echo $(DEF7EXPORT9) >>$@.tmpfile
1129 .ENDIF
1130 .IF "$(DEF7EXPORT10)"!=""
1131 $(COMMAND_ECHO)echo $(DEF7EXPORT10) >>$@.tmpfile
1132 .ENDIF
1133 .IF "$(DEF7EXPORT11)"!=""
1134 $(COMMAND_ECHO)echo $(DEF7EXPORT11) >>$@.tmpfile
1135 .ENDIF
1136 .IF "$(DEF7EXPORT12)"!=""
1137 $(COMMAND_ECHO)echo $(DEF7EXPORT12) >>$@.tmpfile
1138 .ENDIF
1139 .IF "$(DEF7EXPORT13)"!=""
1140 $(COMMAND_ECHO)echo $(DEF7EXPORT13) >>$@.tmpfile
1141 .ENDIF
1142 .IF "$(DEF7EXPORT14)"!=""
1143 $(COMMAND_ECHO)echo $(DEF7EXPORT14) >>$@.tmpfile
1144 .ENDIF
1145 .IF "$(DEF7EXPORT15)"!=""
1146 $(COMMAND_ECHO)echo $(DEF7EXPORT15) >>$@.tmpfile
1147 .ENDIF
1148 .IF "$(DEF7EXPORT16)"!=""
1149 $(COMMAND_ECHO)echo $(DEF7EXPORT16) >>$@.tmpfile
1150 .ENDIF
1151 .IF "$(DEF7EXPORT17)"!=""
1152 $(COMMAND_ECHO)echo $(DEF7EXPORT17) >>$@.tmpfile
1153 .ENDIF
1154 .IF "$(DEF7EXPORT18)"!=""
1155 $(COMMAND_ECHO)echo $(DEF7EXPORT18) >>$@.tmpfile
1156 .ENDIF
1157 .IF "$(DEF7EXPORT19)"!=""
1158 $(COMMAND_ECHO)echo $(DEF7EXPORT19) >>$@.tmpfile
1159 .ENDIF
1160 .IF "$(DEF7EXPORT20)"!=""
1161 $(COMMAND_ECHO)echo $(DEF7EXPORT20) >>$@.tmpfile
1162 .ENDIF
1163 .IF "$(DEF7EXPORTFILE)"!=""
1164 .IF "$(COM)"=="GCC"
1165 $(COMMAND_ECHO)$(TYPE) $(DEF7EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
1166 .ELSE
1167 $(COMMAND_ECHO)$(TYPE) $(DEF7EXPORTFILE) >> $@.tmpfile
1168 .ENDIF
1169 .ENDIF
1170 $(COMMAND_ECHO)-$(RM) $@
1171 $(COMMAND_ECHO)$(RENAME) $@.tmpfile $@
1172 .ENDIF # "$(GUI)"=="WNT"
1174 .IF "$(GUI)"=="UNX"
1175 $(DEF7TARGETN): \
1176 $(DEF7DEPN) \
1177 $(DEF7EXPORTFILE)
1178 $(COMMAND_ECHO)echo just a dummy for UNIX > $@
1179 .ENDIF
1180 .ENDIF # "$(DEF7TARGETN)"!=""
1183 # Anweisungen fuer das Linken
1184 # unroll begin
1186 .IF "$(DEF8TARGETN)"!=""
1188 #to make intuitiv naming work
1189 .IF "$(DEF8LIBNAME)"!=""
1190 DEFLIB8NAME*=$(DEF8LIBNAME)
1191 .ENDIF # "$(DEF8LIBNAME)"!=""
1193 .IF "$(DEFLIB8NAME)"!=""
1194 DEF8DEPN+=$(foreach,i,$(DEFLIB8NAME) $(SLB)/$(i).lib)
1195 .ENDIF
1197 .IF "$(SHL8VERSIONMAP)"!=""
1198 .IF "$(DEF8EXPORTFILE)"==""
1199 .IF "$(GUI)"=="WNT"
1200 DEF8EXPORTFILE=$(MISC)/$(SHL8VERSIONMAP:b)_$(SHL8TARGET).dxp
1201 .IF "$(COM)"=="GCC"
1202 $(DEF8EXPORTFILE) : $(SHL8OBJS) $(SHL8LIBS)
1203 .ENDIF # .IF "$(COM)"=="GCC"
1205 $(DEF8EXPORTFILE) : $(SHL8VERSIONMAP)
1206 $(COMMAND_ECHO)$(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
1207 .IF "$(COM)"=="GCC"
1208 $(COMMAND_ECHO)-$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
1209 $(COMMAND_ECHO)-$(GREP) "\*\|?" $@ > $@.symbols-regexp
1210 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
1211 # Extract RTTI symbols from all the objects that will be used to build a shared library
1212 $(COMMAND_ECHO)$(NM) -gP $(SHL8OBJS) \
1213 `$(TYPE) /dev/null $(foreach,j,$(SHL8LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
1214 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
1215 # overwrite the map file generate into the local output tree with the generated
1216 # exported symbols list
1217 $(COMMAND_ECHO)$(RENAME) $@.exported-symbols $@
1218 .ENDIF # .IF "$(COM)"=="GCC"
1220 .ENDIF # "$(GUI)"=="WNT"
1222 .ENDIF # "$(DEF8EXPORTFILE)"==""
1223 .ENDIF # "$(SHL8VERSIONMAP)"!=""
1225 .IF "$(GUI)"=="WNT"
1227 DEF8FILTER=$(SOLARENV)/inc/dummy.flt
1229 RMHACK8:=$(RM)
1231 .IF "$(DEF8CEXP)"!=""
1232 EXPORT_ALL_SWITCH=-A $(DEF8CEXP)
1233 .ENDIF
1235 .IF "$(link_always)"==""
1236 $(DEF8TARGETN) : \
1237 $(DEF8DEPN) \
1238 $(DEF8EXPORTFILE)
1239 .ELSE # "$(link_always)"==""
1240 $(DEF8TARGETN) .PHONY :
1241 .ENDIF # "$(link_always)"==""
1242 $(COMMAND_ECHO)-$(RM) $@.tmpfile
1243 @echo "Making: module definition file" $(@:f)
1244 $(COMMAND_ECHO)echo LIBRARY $(EMQ)"$(SHL8TARGETN:f)$(EMQ)" >$@.tmpfile
1245 .IF "$(COM)"!="GCC"
1246 $(COMMAND_ECHO)echo HEAPSIZE 0 >>$@.tmpfile
1247 .ENDIF
1248 $(COMMAND_ECHO)echo EXPORTS >>$@.tmpfile
1249 .IF "$(VERSIONOBJ)"!=""
1250 # getversioninfo fuer alle!!
1251 $(COMMAND_ECHO)echo GetVersionInfo >>$@.tmpfile
1252 .ENDIF
1253 .IF "$(DEFLIB8NAME)"!=""
1254 .IF "$(COM)"=="GCC"
1255 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL8TARGET).exp
1256 $(COMMAND_ECHO)$(DLLTOOL) --output-def $(MISC)/$(SHL8TARGET).exp --export-all-symbols \
1257 `$(TYPE) $(foreach,i,$(DEFLIB8NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
1258 $(COMMAND_ECHO)tail --lines +3 $(MISC)/$(SHL8TARGET).exp | sed '/^;/d' >>$@.tmpfile
1259 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL8TARGET).exp
1260 .ELSE
1261 .IF "$(SHL8USE_EXPORTS)"==""
1262 $(COMMAND_ECHO)-$(RMHACK8) $(MISC)/$(SHL8TARGET).exp
1263 $(COMMAND_ECHO)$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL8TARGET).exp $(SLB)/$(DEFLIB8NAME).lib
1264 $(COMMAND_ECHO)$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL8TARGET).flt $(MISC)/$(SHL8TARGET).exp >>$@.tmpfile
1265 $(COMMAND_ECHO)$(RMHACK8) $(MISC)/$(SHL8TARGET).exp
1266 .ELSE # "$(SHL8USE_EXPORTS)"==""
1267 $(COMMAND_ECHO)$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB8NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL8TARGET).direct
1268 $(COMMAND_ECHO)$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF8FILTER) $(MISC)/$(SHL8TARGET).direct >>$@.tmpfile
1269 .ENDIF # "$(SHL8USE_EXPORTS)"==""
1270 .ENDIF
1271 .ENDIF # "$(DEFLIB8NAME)"!=""
1272 .IF "$(DEF8EXPORT1)"!=""
1273 $(COMMAND_ECHO)echo $(DEF8EXPORT1) >>$@.tmpfile
1274 .ENDIF
1275 .IF "$(DEF8EXPORT2)"!=""
1276 $(COMMAND_ECHO)echo $(DEF8EXPORT2) >>$@.tmpfile
1277 .ENDIF
1278 .IF "$(DEF8EXPORT3)"!=""
1279 $(COMMAND_ECHO)echo $(DEF8EXPORT3) >>$@.tmpfile
1280 .ENDIF
1281 .IF "$(DEF8EXPORT4)"!=""
1282 $(COMMAND_ECHO)echo $(DEF8EXPORT4) >>$@.tmpfile
1283 .ENDIF
1284 .IF "$(DEF8EXPORT5)"!=""
1285 $(COMMAND_ECHO)echo $(DEF8EXPORT5) >>$@.tmpfile
1286 .ENDIF
1287 .IF "$(DEF8EXPORT6)"!=""
1288 $(COMMAND_ECHO)echo $(DEF8EXPORT6) >>$@.tmpfile
1289 .ENDIF
1290 .IF "$(DEF8EXPORT7)"!=""
1291 $(COMMAND_ECHO)echo $(DEF8EXPORT7) >>$@.tmpfile
1292 .ENDIF
1293 .IF "$(DEF8EXPORT8)"!=""
1294 $(COMMAND_ECHO)echo $(DEF8EXPORT8) >>$@.tmpfile
1295 .ENDIF
1296 .IF "$(DEF8EXPORT9)"!=""
1297 $(COMMAND_ECHO)echo $(DEF8EXPORT9) >>$@.tmpfile
1298 .ENDIF
1299 .IF "$(DEF8EXPORT10)"!=""
1300 $(COMMAND_ECHO)echo $(DEF8EXPORT10) >>$@.tmpfile
1301 .ENDIF
1302 .IF "$(DEF8EXPORT11)"!=""
1303 $(COMMAND_ECHO)echo $(DEF8EXPORT11) >>$@.tmpfile
1304 .ENDIF
1305 .IF "$(DEF8EXPORT12)"!=""
1306 $(COMMAND_ECHO)echo $(DEF8EXPORT12) >>$@.tmpfile
1307 .ENDIF
1308 .IF "$(DEF8EXPORT13)"!=""
1309 $(COMMAND_ECHO)echo $(DEF8EXPORT13) >>$@.tmpfile
1310 .ENDIF
1311 .IF "$(DEF8EXPORT14)"!=""
1312 $(COMMAND_ECHO)echo $(DEF8EXPORT14) >>$@.tmpfile
1313 .ENDIF
1314 .IF "$(DEF8EXPORT15)"!=""
1315 $(COMMAND_ECHO)echo $(DEF8EXPORT15) >>$@.tmpfile
1316 .ENDIF
1317 .IF "$(DEF8EXPORT16)"!=""
1318 $(COMMAND_ECHO)echo $(DEF8EXPORT16) >>$@.tmpfile
1319 .ENDIF
1320 .IF "$(DEF8EXPORT17)"!=""
1321 $(COMMAND_ECHO)echo $(DEF8EXPORT17) >>$@.tmpfile
1322 .ENDIF
1323 .IF "$(DEF8EXPORT18)"!=""
1324 $(COMMAND_ECHO)echo $(DEF8EXPORT18) >>$@.tmpfile
1325 .ENDIF
1326 .IF "$(DEF8EXPORT19)"!=""
1327 $(COMMAND_ECHO)echo $(DEF8EXPORT19) >>$@.tmpfile
1328 .ENDIF
1329 .IF "$(DEF8EXPORT20)"!=""
1330 $(COMMAND_ECHO)echo $(DEF8EXPORT20) >>$@.tmpfile
1331 .ENDIF
1332 .IF "$(DEF8EXPORTFILE)"!=""
1333 .IF "$(COM)"=="GCC"
1334 $(COMMAND_ECHO)$(TYPE) $(DEF8EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
1335 .ELSE
1336 $(COMMAND_ECHO)$(TYPE) $(DEF8EXPORTFILE) >> $@.tmpfile
1337 .ENDIF
1338 .ENDIF
1339 $(COMMAND_ECHO)-$(RM) $@
1340 $(COMMAND_ECHO)$(RENAME) $@.tmpfile $@
1341 .ENDIF # "$(GUI)"=="WNT"
1343 .IF "$(GUI)"=="UNX"
1344 $(DEF8TARGETN): \
1345 $(DEF8DEPN) \
1346 $(DEF8EXPORTFILE)
1347 $(COMMAND_ECHO)echo just a dummy for UNIX > $@
1348 .ENDIF
1349 .ENDIF # "$(DEF8TARGETN)"!=""
1352 # Anweisungen fuer das Linken
1353 # unroll begin
1355 .IF "$(DEF9TARGETN)"!=""
1357 #to make intuitiv naming work
1358 .IF "$(DEF9LIBNAME)"!=""
1359 DEFLIB9NAME*=$(DEF9LIBNAME)
1360 .ENDIF # "$(DEF9LIBNAME)"!=""
1362 .IF "$(DEFLIB9NAME)"!=""
1363 DEF9DEPN+=$(foreach,i,$(DEFLIB9NAME) $(SLB)/$(i).lib)
1364 .ENDIF
1366 .IF "$(SHL9VERSIONMAP)"!=""
1367 .IF "$(DEF9EXPORTFILE)"==""
1368 .IF "$(GUI)"=="WNT"
1369 DEF9EXPORTFILE=$(MISC)/$(SHL9VERSIONMAP:b)_$(SHL9TARGET).dxp
1370 .IF "$(COM)"=="GCC"
1371 $(DEF9EXPORTFILE) : $(SHL9OBJS) $(SHL9LIBS)
1372 .ENDIF # .IF "$(COM)"=="GCC"
1374 $(DEF9EXPORTFILE) : $(SHL9VERSIONMAP)
1375 $(COMMAND_ECHO)$(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
1376 .IF "$(COM)"=="GCC"
1377 $(COMMAND_ECHO)-$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
1378 $(COMMAND_ECHO)-$(GREP) "\*\|?" $@ > $@.symbols-regexp
1379 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
1380 # Extract RTTI symbols from all the objects that will be used to build a shared library
1381 $(COMMAND_ECHO)$(NM) -gP $(SHL9OBJS) \
1382 `$(TYPE) /dev/null $(foreach,j,$(SHL9LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
1383 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
1384 # overwrite the map file generate into the local output tree with the generated
1385 # exported symbols list
1386 $(COMMAND_ECHO)$(RENAME) $@.exported-symbols $@
1387 .ENDIF # .IF "$(COM)"=="GCC"
1389 .ENDIF # "$(GUI)"=="WNT"
1391 .ENDIF # "$(DEF9EXPORTFILE)"==""
1392 .ENDIF # "$(SHL9VERSIONMAP)"!=""
1394 .IF "$(GUI)"=="WNT"
1396 DEF9FILTER=$(SOLARENV)/inc/dummy.flt
1398 RMHACK9:=$(RM)
1400 .IF "$(DEF9CEXP)"!=""
1401 EXPORT_ALL_SWITCH=-A $(DEF9CEXP)
1402 .ENDIF
1404 .IF "$(link_always)"==""
1405 $(DEF9TARGETN) : \
1406 $(DEF9DEPN) \
1407 $(DEF9EXPORTFILE)
1408 .ELSE # "$(link_always)"==""
1409 $(DEF9TARGETN) .PHONY :
1410 .ENDIF # "$(link_always)"==""
1411 $(COMMAND_ECHO)-$(RM) $@.tmpfile
1412 @echo "Making: module definition file" $(@:f)
1413 $(COMMAND_ECHO)echo LIBRARY $(EMQ)"$(SHL9TARGETN:f)$(EMQ)" >$@.tmpfile
1414 .IF "$(COM)"!="GCC"
1415 $(COMMAND_ECHO)echo HEAPSIZE 0 >>$@.tmpfile
1416 .ENDIF
1417 $(COMMAND_ECHO)echo EXPORTS >>$@.tmpfile
1418 .IF "$(VERSIONOBJ)"!=""
1419 # getversioninfo fuer alle!!
1420 $(COMMAND_ECHO)echo GetVersionInfo >>$@.tmpfile
1421 .ENDIF
1422 .IF "$(DEFLIB9NAME)"!=""
1423 .IF "$(COM)"=="GCC"
1424 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL9TARGET).exp
1425 $(COMMAND_ECHO)$(DLLTOOL) --output-def $(MISC)/$(SHL9TARGET).exp --export-all-symbols \
1426 `$(TYPE) $(foreach,i,$(DEFLIB9NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
1427 $(COMMAND_ECHO)tail --lines +3 $(MISC)/$(SHL9TARGET).exp | sed '/^;/d' >>$@.tmpfile
1428 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL9TARGET).exp
1429 .ELSE
1430 .IF "$(SHL9USE_EXPORTS)"==""
1431 $(COMMAND_ECHO)-$(RMHACK9) $(MISC)/$(SHL9TARGET).exp
1432 $(COMMAND_ECHO)$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL9TARGET).exp $(SLB)/$(DEFLIB9NAME).lib
1433 $(COMMAND_ECHO)$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL9TARGET).flt $(MISC)/$(SHL9TARGET).exp >>$@.tmpfile
1434 $(COMMAND_ECHO)$(RMHACK9) $(MISC)/$(SHL9TARGET).exp
1435 .ELSE # "$(SHL9USE_EXPORTS)"==""
1436 $(COMMAND_ECHO)$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB9NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL9TARGET).direct
1437 $(COMMAND_ECHO)$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF9FILTER) $(MISC)/$(SHL9TARGET).direct >>$@.tmpfile
1438 .ENDIF # "$(SHL9USE_EXPORTS)"==""
1439 .ENDIF
1440 .ENDIF # "$(DEFLIB9NAME)"!=""
1441 .IF "$(DEF9EXPORT1)"!=""
1442 $(COMMAND_ECHO)echo $(DEF9EXPORT1) >>$@.tmpfile
1443 .ENDIF
1444 .IF "$(DEF9EXPORT2)"!=""
1445 $(COMMAND_ECHO)echo $(DEF9EXPORT2) >>$@.tmpfile
1446 .ENDIF
1447 .IF "$(DEF9EXPORT3)"!=""
1448 $(COMMAND_ECHO)echo $(DEF9EXPORT3) >>$@.tmpfile
1449 .ENDIF
1450 .IF "$(DEF9EXPORT4)"!=""
1451 $(COMMAND_ECHO)echo $(DEF9EXPORT4) >>$@.tmpfile
1452 .ENDIF
1453 .IF "$(DEF9EXPORT5)"!=""
1454 $(COMMAND_ECHO)echo $(DEF9EXPORT5) >>$@.tmpfile
1455 .ENDIF
1456 .IF "$(DEF9EXPORT6)"!=""
1457 $(COMMAND_ECHO)echo $(DEF9EXPORT6) >>$@.tmpfile
1458 .ENDIF
1459 .IF "$(DEF9EXPORT7)"!=""
1460 $(COMMAND_ECHO)echo $(DEF9EXPORT7) >>$@.tmpfile
1461 .ENDIF
1462 .IF "$(DEF9EXPORT8)"!=""
1463 $(COMMAND_ECHO)echo $(DEF9EXPORT8) >>$@.tmpfile
1464 .ENDIF
1465 .IF "$(DEF9EXPORT9)"!=""
1466 $(COMMAND_ECHO)echo $(DEF9EXPORT9) >>$@.tmpfile
1467 .ENDIF
1468 .IF "$(DEF9EXPORT10)"!=""
1469 $(COMMAND_ECHO)echo $(DEF9EXPORT10) >>$@.tmpfile
1470 .ENDIF
1471 .IF "$(DEF9EXPORT11)"!=""
1472 $(COMMAND_ECHO)echo $(DEF9EXPORT11) >>$@.tmpfile
1473 .ENDIF
1474 .IF "$(DEF9EXPORT12)"!=""
1475 $(COMMAND_ECHO)echo $(DEF9EXPORT12) >>$@.tmpfile
1476 .ENDIF
1477 .IF "$(DEF9EXPORT13)"!=""
1478 $(COMMAND_ECHO)echo $(DEF9EXPORT13) >>$@.tmpfile
1479 .ENDIF
1480 .IF "$(DEF9EXPORT14)"!=""
1481 $(COMMAND_ECHO)echo $(DEF9EXPORT14) >>$@.tmpfile
1482 .ENDIF
1483 .IF "$(DEF9EXPORT15)"!=""
1484 $(COMMAND_ECHO)echo $(DEF9EXPORT15) >>$@.tmpfile
1485 .ENDIF
1486 .IF "$(DEF9EXPORT16)"!=""
1487 $(COMMAND_ECHO)echo $(DEF9EXPORT16) >>$@.tmpfile
1488 .ENDIF
1489 .IF "$(DEF9EXPORT17)"!=""
1490 $(COMMAND_ECHO)echo $(DEF9EXPORT17) >>$@.tmpfile
1491 .ENDIF
1492 .IF "$(DEF9EXPORT18)"!=""
1493 $(COMMAND_ECHO)echo $(DEF9EXPORT18) >>$@.tmpfile
1494 .ENDIF
1495 .IF "$(DEF9EXPORT19)"!=""
1496 $(COMMAND_ECHO)echo $(DEF9EXPORT19) >>$@.tmpfile
1497 .ENDIF
1498 .IF "$(DEF9EXPORT20)"!=""
1499 $(COMMAND_ECHO)echo $(DEF9EXPORT20) >>$@.tmpfile
1500 .ENDIF
1501 .IF "$(DEF9EXPORTFILE)"!=""
1502 .IF "$(COM)"=="GCC"
1503 $(COMMAND_ECHO)$(TYPE) $(DEF9EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
1504 .ELSE
1505 $(COMMAND_ECHO)$(TYPE) $(DEF9EXPORTFILE) >> $@.tmpfile
1506 .ENDIF
1507 .ENDIF
1508 $(COMMAND_ECHO)-$(RM) $@
1509 $(COMMAND_ECHO)$(RENAME) $@.tmpfile $@
1510 .ENDIF # "$(GUI)"=="WNT"
1512 .IF "$(GUI)"=="UNX"
1513 $(DEF9TARGETN): \
1514 $(DEF9DEPN) \
1515 $(DEF9EXPORTFILE)
1516 $(COMMAND_ECHO)echo just a dummy for UNIX > $@
1517 .ENDIF
1518 .ENDIF # "$(DEF9TARGETN)"!=""
1521 # Anweisungen fuer das Linken
1522 # unroll begin
1524 .IF "$(DEF10TARGETN)"!=""
1526 #to make intuitiv naming work
1527 .IF "$(DEF10LIBNAME)"!=""
1528 DEFLIB10NAME*=$(DEF10LIBNAME)
1529 .ENDIF # "$(DEF10LIBNAME)"!=""
1531 .IF "$(DEFLIB10NAME)"!=""
1532 DEF10DEPN+=$(foreach,i,$(DEFLIB10NAME) $(SLB)/$(i).lib)
1533 .ENDIF
1535 .IF "$(SHL10VERSIONMAP)"!=""
1536 .IF "$(DEF10EXPORTFILE)"==""
1537 .IF "$(GUI)"=="WNT"
1538 DEF10EXPORTFILE=$(MISC)/$(SHL10VERSIONMAP:b)_$(SHL10TARGET).dxp
1539 .IF "$(COM)"=="GCC"
1540 $(DEF10EXPORTFILE) : $(SHL10OBJS) $(SHL10LIBS)
1541 .ENDIF # .IF "$(COM)"=="GCC"
1543 $(DEF10EXPORTFILE) : $(SHL10VERSIONMAP)
1544 $(COMMAND_ECHO)$(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
1545 .IF "$(COM)"=="GCC"
1546 $(COMMAND_ECHO)-$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
1547 $(COMMAND_ECHO)-$(GREP) "\*\|?" $@ > $@.symbols-regexp
1548 # Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
1549 # Extract RTTI symbols from all the objects that will be used to build a shared library
1550 $(COMMAND_ECHO)$(NM) -gP $(SHL10OBJS) \
1551 `$(TYPE) /dev/null $(foreach,j,$(SHL10LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
1552 | $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
1553 # overwrite the map file generate into the local output tree with the generated
1554 # exported symbols list
1555 $(COMMAND_ECHO)$(RENAME) $@.exported-symbols $@
1556 .ENDIF # .IF "$(COM)"=="GCC"
1558 .ENDIF # "$(GUI)"=="WNT"
1560 .ENDIF # "$(DEF10EXPORTFILE)"==""
1561 .ENDIF # "$(SHL10VERSIONMAP)"!=""
1563 .IF "$(GUI)"=="WNT"
1565 DEF10FILTER=$(SOLARENV)/inc/dummy.flt
1567 RMHACK10:=$(RM)
1569 .IF "$(DEF10CEXP)"!=""
1570 EXPORT_ALL_SWITCH=-A $(DEF10CEXP)
1571 .ENDIF
1573 .IF "$(link_always)"==""
1574 $(DEF10TARGETN) : \
1575 $(DEF10DEPN) \
1576 $(DEF10EXPORTFILE)
1577 .ELSE # "$(link_always)"==""
1578 $(DEF10TARGETN) .PHONY :
1579 .ENDIF # "$(link_always)"==""
1580 $(COMMAND_ECHO)-$(RM) $@.tmpfile
1581 @echo "Making: module definition file" $(@:f)
1582 $(COMMAND_ECHO)echo LIBRARY $(EMQ)"$(SHL10TARGETN:f)$(EMQ)" >$@.tmpfile
1583 .IF "$(COM)"!="GCC"
1584 $(COMMAND_ECHO)echo HEAPSIZE 0 >>$@.tmpfile
1585 .ENDIF
1586 $(COMMAND_ECHO)echo EXPORTS >>$@.tmpfile
1587 .IF "$(VERSIONOBJ)"!=""
1588 # getversioninfo fuer alle!!
1589 $(COMMAND_ECHO)echo GetVersionInfo >>$@.tmpfile
1590 .ENDIF
1591 .IF "$(DEFLIB10NAME)"!=""
1592 .IF "$(COM)"=="GCC"
1593 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL10TARGET).exp
1594 $(COMMAND_ECHO)$(DLLTOOL) --output-def $(MISC)/$(SHL10TARGET).exp --export-all-symbols \
1595 `$(TYPE) $(foreach,i,$(DEFLIB10NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
1596 $(COMMAND_ECHO)tail --lines +3 $(MISC)/$(SHL10TARGET).exp | sed '/^;/d' >>$@.tmpfile
1597 $(COMMAND_ECHO)-$(RM) $(MISC)/$(SHL10TARGET).exp
1598 .ELSE
1599 .IF "$(SHL10USE_EXPORTS)"==""
1600 $(COMMAND_ECHO)-$(RMHACK10) $(MISC)/$(SHL10TARGET).exp
1601 $(COMMAND_ECHO)$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL10TARGET).exp $(SLB)/$(DEFLIB10NAME).lib
1602 $(COMMAND_ECHO)$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL10TARGET).flt $(MISC)/$(SHL10TARGET).exp >>$@.tmpfile
1603 $(COMMAND_ECHO)$(RMHACK10) $(MISC)/$(SHL10TARGET).exp
1604 .ELSE # "$(SHL10USE_EXPORTS)"==""
1605 $(COMMAND_ECHO)$(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB10NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL10TARGET).direct
1606 $(COMMAND_ECHO)$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF10FILTER) $(MISC)/$(SHL10TARGET).direct >>$@.tmpfile
1607 .ENDIF # "$(SHL10USE_EXPORTS)"==""
1608 .ENDIF
1609 .ENDIF # "$(DEFLIB10NAME)"!=""
1610 .IF "$(DEF10EXPORT1)"!=""
1611 $(COMMAND_ECHO)echo $(DEF10EXPORT1) >>$@.tmpfile
1612 .ENDIF
1613 .IF "$(DEF10EXPORT2)"!=""
1614 $(COMMAND_ECHO)echo $(DEF10EXPORT2) >>$@.tmpfile
1615 .ENDIF
1616 .IF "$(DEF10EXPORT3)"!=""
1617 $(COMMAND_ECHO)echo $(DEF10EXPORT3) >>$@.tmpfile
1618 .ENDIF
1619 .IF "$(DEF10EXPORT4)"!=""
1620 $(COMMAND_ECHO)echo $(DEF10EXPORT4) >>$@.tmpfile
1621 .ENDIF
1622 .IF "$(DEF10EXPORT5)"!=""
1623 $(COMMAND_ECHO)echo $(DEF10EXPORT5) >>$@.tmpfile
1624 .ENDIF
1625 .IF "$(DEF10EXPORT6)"!=""
1626 $(COMMAND_ECHO)echo $(DEF10EXPORT6) >>$@.tmpfile
1627 .ENDIF
1628 .IF "$(DEF10EXPORT7)"!=""
1629 $(COMMAND_ECHO)echo $(DEF10EXPORT7) >>$@.tmpfile
1630 .ENDIF
1631 .IF "$(DEF10EXPORT8)"!=""
1632 $(COMMAND_ECHO)echo $(DEF10EXPORT8) >>$@.tmpfile
1633 .ENDIF
1634 .IF "$(DEF10EXPORT9)"!=""
1635 $(COMMAND_ECHO)echo $(DEF10EXPORT9) >>$@.tmpfile
1636 .ENDIF
1637 .IF "$(DEF10EXPORT10)"!=""
1638 $(COMMAND_ECHO)echo $(DEF10EXPORT10) >>$@.tmpfile
1639 .ENDIF
1640 .IF "$(DEF10EXPORT11)"!=""
1641 $(COMMAND_ECHO)echo $(DEF10EXPORT11) >>$@.tmpfile
1642 .ENDIF
1643 .IF "$(DEF10EXPORT12)"!=""
1644 $(COMMAND_ECHO)echo $(DEF10EXPORT12) >>$@.tmpfile
1645 .ENDIF
1646 .IF "$(DEF10EXPORT13)"!=""
1647 $(COMMAND_ECHO)echo $(DEF10EXPORT13) >>$@.tmpfile
1648 .ENDIF
1649 .IF "$(DEF10EXPORT14)"!=""
1650 $(COMMAND_ECHO)echo $(DEF10EXPORT14) >>$@.tmpfile
1651 .ENDIF
1652 .IF "$(DEF10EXPORT15)"!=""
1653 $(COMMAND_ECHO)echo $(DEF10EXPORT15) >>$@.tmpfile
1654 .ENDIF
1655 .IF "$(DEF10EXPORT16)"!=""
1656 $(COMMAND_ECHO)echo $(DEF10EXPORT16) >>$@.tmpfile
1657 .ENDIF
1658 .IF "$(DEF10EXPORT17)"!=""
1659 $(COMMAND_ECHO)echo $(DEF10EXPORT17) >>$@.tmpfile
1660 .ENDIF
1661 .IF "$(DEF10EXPORT18)"!=""
1662 $(COMMAND_ECHO)echo $(DEF10EXPORT18) >>$@.tmpfile
1663 .ENDIF
1664 .IF "$(DEF10EXPORT19)"!=""
1665 $(COMMAND_ECHO)echo $(DEF10EXPORT19) >>$@.tmpfile
1666 .ENDIF
1667 .IF "$(DEF10EXPORT20)"!=""
1668 $(COMMAND_ECHO)echo $(DEF10EXPORT20) >>$@.tmpfile
1669 .ENDIF
1670 .IF "$(DEF10EXPORTFILE)"!=""
1671 .IF "$(COM)"=="GCC"
1672 $(COMMAND_ECHO)$(TYPE) $(DEF10EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
1673 .ELSE
1674 $(COMMAND_ECHO)$(TYPE) $(DEF10EXPORTFILE) >> $@.tmpfile
1675 .ENDIF
1676 .ENDIF
1677 $(COMMAND_ECHO)-$(RM) $@
1678 $(COMMAND_ECHO)$(RENAME) $@.tmpfile $@
1679 .ENDIF # "$(GUI)"=="WNT"
1681 .IF "$(GUI)"=="UNX"
1682 $(DEF10TARGETN): \
1683 $(DEF10DEPN) \
1684 $(DEF10EXPORTFILE)
1685 $(COMMAND_ECHO)echo just a dummy for UNIX > $@
1686 .ENDIF
1687 .ENDIF # "$(DEF10TARGETN)"!=""
1690 # Anweisungen fuer das Linken