xref: /aoo42x/main/solenv/inc/tg_def.mk (revision 534c536d)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#######################################################
25cdf0e10cSrcweir# Anweisungen fuer das Linken
26cdf0e10cSrcweir# unroll begin
27cdf0e10cSrcweir
28cdf0e10cSrcweir.IF "$(DEF$(TNR)TARGETN)"!=""
29cdf0e10cSrcweir
30cdf0e10cSrcweir#to make intuitiv naming work
31cdf0e10cSrcweir.IF "$(DEF$(TNR)LIBNAME)"!=""
32cdf0e10cSrcweirDEFLIB$(TNR)NAME*=$(DEF$(TNR)LIBNAME)
33cdf0e10cSrcweir.ENDIF			# "$(DEF$(TNR)LIBNAME)"!=""
34cdf0e10cSrcweir
35cdf0e10cSrcweir.IF "$(DEFLIB$(TNR)NAME)"!=""
36cdf0e10cSrcweirDEF$(TNR)DEPN+=$(foreach,i,$(DEFLIB$(TNR)NAME) $(SLB)/$(i).lib)
37cdf0e10cSrcweir.ENDIF
38cdf0e10cSrcweir
39cdf0e10cSrcweir.IF "$(SHL$(TNR)VERSIONMAP)"!=""
40cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORTFILE)"==""
41cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
42cdf0e10cSrcweirDEF$(TNR)EXPORTFILE=$(MISC)/$(SHL$(TNR)VERSIONMAP:b)_$(SHL$(TNR)TARGET).dxp
43cdf0e10cSrcweir.IF "$(COM)"=="GCC"
44cdf0e10cSrcweir$(DEF$(TNR)EXPORTFILE) : $(SHL$(TNR)OBJS) $(SHL$(TNR)LIBS)
45cdf0e10cSrcweir.ENDIF # .IF "$(COM)"=="GCC"
46cdf0e10cSrcweir
47cdf0e10cSrcweir$(DEF$(TNR)EXPORTFILE) : $(SHL$(TNR)VERSIONMAP)
48cdf0e10cSrcweir	$(COMMAND_ECHO)$(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
49cdf0e10cSrcweir.IF "$(COM)"=="GCC"
50cdf0e10cSrcweir	$(COMMAND_ECHO)-$(GREP) -v "\*\|?" $@ | $(SED) -e 's@#.*@@' > $@.exported-symbols
51cdf0e10cSrcweir	$(COMMAND_ECHO)-$(GREP) "\*\|?" $@ > $@.symbols-regexp
52cdf0e10cSrcweir# Shared libraries will be build out of the *.obj files specified in SHL?OBJS and SHL?LIBS
53cdf0e10cSrcweir# Extract RTTI symbols from all the objects that will be used to build a shared library
54cdf0e10cSrcweir	$(COMMAND_ECHO)nm -gP $(SHL$(TNR)OBJS) \
55cdf0e10cSrcweir		`$(TYPE) /dev/null $(foreach,j,$(SHL$(TNR)LIBS) $j) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
56cdf0e10cSrcweir		| $(SOLARENV)/bin/addsym-mingw.sh $@.symbols-regexp $@.symbols-regexp.tmp >> $@.exported-symbols
57cdf0e10cSrcweir# overwrite the map file generate into the local output tree with the generated
58cdf0e10cSrcweir# exported symbols list
59cdf0e10cSrcweir	$(COMMAND_ECHO)$(RENAME) $@.exported-symbols $@
60cdf0e10cSrcweir.ENDIF # .IF "$(COM)"=="GCC"
61cdf0e10cSrcweir
62cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="WNT"
63cdf0e10cSrcweir
64cdf0e10cSrcweir.IF "$(GUI)"=="OS2"
65cdf0e10cSrcweirDEF$(TNR)EXPORTFILE=$(MISC)/$(SHL$(TNR)VERSIONMAP:b)_$(SHL$(TNR)TARGET).dxp
66cdf0e10cSrcweir$(DEF$(TNR)EXPORTFILE) : $(SHL$(TNR)VERSIONMAP)
67cdf0e10cSrcweir	$(TYPE) $< | $(AWK) -f $(SOLARENV)/bin/getcsym.awk > $@
68cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="OS2"
69cdf0e10cSrcweir
70cdf0e10cSrcweir.ENDIF			# "$(DEF$(TNR)EXPORTFILE)"==""
71cdf0e10cSrcweir.ENDIF			# "$(SHL$(TNR)VERSIONMAP)"!=""
72cdf0e10cSrcweir
73cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
74cdf0e10cSrcweir
75cdf0e10cSrcweirDEF$(TNR)FILTER=$(SOLARENV)/inc/dummy.flt
76cdf0e10cSrcweir
77cdf0e10cSrcweirRMHACK$(TNR):=$(RM)
78cdf0e10cSrcweir
79cdf0e10cSrcweir.IF "$(DEF$(TNR)CEXP)"!=""
80cdf0e10cSrcweirEXPORT_ALL_SWITCH=-A $(DEF$(TNR)CEXP)
81cdf0e10cSrcweir.ENDIF
82cdf0e10cSrcweir
83cdf0e10cSrcweir.IF "$(link_always)"==""
84cdf0e10cSrcweir$(DEF$(TNR)TARGETN) : \
85cdf0e10cSrcweir		$(DEF$(TNR)DEPN) \
86cdf0e10cSrcweir		$(DEF$(TNR)EXPORTFILE)
87cdf0e10cSrcweir.ELSE			# "$(link_always)"==""
88cdf0e10cSrcweir$(DEF$(TNR)TARGETN) .PHONY :
89cdf0e10cSrcweir.ENDIF			# "$(link_always)"==""
90cdf0e10cSrcweir	@-$(RM) $@.tmpfile
91cdf0e10cSrcweir	@echo "Making:    module definition file" $(@:f)
92cdf0e10cSrcweir	@echo LIBRARY	  $(EMQ)"$(SHL$(TNR)TARGETN:f)$(EMQ)" 								 >$@.tmpfile
93cdf0e10cSrcweir.IF "$(COM)"!="GCC"
94cdf0e10cSrcweir	@echo HEAPSIZE	  0 											>>$@.tmpfile
95cdf0e10cSrcweir.ENDIF
96cdf0e10cSrcweir	@echo EXPORTS													>>$@.tmpfile
97cdf0e10cSrcweir.IF "$(VERSIONOBJ)"!=""
98cdf0e10cSrcweir#	getversioninfo fuer alle!!
99cdf0e10cSrcweir	@echo GetVersionInfo		>>$@.tmpfile
100cdf0e10cSrcweir.ENDIF
101cdf0e10cSrcweir.IF "$(DEFLIB$(TNR)NAME)"!=""
102cdf0e10cSrcweir.IF "$(COM)"=="GCC"
103cdf0e10cSrcweir	@-$(RM) $(MISC)/$(SHL$(TNR)TARGET).exp
104cdf0e10cSrcweir	$(COMMAND_ECHO)dlltool --output-def $(MISC)/$(SHL$(TNR)TARGET).exp --export-all-symbols \
105cdf0e10cSrcweir		`$(TYPE) $(foreach,i,$(DEFLIB$(TNR)NAME) $(SLB)/$(i).lib) | sed s#$(ROUT)#$(PRJ)/$(ROUT)#g`
106cdf0e10cSrcweir	$(COMMAND_ECHO)tail --lines +3 $(MISC)/$(SHL$(TNR)TARGET).exp | sed '/^;/d' >>$@.tmpfile
107cdf0e10cSrcweir	@-$(RM) $(MISC)/$(SHL$(TNR)TARGET).exp
108cdf0e10cSrcweir.ELSE
109cdf0e10cSrcweir.IF "$(SHL$(TNR)USE_EXPORTS)"==""
110cdf0e10cSrcweir	@-$(RMHACK$(TNR)) $(MISC)/$(SHL$(TNR)TARGET).exp
111cdf0e10cSrcweir	@$(LIBMGR) -EXTRACT:/ /OUT:$(MISC)/$(SHL$(TNR)TARGET).exp $(SLB)/$(DEFLIB$(TNR)NAME).lib
112cdf0e10cSrcweir	@$(LDUMP2) -N $(EXPORT_ALL_SWITCH) -F $(MISC)/$(SHL$(TNR)TARGET).flt $(MISC)/$(SHL$(TNR)TARGET).exp			   >>$@.tmpfile
113cdf0e10cSrcweir	$(COMMAND_ECHO)$(RMHACK$(TNR)) $(MISC)/$(SHL$(TNR)TARGET).exp
114cdf0e10cSrcweir.ELSE			# "$(SHL$(TNR)USE_EXPORTS)"==""
115cdf0e10cSrcweir	@$(DUMPBIN) -DIRECTIVES  $(foreach,i,$(DEFLIB$(TNR)NAME) $(SLB)/$(i).lib) | $(GREP) EXPORT: > $(MISC)/$(SHL$(TNR)TARGET).direct
116cdf0e10cSrcweir	@$(LDUMP2) -N -D $(EXPORT_ALL_SWITCH) -F $(DEF$(TNR)FILTER) $(MISC)/$(SHL$(TNR)TARGET).direct >>$@.tmpfile
117cdf0e10cSrcweir.ENDIF			# "$(SHL$(TNR)USE_EXPORTS)"==""
118cdf0e10cSrcweir.ENDIF
119cdf0e10cSrcweir.ENDIF				# "$(DEFLIB$(TNR)NAME)"!=""
120cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT1)"!=""
121cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT1)										>>$@.tmpfile
122cdf0e10cSrcweir.ENDIF
123cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT2)"!=""
124cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT2)										>>$@.tmpfile
125cdf0e10cSrcweir.ENDIF
126cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT3)"!=""
127cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT3)										>>$@.tmpfile
128cdf0e10cSrcweir.ENDIF
129cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT4)"!=""
130cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT4)										>>$@.tmpfile
131cdf0e10cSrcweir.ENDIF
132cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT5)"!=""
133cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT5)										>>$@.tmpfile
134cdf0e10cSrcweir.ENDIF
135cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT6)"!=""
136cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT6)										>>$@.tmpfile
137cdf0e10cSrcweir.ENDIF
138cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT7)"!=""
139cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT7)										>>$@.tmpfile
140cdf0e10cSrcweir.ENDIF
141cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT8)"!=""
142cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT8)										>>$@.tmpfile
143cdf0e10cSrcweir.ENDIF
144cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT9)"!=""
145cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT9)										>>$@.tmpfile
146cdf0e10cSrcweir.ENDIF
147cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT10)"!=""
148cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT10)										>>$@.tmpfile
149cdf0e10cSrcweir.ENDIF
150cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT11)"!=""
151cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT11)										>>$@.tmpfile
152cdf0e10cSrcweir.ENDIF
153cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT12)"!=""
154cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT12)										>>$@.tmpfile
155cdf0e10cSrcweir.ENDIF
156cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT13)"!=""
157cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT13)										>>$@.tmpfile
158cdf0e10cSrcweir.ENDIF
159cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT14)"!=""
160cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT14)										>>$@.tmpfile
161cdf0e10cSrcweir.ENDIF
162cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT15)"!=""
163cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT15)										>>$@.tmpfile
164cdf0e10cSrcweir.ENDIF
165cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT16)"!=""
166cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT16)										>>$@.tmpfile
167cdf0e10cSrcweir.ENDIF
168cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT17)"!=""
169cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT17)										>>$@.tmpfile
170cdf0e10cSrcweir.ENDIF
171cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT18)"!=""
172cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT18)										>>$@.tmpfile
173cdf0e10cSrcweir.ENDIF
174cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT19)"!=""
175cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT19)										>>$@.tmpfile
176cdf0e10cSrcweir.ENDIF
177cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT20)"!=""
178cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT20)										>>$@.tmpfile
179cdf0e10cSrcweir.ENDIF
180cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORTFILE)"!=""
181cdf0e10cSrcweir.IF "$(COM)"=="GCC"
182cdf0e10cSrcweir	$(COMMAND_ECHO)$(TYPE) $(DEF$(TNR)EXPORTFILE) | sed -e s:PRIVATE:: >> $@.tmpfile
183cdf0e10cSrcweir.ELSE
184cdf0e10cSrcweir	$(COMMAND_ECHO)$(TYPE) $(DEF$(TNR)EXPORTFILE) >> $@.tmpfile
185cdf0e10cSrcweir.ENDIF
186cdf0e10cSrcweir.ENDIF
187cdf0e10cSrcweir	@-$(RM) $@
188cdf0e10cSrcweir	@$(RENAME) $@.tmpfile $@
189cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="WNT"
190cdf0e10cSrcweir
191cdf0e10cSrcweir.IF "$(GUI)"=="OS2"
192cdf0e10cSrcweir
193cdf0e10cSrcweir#21/02/2006 YD dll names must be 8.3, invoke fix script
194cdf0e10cSrcweir#check osl/os2/module.c/osl_loadModule()
195*534c536dSYuri DarioSHL$(TNR)TARGET8=$(shell @fix_shl.cmd $(SHL$(TNR)TARGETN:f))
196cdf0e10cSrcweir
197cdf0e10cSrcweirDEF$(TNR)FILTER=$(SOLARENV)/inc/dummy.flt
198cdf0e10cSrcweirDEF$(TNR)NAMELIST=$(foreach,i,$(DEFLIB$(TNR)NAME) $(SLB)/$(i).lib)
199cdf0e10cSrcweir
200cdf0e10cSrcweir.IF "$(link_always)"==""
201cdf0e10cSrcweir$(DEF$(TNR)TARGETN) : \
202cdf0e10cSrcweir		$(DEF$(TNR)DEPN) \
203cdf0e10cSrcweir		$(DEF$(TNR)EXPORTFILE)
204cdf0e10cSrcweir.ELSE			# "$(link_always)"==""
205cdf0e10cSrcweir$(DEF$(TNR)TARGETN) .PHONY :
206cdf0e10cSrcweir.ENDIF			# "$(link_always)"==""
207cdf0e10cSrcweir	@+-$(RM) $@.tmpfile
208cdf0e10cSrcweir	@echo "Making:    module definition file" $(@:f)
209cdf0e10cSrcweir	@echo LIBRARY	  $(SHL$(TNR)TARGET8) INITINSTANCE TERMINSTANCE	 >$@.tmpfile
210cdf0e10cSrcweir	@echo DATA MULTIPLE	 >>$@.tmpfile
211cdf0e10cSrcweir	@echo EXPORTS													>>$@.tmpfile
212cdf0e10cSrcweir.IF "$(VERSIONOBJ)"!=""
213cdf0e10cSrcweir#	getversioninfo fuer alle!!
214cdf0e10cSrcweir	@echo _GetVersionInfo		>$@.tmp_ord
215cdf0e10cSrcweir.ENDIF
216cdf0e10cSrcweir
217cdf0e10cSrcweir.IF "$(DEFLIB$(TNR)NAME)"!=""
218cdf0e10cSrcweir	@+echo $(SLB)/$(DEFLIB$(TNR)NAME).lib
219cdf0e10cSrcweir	@+emxexpr $(DEF$(TNR)NAMELIST) | fix_exp_file >> $@.tmp_ord
220cdf0e10cSrcweir.ENDIF				# "$(DEFLIB$(TNR)NAME)"!=""
221cdf0e10cSrcweir
222cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT1)"!=""
223cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT1)										>>$@.tmpfile
224cdf0e10cSrcweir.ENDIF
225cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT2)"!=""
226cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT2)										>>$@.tmpfile
227cdf0e10cSrcweir.ENDIF
228cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT3)"!=""
229cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT3)										>>$@.tmpfile
230cdf0e10cSrcweir.ENDIF
231cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT4)"!=""
232cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT4)										>>$@.tmpfile
233cdf0e10cSrcweir.ENDIF
234cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT5)"!=""
235cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT5)										>>$@.tmpfile
236cdf0e10cSrcweir.ENDIF
237cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT6)"!=""
238cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT6)										>>$@.tmpfile
239cdf0e10cSrcweir.ENDIF
240cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT7)"!=""
241cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT7)										>>$@.tmpfile
242cdf0e10cSrcweir.ENDIF
243cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT8)"!=""
244cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT8)										>>$@.tmpfile
245cdf0e10cSrcweir.ENDIF
246cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT9)"!=""
247cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT9)										>>$@.tmpfile
248cdf0e10cSrcweir.ENDIF
249cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT10)"!=""
250cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT10)										>>$@.tmpfile
251cdf0e10cSrcweir.ENDIF
252cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT11)"!=""
253cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT11)										>>$@.tmpfile
254cdf0e10cSrcweir.ENDIF
255cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT12)"!=""
256cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT12)										>>$@.tmpfile
257cdf0e10cSrcweir.ENDIF
258cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT13)"!=""
259cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT13)										>>$@.tmpfile
260cdf0e10cSrcweir.ENDIF
261cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT14)"!=""
262cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT14)										>>$@.tmpfile
263cdf0e10cSrcweir.ENDIF
264cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT15)"!=""
265cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT15)										>>$@.tmpfile
266cdf0e10cSrcweir.ENDIF
267cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT16)"!=""
268cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT16)										>>$@.tmpfile
269cdf0e10cSrcweir.ENDIF
270cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT17)"!=""
271cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT17)										>>$@.tmpfile
272cdf0e10cSrcweir.ENDIF
273cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT18)"!=""
274cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT18)										>>$@.tmpfile
275cdf0e10cSrcweir.ENDIF
276cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT19)"!=""
277cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT19)										>>$@.tmpfile
278cdf0e10cSrcweir.ENDIF
279cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORT20)"!=""
280cdf0e10cSrcweir	@echo $(DEF$(TNR)EXPORT20)										>>$@.tmpfile
281cdf0e10cSrcweir.ENDIF
282cdf0e10cSrcweir.IF "$(DEF$(TNR)EXPORTFILE)"!=""
283cdf0e10cSrcweir	@fix_def_file < $(DEF$(TNR)EXPORTFILE) >> $@.tmp_ord
284cdf0e10cSrcweir.ENDIF
285cdf0e10cSrcweir	@sort < $@.tmp_ord | uniq > $@.exptmpfile
286cdf0e10cSrcweir	@fix_def_ord < $@.exptmpfile >> $@.tmpfile
287cdf0e10cSrcweir	@+-$(RM) $@
288cdf0e10cSrcweir	$(COMMAND_ECHO)+$(RENAME) $@.tmpfile $@
289cdf0e10cSrcweir	@+-$(RM) $@.tmp_ord
290cdf0e10cSrcweir	@+-$(RM) $@.exptmpfile
291cdf0e10cSrcweir	$(COMMAND_ECHO)+$(IMPLIB) $(IMPLIBFLAGS) $(SHL$(TNR)IMPLIBN:s/.lib/.a/) $@
292cdf0e10cSrcweir	$(COMMAND_ECHO)+emxomf -o $(SHL$(TNR)IMPLIBN) $(SHL$(TNR)IMPLIBN:s/.lib/.a/)
293cdf0e10cSrcweir
294cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="OS2"
295cdf0e10cSrcweir
296cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
297cdf0e10cSrcweir$(DEF$(TNR)TARGETN): \
298cdf0e10cSrcweir		$(DEF$(TNR)DEPN) \
299cdf0e10cSrcweir		$(DEF$(TNR)EXPORTFILE)
300cdf0e10cSrcweir	@echo just a dummy for UNIX > $@
301cdf0e10cSrcweir.ENDIF
302cdf0e10cSrcweir.ENDIF			# "$(DEF$(TNR)TARGETN)"!=""
303cdf0e10cSrcweir
304cdf0e10cSrcweir
305cdf0e10cSrcweir# Anweisungen fuer das Linken
306cdf0e10cSrcweir# unroll end
307cdf0e10cSrcweir#######################################################
308cdf0e10cSrcweir
309