update dev300-m57
[ooovba.git] / solenv / inc / tg_wntx64.mk
blobc65ef3d09b3b237988af386d1c65226c846d4e55
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: tg_wntx64.mk,v $
11 # $Revision: 1.4 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
31 ###############################################
32 # Windows 64 bit special
33 # only used for 64 bit shell extension
34 # ( Windows Vista )
35 # ---------------------------------------------
36 # THIS FILE WILL BE DELETED when a fully ported
37 # Windows 64 bit version is available
38 ###############################################
40 .IF "$(BUILD_X64)"!=""
42 .IF "$(SLOTARGET_X64)"!=""
43 $(SLOTARGET_X64): $(SLOFILES_X64) $(IDLSLOFILES_X64)
44 .IF "$(MDB)" != ""
45 @echo $(SLOTARGET_X64)
46 @echo $(&:+"\n")
47 .ENDIF
48 @echo ------------------------------
49 @echo Making: $@
50 @-$(MKDIR) $(SLB_X64)
51 .IF "$(LIBTARGET)"!="NO"
52 @-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
53 .ENDIF # "$(LIBTARGET)"!="NO"
54 $(LIBMGR_X64) $(LIBFLAGS_X64) /OUT:$@ @$(mktmp $(&:+"\n"))
55 .ENDIF # "$(SLOTARGET_X64)"!=""
58 # decide how to link
59 .IF "$(SHL1CODETYPE)"=="C"
60 SHL1LINKFLAGS_X64+=$(LINKCFLAGS_X64)
61 .ELSE # "$(SHL1CODETYPE)"=="C"
62 SHL1LINKFLAGS_X64+=$(LINKFLAGS_X64)
63 .ENDIF # "$(SHL1CODETYPE)"=="C"
65 .IF "$(SHL2CODETYPE)"=="C"
66 SHL2LINKFLAGS_X64+=$(LINKCFLAGS_X64)
67 .ELSE # "$(SHL2CODETYPE)"=="C"
68 SHL2LINKFLAGS_X64+=$(LINKFLAGS_X64)
69 .ENDIF # "$(SHL2CODETYPE)"=="C"
71 .IF "$(SHL1IMPLIB_X64)" == ""
72 SHL1IMPLIB_X64=i$(TARGET)_t1
73 .ENDIF # "$(SHL1IMPLIB_X64)" == ""
74 USE_1IMPLIB_X64=-implib:$(LB_X64)$/$(SHL1IMPLIB_X64).lib
75 .IF "$(SHL1TARGET_X64)"!=""
76 SHL1IMPLIBN_X64=$(LB_X64)$/$(SHL1IMPLIB_X64).lib
77 .ENDIF # "$(SLOFILES_X64)$(OBJFILES_X64)"!=""
79 make_x64_dirs :
80 -$(MKDIR) $(BIN_X64)
81 -$(MKDIR) $(MISC_X64)
82 -$(MKDIR) $(LB_X64)
83 -$(MKDIR) $(SLB_X64)
86 .IF "$(LIBTARGET)" == ""
87 ALLTAR : $(SHL1IMPLIBN_X64)
88 .ENDIF "$(LIBTARGET)" == ""
90 # ----------------------------- lib ------------------------------------------
91 .IF "$(LIB1TARGET_X64)" != ""
92 $(LIB1TARGET_X64) : $(LIB1FILES_X64) \
93 $(LIB1OBJFILES_X64) \
94 $(LIB1DEPN_X64)
95 @echo using: $(LIB1FILES_X64)
96 @echo using: $(LIB1TARGET_X64)
97 @echo ------------------------------
98 @echo Making: $@
99 -$(MKDIR) $(SLB_X64)
100 @@-$(RM) $@
101 $(LIBMGR_X64) $(LIBFLAGS_X64) /OUT:$@ @$(mktmp $(LIB1FILES_X64) $(LIB1OBJFILES_X64))
102 @-$(RM) $(@:s/.lib/.lin/)
103 .IF "$(LIB1OBJFILES_X64)"!=""
104 @$(TYPE) $(mktmp $(LIB1OBJFILES_X64)) > $(null,$(LIB1OBJFILES_X64) $(NULLDEV) $(@:s/.lib/.lin/))
105 .ENDIF # "$(LIB1OBJFILES_X64)"!=""
106 .IF "$(LIB1FILES_X64)"!=""
107 @-$(TYPE) $(foreach,i,$(LIB1FILES_X64) $(i:s/.lib/.lin/)) >> $(@:s/.lib/.lin/)
108 .ENDIF # "$(LIB1FILES_X64)"!=""
109 @$(ECHONL)
110 .ENDIF # "$(LIB1TARGET_X64)" != ""
112 .IF "$(LIB2TARGET_X64)" != ""
113 $(LIB2TARGET_X64) : $(LIB2FILES_X64) \
114 $(LIB2OBJFILES_X64) \
115 $(LIB2DEPN_X64)
116 @echo using: $(LIB2FILES_X64)
117 @echo using: $(LIB2TARGET_X64)
118 @echo ------------------------------
119 @echo Making: $@
120 -$(MKDIR) $(SLB_X64)
121 @@-$(RM) $@
122 $(LIBMGR_X64) $(LIBFLAGS_X64) /OUT:$@ @$(mktmp $(LIB2FILES_X64) $(LIB2OBJFILES_X64))
123 @-$(RM) $(@:s/.lib/.lin/)
124 .IF "$(LIB2OBJFILES_X64)"!=""
125 @$(TYPE) $(mktmp $(LIB2OBJFILES_X64)) > $(null,$(LIB2OBJFILES_X64) $(NULLDEV) $(@:s/.lib/.lin/))
126 .ENDIF # "$(LIB2OBJFILES_X64)"!=""
127 .IF "$(LIB2FILES_X64)"!=""
128 @-$(TYPE) $(foreach,i,$(LIB2FILES_X64) $(i:s/.lib/.lin/)) >> $(@:s/.lib/.lin/)
129 .ENDIF # "$(LIB2FILES_X64)"!=""
130 @$(ECHONL)
131 .ENDIF # "$(LIB2TARGET_X64)" != ""
133 # -------------- def ----------------------
134 .IF "$(DEF1TARGETN_X64)"!=""
135 $(DEF1TARGETN_X64) : \
136 $(DEF1DEPN_X64) \
137 $(DEF1EXPORTFILE_X64)
138 @-$(MKDIR) $(MISC_X64)
139 @-$(RM) $@.tmpfile
140 @echo ------------------------------
141 @echo Making Module-Definitionfile : $@
142 @echo LIBRARY $(EMQ)"$(SHL1TARGETN:f)$(EMQ)" >$@.tmpfile
143 @echo HEAPSIZE 0 >>$@.tmpfile
144 @echo EXPORTS >>$@.tmpfile
145 # getversioninfo fuer alle!!
146 @echo GetVersionInfo >>$@.tmpfile
147 .IF "$(DEFLIB1NAME_X64)"!=""
148 .IF "$(SHL1USE_EXPORTS_X64)"==""
149 @-$(EXPORT1_PROTECT) $(RMHACK1) $(MISC_X64)$/$(SHL1TARGET_X64).exp
150 @$(EXPORT1_PROTECT) $(LIBMGR_X64) -EXTRACT:/ /OUT:$(MISC_X64)$/$(SHL1TARGET_X64).exp $(SLB_X64)$/$(DEFLIB1NAME_X64).lib
151 @$(EXPORT1_PROTECT) $(LDUMP2) -E 20 -F $(MISC_X64)$/$(SHL1TARGET_X64).flt $(MISC_X64)$/$(SHL1TARGET_X64).exp >>$@.tmpfile
152 $(EXPORT1_PROTECT) $(RMHACK1) $(MISC_X64)$/$(SHL1TARGET_X64).exp
153 .ELSE # "$(SHL1USE_EXPORTS_X64)"==""
154 @$(EXPORT1_PROTECT) $(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB1NAME_X64) $(SLB_X64)$/$(i).lib) | $(GREP) EXPORT: > $(MISC_X64)$/$(SHL1TARGET_X64).direct
155 .IF "$(SHL1USE_EXPORTS_X64)"!="name"
156 @$(EXPORT1_PROTECT) $(LDUMP2) -D -E 20 -F $(DEF1FILTER_X64) $(MISC_X64)$/$(SHL1TARGET_X64).direct >>$@.tmpfile
157 .ELSE # "$(SHL1USE_EXPORTS_X64)"!="name"
158 @$(EXPORT1_PROTECT) $(LDUMP2) -N -D -E 20 -F $(DEF1FILTER_X64) $(MISC_X64)$/$(SHL1TARGET_X64).direct >>$@.tmpfile
159 .ENDIF # "$(SHL1USE_EXPORTS_X64)"!="name"
160 .ENDIF # "$(SHL1USE_EXPORTS)"==""
161 .ENDIF # "$(DEFLIB1NAME)"!=""
162 .IF "$(DEF1EXPORT1_X64)"!=""
163 @echo $(DEF1EXPORT1_X64) >>$@.tmpfile
164 .ENDIF
165 .IF "$(DEF1EXPORTFILE_X64)"!=""
166 $(TYPE) $(DEF1EXPORTFILE_X64) >> $@.tmpfile
167 .ENDIF
168 @-$(RM) $@
169 @$(RENAME) $@.tmpfile $@
170 .ENDIF # "$(DEF1TARGETN_X64)"!=""
172 .IF "$(DEF2TARGETN_X64)"!=""
173 $(DEF2TARGETN_X64) : \
174 $(DEF2DEPN_X64) \
175 $(DEF2EXPORTFILE_X64)
176 @-$(MKDIR) $(MISC_X64)
177 @-$(RM) $@.tmpfile
178 @echo ------------------------------
179 @echo Making Module-Definitionfile : $@
180 @echo LIBRARY $(EMQ)"$(SHL2TARGETN:f)$(EMQ)" >$@.tmpfile
181 @echo HEAPSIZE 0 >>$@.tmpfile
182 @echo EXPORTS >>$@.tmpfile
183 # getversioninfo fuer alle!!
184 @echo GetVersionInfo >>$@.tmpfile
185 .IF "$(DEFLIB2NAME_X64)"!=""
186 .IF "$(SHL2USE_EXPORTS_X64)"==""
187 @-$(EXPORT2_PROTECT) $(RMHACK1) $(MISC_X64)$/$(SHL2TARGET_X64).exp
188 @$(EXPORT2_PROTECT) $(LIBMGR_X64) -EXTRACT:/ /OUT:$(MISC_X64)$/$(SHL2TARGET_X64).exp $(SLB_X64)$/$(DEFLIB2NAME_X64).lib
189 @$(EXPORT2_PROTECT) $(LDUMP2) -E 20 -F $(MISC_X64)$/$(SHL2TARGET_X64).flt $(MISC_X64)$/$(SHL2TARGET_X64).exp >>$@.tmpfile
190 $(EXPORT2_PROTECT) $(RMHACK1) $(MISC_X64)$/$(SHL2TARGET_X64).exp
191 .ELSE # "$(SHL2USE_EXPORTS_X64)"==""
192 @$(EXPORT2_PROTECT) $(DUMPBIN) -DIRECTIVES $(foreach,i,$(DEFLIB2NAME_X64) $(SLB_X64)$/$(i).lib) | $(GREP) EXPORT: > $(MISC_X64)$/$(SHL2TARGET_X64).direct
193 .IF "$(SHL2USE_EXPORTS_X64)"!="name"
194 @$(EXPORT2_PROTECT) $(LDUMP2) -D -E 20 -F $(DEF2FILTER_X64) $(MISC_X64)$/$(SHL2TARGET_X64).direct >>$@.tmpfile
195 .ELSE # "$(SHL2USE_EXPORTS_X64)"!="name"
196 @$(EXPORT2_PROTECT) $(LDUMP2) -N -D -E 20 -F $(DEF2FILTER_X64) $(MISC_X64)$/$(SHL2TARGET_X64).direct >>$@.tmpfile
197 .ENDIF # "$(SHL2USE_EXPORTS_X64)"!="name"
198 .ENDIF # "$(SHL2USE_EXPORTS)"==""
199 .ENDIF # "$(DEFLIB1NAME)"!=""
200 .IF "$(DEF2EXPORT2_X64)"!=""
201 @echo $(DEF2EXPORT2_X64) >>$@.tmpfile
202 .ENDIF
203 .IF "$(DEF2EXPORTFILE_X64)"!=""
204 $(TYPE) $(DEF2EXPORTFILE_X64) >> $@.tmpfile
205 .ENDIF
206 @-$(RM) $@
207 @$(RENAME) $@.tmpfile $@
208 .ENDIF # "$(DEF2TARGETN_X64)"!=""
209 #-----------------------------------------------------------------------------
211 # -------------------------------- shl -----------------------------------------
213 .IF "$(SHL1TARGET_X64)"!=""
214 .IF "$(VERSIONOBJ_X64)"!=""
215 SHL1VERSIONOBJ_X64:=$(VERSIONOBJ_X64:d){$(subst,$(UPD)$(DLLPOSTFIX),_dflt $(SHL1TARGET_X64))}$(VERSIONOBJ_X64:f)
216 USE_VERSIONH_X64:=$(INCCOM)$/$(SHL1VERSIONOBJ_X64:b).h
217 SHL1VERSIONOBJDEP_X64:=$(VERSIONOBJ_X64:d){$(subst,$(UPD)$(DLLPOSTFIX),_dflt $(SHL1TARGET_X64))}$(VERSIONOBJ_X64:f)
218 $(MISC_X64)$/$(SHL1VERSIONOBJ_X64:b).c : $(SOLARENV)$/src$/version.c $(INCCOM)$/$(SHL1VERSIONOBJ_X64:b).h
219 $(TYPE) $(SOLARENV)$/src$/version.c | $(SED) s/_version.h/$(SHL1VERSIONOBJ_X64:b).h/ > $@
220 .INIT : $(SHL1VERSIONOBJDEP_X64)
221 .ENDIF
223 .IF "$(USE_DEFFILE_X64)"==""
224 USE_1IMPLIB_DEPS_X64=$(LB_X64)$/$(SHL1IMPLIB_X64).lib
225 .ENDIF # "$(USE_DEFFILE_X64)"==""
227 .IF "$(SHL1RES_X64)"!=""
228 SHL1ALLRES_X64+=$(SHL1RES_X64)
229 SHL1LINKRES_X64*=$(MISC_X64)$/$(SHL1TARGET_X64).res
230 SHL1LINKRESO_X64*=$(MISC_X64)$/$(SHL1TARGET_X64)_res.o
231 .ENDIF # "$(SHL1RES_X64)"!=""
233 .IF "$(SHL1DEFAULTRES_X64)$(use_shl_versions)"!=""
234 SHL1DEFAULTRES_X64*=$(MISC_X64)$/$(SHL1TARGET_X64)_def.res
235 SHL1ALLRES_X64+=$(SHL1DEFAULTRES_X64)
236 SHL1LINKRES_X64*=$(MISC_X64)$/$(SHL1TARGET_X64).res
237 SHL1LINKRESO_X64*=$(MISC_X64)$/$(SHL1TARGET_X64)_res.o
238 .ENDIF # "$(SHL1DEFAULTRES)$(use_shl_versions)"!=""
239 .ENDIF # "$(SHL1TARGET_X64)"=!""
241 .IF "$(SHL1TARGETN_X64)"!=""
242 $(SHL1TARGETN_X64) : \
243 make_x64_dirs \
244 $(SHL1OBJS_X64)\
245 $(SHL1LIBS_X64)\
246 $(USE_1IMPLIB_DEPS_X64)\
247 $(USE_SHL1DEF_X64)\
248 $(USE_SHL1VERSIONMAP_X64)\
249 $(SHL1RES)\
250 $(SHL1DEPN_X64) \
251 $(SHL1LINKLIST_X64)
252 @echo ------------------------------
253 @echo Making: $(SHL1TARGETN_X64)
254 .IF "$(SHL1DEFAULTRES_X64)"!=""
255 @@-$(RM) $(MISC_X64)$/$(SHL1DEFAULTRES_X64:b).rc
256 .IF "$(use_shl_versions)" != ""
257 .IF "$(SHL1ADD_VERINFO_X64)"!=""
258 @echo $(EMQ)#include $(EMQ)"$(SHL1ADD_VERINFO)$(EMQ)" >> $(MISC_X64)$/$(SHL1DEFAULTRES_X64:b).rc
259 .ELSE # "$(SHL1ADD_VERINFO_X64)"!=""
260 @echo $(EMQ)#define ADDITIONAL_VERINFO1 >> $(MISC_X64)$/$(SHL1DEFAULTRES_X64:b).rc
261 @echo $(EMQ)#define ADDITIONAL_VERINFO2 >> $(MISC_X64)$/$(SHL1DEFAULTRES_X64:b).rc
262 @echo $(EMQ)#define ADDITIONAL_VERINFO3 >> $(MISC_X64)$/$(SHL1DEFAULTRES_X64:b).rc
263 .ENDIF # "$(SHL1ADD_VERINFO_X64)"!=""
264 @echo $(EMQ)#define VERVARIANT $(BUILD) >> $(MISC_X64)$/$(SHL1DEFAULTRES_X64:b).rc
265 @echo $(EMQ)#define ORG_NAME $(SHL1TARGET_X64)$(DLLPOST) >> $(MISC_X64)$/$(SHL1DEFAULTRES_X64:b).rc
266 @echo $(EMQ)#define INTERNAL_NAME $(SHL1TARGET_X64:b) >> $(MISC_X64)$/$(SHL1DEFAULTRES_X64:b).rc
267 @echo $(EMQ)#include $(EMQ)"shlinfo.rc$(EMQ)" >> $(MISC_X64)$/$(SHL1DEFAULTRES_X64:b).rc
268 .ENDIF # "$(use_shl_versions)" != ""
269 $(RC) -DWIN32 $(INCLUDE) $(RCLINKFLAGS_X64) $(MISC_X64)$/$(SHL1DEFAULTRES_X64:b).rc
270 .ENDIF # "$(SHL1DEFAULTRES_X64)"!=""
271 .IF "$(SHL1ALLRES_X64)"!=""
272 .IF "$(USE_SHELL)"=="4nt"
273 $(COPY) /b $(SHL1ALLRES_X64:s/res /res+/) $(SHL1LINKRES_X64)
274 .ELSE # "$(USE_SHELL)"=="4nt"
275 $(TYPE) $(SHL1ALLRES_X64) > $(SHL1LINKRES_X64)
276 .ENDIF # "$(USE_SHELL)"=="4nt"
277 .ENDIF # "$(SHL1ALLRES)"!=""
278 .IF "$(USE_DEFFILE_X64)"!=""
279 $(LINK_X64) @$(mktmp \
280 $(SHL1LINKFLAGS_X64) \
281 $(LINKFLAGSSHL_X64) \
282 $(SHL1STACK_X64) $(SHL1BASEX_X64) \
283 -out:$@ \
284 -map:$(MISC_X64)$/$(@:b).map \
285 -def:$(SHL1DEF_X64) \
286 $(USE_1IMPLIB_X64) \
287 $(STDOBJ_X64) \
288 $(SHL1VERSIONOBJ_X64) $(SHL1OBJS_X64) \
289 $(SHL1LIBS_X64) \
290 $(SHL1STDLIBS_X64) \
291 $(SHL1STDSHL_X64) $(STDSHL1_X64) \
292 $(SHL1LINKRES_X64) \
293 ) $(LINKOUTPUTFILTER_X64)
294 # double check if target was really written... still making sense?
295 @@$(LS) $@
296 @echo linking $@.manifest ...
297 .IF "$(VISTA_MANIFEST)"!=""
298 $(IFEXIST) $@.manifest $(THEN) mt.exe -manifest $@.manifest -manifest $(TRUSTED_MANIFEST_LOCATION)$/trustedinfo.manifest -out:$@.tmanifest$(EMQ) $(FI)
299 $(IFEXIST) $@.manifest $(THEN) mt.exe -manifest $@.tmanifest -outputresource:$@$(EMQ);2 $(FI)
300 .ELSE
301 $(IFEXIST) $@.manifest $(THEN) mt.exe -manifest $@.manifest -outputresource:$@$(EMQ);2 $(FI)
302 .ENDIF # "$(VISTA_MANIFEST)"!=""
303 $(IFEXIST) $@.manifest $(THEN) $(RM:s/+//) $@.manifest $(FI)
304 $(IFEXIST) $@.tmanifest $(THEN) $(RM:s/+//) $@.tmanifest $(FI)
305 .ELSE # "$(USE_DEFFILE)"!=""
306 $(LINK_X64) @$(mktmp $(SHL1LINKFLAGS_X64) \
307 $(LINKFLAGSSHL_X64) $(SHL1BASEX_X64) \
308 $(SHL1STACK_X64) -out:$(SHL1TARGETN_X64) \
309 -map:$(MISC_X64)$/$(@:B).map \
310 $(LB_X64)$/$(SHL1IMPLIB_X64).exp \
311 $(STDOBJ_X64) \
312 $(SHL1OBJS_X64) $(SHL1VERSIONOBJ_X64) \
313 $(SHL1LIBS_X64) \
314 $(SHL1STDLIBS_X64) \
315 $(SHL1STDSHL_X64) $(STDSHL1_X64) \
316 $(SHL1LINKRES_X64) \
317 ) $(LINKOUTPUTFILTER_X64)
318 # double check if target was really written... still making sense?
319 @@$(LS) $@
320 @echo linking $@.manifest ...
321 .IF "$(VISTA_MANIFEST)"!=""
322 $(IFEXIST) $@.manifest $(THEN) mt.exe -manifest $@.manifest -manifest $(TRUSTED_MANIFEST_LOCATION)$/trustedinfo.manifest -out:$@.tmanifest$(EMQ) $(FI)
323 $(IFEXIST) $@.manifest $(THEN) mt.exe -manifest $@.tmanifest -outputresource:$@$(EMQ);2 $(FI)
324 .ELSE
325 $(IFEXIST) $@.manifest $(THEN) mt.exe -manifest $@.manifest -outputresource:$@$(EMQ);2 $(FI)
326 .ENDIF # "$(VISTA_MANIFEST)"!=""
327 $(IFEXIST) $@.manifest $(THEN) $(RM:s/+//) $@.manifest $(FI)
328 $(IFEXIST) $@.tmanifest $(THEN) $(RM:s/+//) $@.tmanifest $(FI)
329 .ENDIF # "$(USE_DEFFILE)"!=""
330 # ------------------------------------------------------------------------------
331 $(SHL1IMPLIBN_X64): \
332 $(SHL1DEF_X64) \
333 $(USE_SHL1TARGET_X64) \
334 $(USELIB1DEPN_X64) \
335 $(USELIBDEPN_X64)
336 @echo ------------------------------
337 @echo Making: $(SHL1IMPLIBN_X64)
338 # bei use_deffile implib von linker erstellt
339 @-mkdir $(LB_X64)
340 .IF "$(USE_DEFFILE_X64)"==""
341 $(IMPLIB_X64) $(IMPLIBFLAGS_X64) @$(mktmp -out:$(SHL1IMPLIBN_X64) \
342 -def:$(SHL1DEF_X64) )
343 .ELSE # "$(USE_DEFFILE_X64)==""
344 @echo build of $(SHL1TARGETN_X64) creates $@
345 .ENDIF # "$(USE_DEFFILE_X64)==""
347 .ENDIF # "$(SHL1TARGETN_X64)"!=""
349 .IF "$(SHL2IMPLIB_X64)" == ""
350 SHL2IMPLIB_X64=i$(TARGET)_t2
351 .ENDIF # "$(SHL2IMPLIB_X64)" == ""
352 .IF "$(COM)" != "GCC"
353 USE_2IMPLIB_X64=-implib:$(LB_X64)$/$(SHL2IMPLIB_X64).lib
354 .ENDIF # "$(COM)" != "GCC"
355 .IF "$(SHL2TARGET_X64)"!=""
356 SHL2IMPLIBN_X64=$(LB_X64)$/$(SHL2IMPLIB_X64).lib
357 .ENDIF # "$(SLOFILES_X64)$(OBJFILES_X64)"!=""
359 .IF "$(LIBTARGET)" == ""
360 ALLTAR : $(SHL2IMPLIBN_X64)
361 .ENDIF # "$(LIBTARGET)" == ""
363 .IF "$(SHL2TARGET_X64)"!=""
364 .IF "$(VERSIONOBJ_X64)"!=""
365 SHL2VERSIONOBJ_X64:=$(VERSIONOBJ_X64:d){$(subst,$(UPD)$(DLLPOSTFIX),_dflt $(SHL2TARGET_X64))}$(VERSIONOBJ_X64:f)
366 USE_VERSIONH_X64:=$(INCCOM)$/$(SHL2VERSIONOBJ_X64:b).h
367 SHL2VERSIONOBJDEP_X64:=$(VERSIONOBJ_X64:d){$(subst,$(UPD)$(DLLPOSTFIX),_dflt $(SHL2TARGET_X64))}$(VERSIONOBJ_X64:f)
368 $(MISC_X64)$/$(SHL2VERSIONOBJ_X64:b).c : $(SOLARENV)$/src$/version.c $(INCCOM)$/$(SHL2VERSIONOBJ_X64:b).h
369 $(TYPE) $(SOLARENV)$/src$/version.c | $(SED) s/_version.h/$(SHL2VERSIONOBJ_X64:b).h/ > $@
370 .INIT : $(SHL2VERSIONOBJDEP_X64)
371 .ENDIF
373 .IF "$(USE_DEFFILE_X64)"==""
374 USE_2IMPLIB_DEPS_X64=$(LB_X64)$/$(SHL2IMPLIB_X64).lib
375 .ENDIF # "$(USE_DEFFILE_X64)"==""
377 .IF "$(SHL2RES_X64)"!=""
378 SHL2ALLRES_X64+=$(SHL2RES_X64)
379 SHL2LINKRES_X64*=$(MISC_X64)$/$(SHL2TARGET_X64).res
380 SHL2LINKRESO_X64*=$(MISC_X64)$/$(SHL2TARGET_X64)_res.o
381 .ENDIF # "$(SHL2RES_X64)"!=""
383 .IF "$(SHL2DEFAULTRES_X64)$(use_shl_versions)"!=""
384 SHL2DEFAULTRES_X64*=$(MISC_X64)$/$(SHL2TARGET_X64)_def.res
385 SHL2ALLRES_X64+=$(SHL2DEFAULTRES_X64)
386 SHL2LINKRES_X64*=$(MISC_X64)$/$(SHL2TARGET_X64).res
387 SHL2LINKRESO_X64*=$(MISC_X64)$/$(SHL2TARGET_X64)_res.o
388 .ENDIF # "$(SHL2DEFAULTRES)$(use_shl_versions)"!=""
389 .ENDIF # "$(SHL2TARGET_X64)"=!""
391 .IF "$(SHL2TARGETN_X64)"!=""
392 $(SHL2TARGETN_X64) : \
393 make_x64_dirs \
394 $(SHL2OBJS_X64)\
395 $(SHL2LIBS_X64)\
396 $(USE_2IMPLIB_DEPS_X64)\
397 $(USE_SHL2DEF_X64)\
398 $(USE_SHL2VERSIONMAP_X64)\
399 $(SHL2RES)\
400 $(SHL2DEPN_X64) \
401 $(SHL2LINKLIST_X64)
402 @echo ------------------------------
403 @echo Making: $(SHL2TARGETN_X64)
404 .IF "$(SHL2DEFAULTRES_X64)"!=""
405 @@-$(RM) $(MISC_X64)$/$(SHL2DEFAULTRES_X64:b).rc
406 .IF "$(use_shl_versions)" != ""
407 .IF "$(SHL2ADD_VERINFO_X64)"!=""
408 @echo $(EMQ)#include $(EMQ)"$(SHL2ADD_VERINFO)$(EMQ)" >> $(MISC_X64)$/$(SHL2DEFAULTRES_X64:b).rc
409 .ELSE # "$(SHL2ADD_VERINFO_X64)"!=""
410 @echo $(EMQ)#define ADDITIONAL_VERINFO1 >> $(MISC_X64)$/$(SHL2DEFAULTRES_X64:b).rc
411 @echo $(EMQ)#define ADDITIONAL_VERINFO2 >> $(MISC_X64)$/$(SHL2DEFAULTRES_X64:b).rc
412 @echo $(EMQ)#define ADDITIONAL_VERINFO3 >> $(MISC_X64)$/$(SHL2DEFAULTRES_X64:b).rc
413 .ENDIF # "$(SHL1ADD_VERINFO_X64)"!=""
414 @echo $(EMQ)#define VERVARIANT $(BUILD) >> $(MISC_X64)$/$(SHL2DEFAULTRES_X64:b).rc
415 @echo $(EMQ)#define ORG_NAME $(SHL2TARGET_X64)$(DLLPOST) >> $(MISC_X64)$/$(SHL2DEFAULTRES_X64:b).rc
416 @echo $(EMQ)#define INTERNAL_NAME $(SHL1TARGET_X64:b) >> $(MISC_X64)$/$(SHL2DEFAULTRES_X64:b).rc
417 @echo $(EMQ)#include $(EMQ)"shlinfo.rc$(EMQ)" >> $(MISC_X64)$/$(SHL2DEFAULTRES_X64:b).rc
418 .ENDIF # "$(use_shl_versions)" != ""
419 $(RC) -DWIN32 $(INCLUDE) $(RCLINKFLAGS_X64) $(MISC_X64)$/$(SHL2DEFAULTRES_X64:b).rc
420 .ENDIF # "$(SHL2DEFAULTRES_X64)"!=""
421 .IF "$(SHL2ALLRES_X64)"!=""
422 .IF "$(USE_SHELL)"=="4nt"
423 $(COPY) /b $(SHL2ALLRES_X64:s/res /res+/) $(SHL2LINKRES_X64)
424 .ELSE # "$(USE_SHELL)"=="4nt"
425 $(TYPE) $(SHL2ALLRES_X64) > $(SHL2LINKRES_X64)
426 .ENDIF # "$(USE_SHELL)"=="4nt"
427 .ENDIF # "$(SHL2ALLRES)"!=""
428 .IF "$(USE_DEFFILE_X64)"!=""
429 $(LINK_X64) @$(mktmp \
430 $(SHL2LINKFLAGS_X64) \
431 $(LINKFLAGSSHL_X64) \
432 $(SHL2STACK_X64) $(SHL2BASEX_X64) \
433 -out:$@ \
434 -map:$(MISC_X64)$/$(@:b).map \
435 -def:$(SHL2DEF_X64) \
436 $(USE_2IMPLIB_X64) \
437 $(STDOBJ_X64) \
438 $(SHL2VERSIONOBJ_X64) $(SHL2OBJS_X64) \
439 $(SHL2LIBS_X64) \
440 $(SHL2STDLIBS_X64) \
441 $(SHL2STDSHL_X64) $(STDSHL2_X64) \
442 $(SHL2LINKRES_X64) \
443 ) $(LINKOUTPUTFILTER_X64)
444 # double check if target was really written... still making sense?
445 @@$(LS) $@
446 @echo linking $@.manifest ...
447 .IF "$(VISTA_MANIFEST)"!=""
448 $(IFEXIST) $@.manifest $(THEN) mt.exe -manifest $@.manifest -manifest $(TRUSTED_MANIFEST_LOCATION)$/trustedinfo.manifest -out:$@.tmanifest$(EMQ) $(FI)
449 $(IFEXIST) $@.manifest $(THEN) mt.exe -manifest $@.tmanifest -outputresource:$@$(EMQ);2 $(FI)
450 .ELSE
451 $(IFEXIST) $@.manifest $(THEN) mt.exe -manifest $@.manifest -outputresource:$@$(EMQ);2 $(FI)
452 .ENDIF # "$(VISTA_MANIFEST)"!=""
453 $(IFEXIST) $@.manifest $(THEN) $(RM:s/+//) $@.manifest $(FI)
454 $(IFEXIST) $@.tmanifest $(THEN) $(RM:s/+//) $@.tmanifest $(FI)
455 .ELSE # "$(USE_DEFFILE)"!=""
456 $(LINK_X64) @$(mktmp $(SHL2LINKFLAGS_X64) \
457 $(LINKFLAGSSHL_X64) $(SHL2BASEX_X64) \
458 $(SHL2STACK_X64) -out:$(SHL2TARGETN_X64) \
459 -map:$(MISC_X64)$/$(@:B).map \
460 $(LB_X64)$/$(SHL2IMPLIB_X64).exp \
461 $(STDOBJ_X64) \
462 $(SHL2OBJS_X64) $(SHL2VERSIONOBJ_X64) \
463 $(SHL2LIBS_X64) \
464 $(SHL2STDLIBS_X64) \
465 $(SHL2STDSHL_X64) $(STDSHL2_X64) \
466 $(SHL2LINKRES_X64) \
467 ) $(LINKOUTPUTFILTER_X64)
468 # double check if target was really written... still making sense?
469 @@$(LS) $@
470 @echo linking $@.manifest ...
471 .IF "$(VISTA_MANIFEST)"!=""
472 $(IFEXIST) $@.manifest $(THEN) mt.exe -manifest $@.manifest -manifest $(TRUSTED_MANIFEST_LOCATION)$/trustedinfo.manifest -out:$@.tmanifest$(EMQ) $(FI)
473 $(IFEXIST) $@.manifest $(THEN) mt.exe -manifest $@.tmanifest -outputresource:$@$(EMQ);2 $(FI)
474 .ELSE
475 $(IFEXIST) $@.manifest $(THEN) mt.exe -manifest $@.manifest -outputresource:$@$(EMQ);2 $(FI)
476 .ENDIF # "$(VISTA_MANIFEST)"!=""
477 $(IFEXIST) $@.manifest $(THEN) $(RM:s/+//) $@.manifest $(FI)
478 $(IFEXIST) $@.tmanifest $(THEN) $(RM:s/+//) $@.tmanifest $(FI)
479 .ENDIF # "$(USE_DEFFILE)"!=""
481 $(SHL2IMPLIBN_X64): \
482 $(SHL2DEF_X64) \
483 $(USE_SHL2TARGET_X64) \
484 $(USELIB2DEPN_X64) \
485 $(USELIBDEPN_X64)
486 @echo ------------------------------
487 @echo Making: $(SHL2IMPLIBN_X64)
488 # bei use_deffile implib von linker erstellt
489 @-mkdir $(LB_X64)
490 .IF "$(USE_DEFFILE_X64)"==""
491 $(IMPLIB_X64) $(IMPLIBFLAGS_X64) @$(mktmp -out:$(SHL2IMPLIBN_X64) \
492 -def:$(SHL2DEF_X64) )
493 .ELSE # "$(USE_DEFFILE_X64)==""
494 @echo build of $(SHL2TARGETN_X64) creates $@
495 .ENDIF # "$(USE_DEFFILE_X64)==""
497 .ENDIF # "$(SHL2TARGETN_X64)"!=""
501 $(SLO_X64)$/%.obj : %.cxx
502 @echo ------------------------------
503 @echo Making: $@
504 @@-$(RM) $@ >& $(NULLDEV)
505 -$(MKDIR) $(@:d)
506 $(CAPTURE_COMMAND) $(CXX_X64) $(USE_CFLAGS_X64) $(INCLUDE_X64) $(CFLAGSCXX_X64) $(CFLAGSSLO_X64) $(USE_CDEFS_X64) $(CDEFSSLO_X64) $(CDEFSMT_X64) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO_X64)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx $(CAPTURE_OUTPUT)
508 $(SLO_X64)$/%.obj : $(MISC)$/%.c
509 @echo ------------------------------
510 @echo Making: $@
511 -$(MKDIR) $(@:d)
512 @@-$(RM) $@
513 @$(TYPE) $(mktmp $(CC_X64) $(USE_CFLAGS_X64) $(INCLUDE_C) $(CFLAGSCC_X64) $(CFLAGSSLO_X64) $(USE_CDEFS_X64) $(CDEFSSLO_X64) $(CFLAGSAPPEND_X64) $(CFLAGSOUTOBJ)$(SLO_X64)$/$*.obj $(MISC)$/$*.c )
514 @$(ECHONL)
515 $(CC_X64) @$(mktmp $(USE_CFLAGS_X64) $(INCLUDE_C) $(CFLAGSCC_X64) $(CFLAGSSLO_X64) $(USE_CDEFS_X64) $(CDEFSSLO_X64) $(CFLAGSAPPEND_X64) $(CFLAGSOUTOBJ)$(SLO_X64)$/$*.obj $(MISC)$/$*.c )
517 $(SLO_X64)$/%.obj : %.c
518 @echo ------------------------------
519 @echo Making: $@
520 -$(MKDIR) $(@:d)
521 @@-$(RM) $@
522 $(CC_X64) @$(mktmp $(USE_CFLAGS_X64) $(INCLUDE_C) $(CFLAGSCC_X64) $(CFLAGSSLO_X64) $(USE_CDEFS_X64) $(CDEFSSLO_X64) $(CDEFSMT_X64) $(CFLAGSAPPEND_X64) $(CFLAGSOUTOBJ)$(SLO_X64)$/$*.obj $*.c )
524 .ENDIF # "$(BUILD_X64)"!=""