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 $
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
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
)
45 @echo
$(SLOTARGET_X64
)
48 @echo
------------------------------
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)"!=""
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)"!=""
86 .IF
"$(LIBTARGET)" == ""
87 ALLTAR
: $(SHL1IMPLIBN_X64
)
88 .ENDIF
"$(LIBTARGET)" == ""
90 # ----------------------------- lib ------------------------------------------
91 .IF
"$(LIB1TARGET_X64)" != ""
92 $(LIB1TARGET_X64
) : $(LIB1FILES_X64
) \
95 @echo using
: $(LIB1FILES_X64
)
96 @echo using
: $(LIB1TARGET_X64
)
97 @echo
------------------------------
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)"!=""
110 .ENDIF
# "$(LIB1TARGET_X64)" != ""
112 .IF
"$(LIB2TARGET_X64)" != ""
113 $(LIB2TARGET_X64
) : $(LIB2FILES_X64
) \
114 $(LIB2OBJFILES_X64
) \
116 @echo using
: $(LIB2FILES_X64
)
117 @echo using
: $(LIB2TARGET_X64
)
118 @echo
------------------------------
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)"!=""
131 .ENDIF
# "$(LIB2TARGET_X64)" != ""
133 # -------------- def ----------------------
134 .IF
"$(DEF1TARGETN_X64)"!=""
135 $(DEF1TARGETN_X64
) : \
137 $(DEF1EXPORTFILE_X64
)
138 @
-$(MKDIR
) $(MISC_X64
)
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
165 .IF
"$(DEF1EXPORTFILE_X64)"!=""
166 $(COMMAND_ECHO
)$(TYPE
) $(DEF1EXPORTFILE_X64
) >> $@.tmpfile
169 @
$(RENAME
) $@.tmpfile
$@
170 .ENDIF
# "$(DEF1TARGETN_X64)"!=""
172 .IF
"$(DEF2TARGETN_X64)"!=""
173 $(DEF2TARGETN_X64
) : \
175 $(DEF2EXPORTFILE_X64
)
176 @
-$(MKDIR
) $(MISC_X64
)
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
203 .IF
"$(DEF2EXPORTFILE_X64)"!=""
204 $(COMMAND_ECHO
)$(TYPE
) $(DEF2EXPORTFILE_X64
) >> $@.tmpfile
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 $(COMMAND_ECHO
)$(TYPE
) $(SOLARENV
)/src
/version.c |
$(SED
) s
/_version.h
/$(SHL1VERSIONOBJ_X64
:b
).h
/ > $@
220 .INIT
: $(SHL1VERSIONOBJDEP_X64
)
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
) : \
246 $(USE_1IMPLIB_DEPS_X64
)\
248 $(USE_SHL1VERSIONMAP_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 $(COMMAND_ECHO
)$(RC
) -DWIN32
$(INCLUDE
) $(RCLINKFLAGS_X64
) $(MISC_X64
)/$(SHL1DEFAULTRES_X64
:b
).rc
270 .ENDIF
# "$(SHL1DEFAULTRES_X64)"!=""
271 .IF
"$(SHL1ALLRES_X64)"!=""
272 $(COMMAND_ECHO
)$(TYPE
) $(SHL1ALLRES_X64
) > $(SHL1LINKRES_X64
)
273 .ENDIF
# "$(SHL1ALLRES)"!=""
274 .IF
"$(USE_DEFFILE_X64)"!=""
275 $(LINK_X64
) @
$(mktmp \
276 $(SHL1LINKFLAGS_X64
) \
277 $(LINKFLAGSSHL_X64
) \
278 $(SHL1STACK_X64
) $(SHL1BASEX_X64
) \
280 -map
:$(MISC_X64
)/$(@
:b
).map \
281 -def
:$(SHL1DEF_X64
) \
284 $(SHL1VERSIONOBJ_X64
) $(SHL1OBJS_X64
) \
287 $(SHL1STDSHL_X64
) $(STDSHL1_X64
) \
289 ) $(LINKOUTPUTFILTER_X64
)
290 # double check if target was really written... still making sense?
292 @echo linking
$@.manifest ...
293 .IF
"$(VISTA_MANIFEST)"!=""
294 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(MT
) $(MTFLAGS
) -manifest
$@.manifest
-manifest
$(TRUSTED_MANIFEST_LOCATION
)/trustedinfo.manifest
-out
:$@.tmanifest
$(EMQ
) $(FI
)
295 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(MT
) $(MTFLAGS
) -manifest
$@.tmanifest
-outputresource
:$@
$(EMQ
);2 $(FI
)
297 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(MT
) $(MTFLAGS
) -manifest
$@.manifest
-outputresource
:$@
$(EMQ
);2 $(FI
)
298 .ENDIF
# "$(VISTA_MANIFEST)"!=""
299 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(RM
:s
/+//) $@.manifest
$(FI
)
300 $(COMMAND_ECHO
)$(IFEXIST
) $@.tmanifest
$(THEN
) $(RM
:s
/+//) $@.tmanifest
$(FI
)
301 .ELSE
# "$(USE_DEFFILE)"!=""
302 $(LINK_X64
) @
$(mktmp
$(SHL1LINKFLAGS_X64
) \
303 $(LINKFLAGSSHL_X64
) $(SHL1BASEX_X64
) \
304 $(SHL1STACK_X64
) -out
:$(SHL1TARGETN_X64
) \
305 -map
:$(MISC_X64
)/$(@
:B
).map \
306 $(LB_X64
)/$(SHL1IMPLIB_X64
).exp \
308 $(SHL1OBJS_X64
) $(SHL1VERSIONOBJ_X64
) \
311 $(SHL1STDSHL_X64
) $(STDSHL1_X64
) \
313 ) $(LINKOUTPUTFILTER_X64
)
314 # double check if target was really written... still making sense?
316 @echo linking
$@.manifest ...
317 .IF
"$(VISTA_MANIFEST)"!=""
318 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(MT
) $(MTFLAGS
) -manifest
$@.manifest
-manifest
$(TRUSTED_MANIFEST_LOCATION
)/trustedinfo.manifest
-out
:$@.tmanifest
$(EMQ
) $(FI
)
319 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(MT
) $(MTFLAGS
) -manifest
$@.tmanifest
-outputresource
:$@
$(EMQ
);2 $(FI
)
321 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(MT
) $(MTFLAGS
) -manifest
$@.manifest
-outputresource
:$@
$(EMQ
);2 $(FI
)
322 .ENDIF
# "$(VISTA_MANIFEST)"!=""
323 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(RM
:s
/+//) $@.manifest
$(FI
)
324 $(COMMAND_ECHO
)$(IFEXIST
) $@.tmanifest
$(THEN
) $(RM
:s
/+//) $@.tmanifest
$(FI
)
325 .ENDIF
# "$(USE_DEFFILE)"!=""
326 # ------------------------------------------------------------------------------
327 $(SHL1IMPLIBN_X64
): \
329 $(USE_SHL1TARGET_X64
) \
332 @echo
------------------------------
333 @echo Making
: $(SHL1IMPLIBN_X64
)
334 # bei use_deffile implib von linker erstellt
336 .IF
"$(USE_DEFFILE_X64)"==""
337 $(IMPLIB_X64
) $(IMPLIBFLAGS_X64
) @
$(mktmp
-out
:$(SHL1IMPLIBN_X64
) \
338 -def
:$(SHL1DEF_X64
) )
339 .ELSE
# "$(USE_DEFFILE_X64)==""
340 @echo build of
$(SHL1TARGETN_X64
) creates
$@
341 .ENDIF
# "$(USE_DEFFILE_X64)==""
343 .ENDIF
# "$(SHL1TARGETN_X64)"!=""
345 .IF
"$(SHL2IMPLIB_X64)" == ""
346 SHL2IMPLIB_X64
=i
$(TARGET
)_t2
347 .ENDIF
# "$(SHL2IMPLIB_X64)" == ""
348 .IF
"$(COM)" != "GCC"
349 USE_2IMPLIB_X64
=-implib
:$(LB_X64
)/$(SHL2IMPLIB_X64
).lib
350 .ENDIF
# "$(COM)" != "GCC"
351 .IF
"$(SHL2TARGET_X64)"!=""
352 SHL2IMPLIBN_X64
=$(LB_X64
)/$(SHL2IMPLIB_X64
).lib
353 .ENDIF
# "$(SLOFILES_X64)$(OBJFILES_X64)"!=""
355 .IF
"$(LIBTARGET)" == ""
356 ALLTAR
: $(SHL2IMPLIBN_X64
)
357 .ENDIF
# "$(LIBTARGET)" == ""
359 .IF
"$(SHL2TARGET_X64)"!=""
360 .IF
"$(VERSIONOBJ_X64)"!=""
361 SHL2VERSIONOBJ_X64
:=$(VERSIONOBJ_X64
:d
){$(subst,$(UPD
)$(DLLPOSTFIX
),_dflt
$(SHL2TARGET_X64
))}$(VERSIONOBJ_X64
:f
)
362 USE_VERSIONH_X64
:=$(INCCOM
)/$(SHL2VERSIONOBJ_X64
:b
).h
363 SHL2VERSIONOBJDEP_X64
:=$(VERSIONOBJ_X64
:d
){$(subst,$(UPD
)$(DLLPOSTFIX
),_dflt
$(SHL2TARGET_X64
))}$(VERSIONOBJ_X64
:f
)
364 $(MISC_X64
)/$(SHL2VERSIONOBJ_X64
:b
).c
: $(SOLARENV
)/src
/version.c
$(INCCOM
)/$(SHL2VERSIONOBJ_X64
:b
).h
365 $(COMMAND_ECHO
)$(TYPE
) $(SOLARENV
)/src
/version.c |
$(SED
) s
/_version.h
/$(SHL2VERSIONOBJ_X64
:b
).h
/ > $@
366 .INIT
: $(SHL2VERSIONOBJDEP_X64
)
369 .IF
"$(USE_DEFFILE_X64)"==""
370 USE_2IMPLIB_DEPS_X64
=$(LB_X64
)/$(SHL2IMPLIB_X64
).lib
371 .ENDIF
# "$(USE_DEFFILE_X64)"==""
373 .IF
"$(SHL2RES_X64)"!=""
374 SHL2ALLRES_X64
+=$(SHL2RES_X64
)
375 SHL2LINKRES_X64
*=$(MISC_X64
)/$(SHL2TARGET_X64
).res
376 SHL2LINKRESO_X64
*=$(MISC_X64
)/$(SHL2TARGET_X64
)_res.o
377 .ENDIF
# "$(SHL2RES_X64)"!=""
379 .IF
"$(SHL2DEFAULTRES_X64)$(use_shl_versions)"!=""
380 SHL2DEFAULTRES_X64
*=$(MISC_X64
)/$(SHL2TARGET_X64
)_def.res
381 SHL2ALLRES_X64
+=$(SHL2DEFAULTRES_X64
)
382 SHL2LINKRES_X64
*=$(MISC_X64
)/$(SHL2TARGET_X64
).res
383 SHL2LINKRESO_X64
*=$(MISC_X64
)/$(SHL2TARGET_X64
)_res.o
384 .ENDIF
# "$(SHL2DEFAULTRES)$(use_shl_versions)"!=""
385 .ENDIF
# "$(SHL2TARGET_X64)"=!""
387 .IF
"$(SHL2TARGETN_X64)"!=""
388 $(SHL2TARGETN_X64
) : \
392 $(USE_2IMPLIB_DEPS_X64
)\
394 $(USE_SHL2VERSIONMAP_X64
)\
398 @echo
------------------------------
399 @echo Making
: $(SHL2TARGETN_X64
)
400 .IF
"$(SHL2DEFAULTRES_X64)"!=""
401 @@
-$(RM
) $(MISC_X64
)/$(SHL2DEFAULTRES_X64
:b
).rc
402 .IF
"$(use_shl_versions)" != ""
403 .IF
"$(SHL2ADD_VERINFO_X64)"!=""
404 @echo
$(EMQ
)#include $(EMQ)"$(SHL2ADD_VERINFO)$(EMQ)" >> $(MISC_X64)/$(SHL2DEFAULTRES_X64:b).rc
405 .ELSE
# "$(SHL2ADD_VERINFO_X64)"!=""
406 @echo
$(EMQ
)#define ADDITIONAL_VERINFO1 >> $(MISC_X64)/$(SHL2DEFAULTRES_X64:b).rc
407 @echo
$(EMQ
)#define ADDITIONAL_VERINFO2 >> $(MISC_X64)/$(SHL2DEFAULTRES_X64:b).rc
408 @echo
$(EMQ
)#define ADDITIONAL_VERINFO3 >> $(MISC_X64)/$(SHL2DEFAULTRES_X64:b).rc
409 .ENDIF
# "$(SHL1ADD_VERINFO_X64)"!=""
410 @echo
$(EMQ
)#define VERVARIANT $(BUILD) >> $(MISC_X64)/$(SHL2DEFAULTRES_X64:b).rc
411 @echo
$(EMQ
)#define ORG_NAME $(SHL2TARGET_X64)$(DLLPOST) >> $(MISC_X64)/$(SHL2DEFAULTRES_X64:b).rc
412 @echo
$(EMQ
)#define INTERNAL_NAME $(SHL1TARGET_X64:b) >> $(MISC_X64)/$(SHL2DEFAULTRES_X64:b).rc
413 @echo
$(EMQ
)#include $(EMQ)"shlinfo.rc$(EMQ)" >> $(MISC_X64)/$(SHL2DEFAULTRES_X64:b).rc
414 .ENDIF
# "$(use_shl_versions)" != ""
415 $(COMMAND_ECHO
)$(RC
) -DWIN32
$(INCLUDE
) $(RCLINKFLAGS_X64
) $(MISC_X64
)/$(SHL2DEFAULTRES_X64
:b
).rc
416 .ENDIF
# "$(SHL2DEFAULTRES_X64)"!=""
417 .IF
"$(SHL2ALLRES_X64)"!=""
418 $(COMMAND_ECHO
)$(TYPE
) $(SHL2ALLRES_X64
) > $(SHL2LINKRES_X64
)
419 .ENDIF
# "$(SHL2ALLRES)"!=""
420 .IF
"$(USE_DEFFILE_X64)"!=""
421 $(LINK_X64
) @
$(mktmp \
422 $(SHL2LINKFLAGS_X64
) \
423 $(LINKFLAGSSHL_X64
) \
424 $(SHL2STACK_X64
) $(SHL2BASEX_X64
) \
426 -map
:$(MISC_X64
)/$(@
:b
).map \
427 -def
:$(SHL2DEF_X64
) \
430 $(SHL2VERSIONOBJ_X64
) $(SHL2OBJS_X64
) \
433 $(SHL2STDSHL_X64
) $(STDSHL2_X64
) \
435 ) $(LINKOUTPUTFILTER_X64
)
436 # double check if target was really written... still making sense?
438 @echo linking
$@.manifest ...
439 .IF
"$(VISTA_MANIFEST)"!=""
440 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(MT
) $(MTFLAGS
) -manifest
$@.manifest
-manifest
$(TRUSTED_MANIFEST_LOCATION
)/trustedinfo.manifest
-out
:$@.tmanifest
$(EMQ
) $(FI
)
441 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(MT
) $(MTFLAGS
) -manifest
$@.tmanifest
-outputresource
:$@
$(EMQ
);2 $(FI
)
443 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(MT
) $(MTFLAGS
) -manifest
$@.manifest
-outputresource
:$@
$(EMQ
);2 $(FI
)
444 .ENDIF
# "$(VISTA_MANIFEST)"!=""
445 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(RM
:s
/+//) $@.manifest
$(FI
)
446 $(COMMAND_ECHO
)$(IFEXIST
) $@.tmanifest
$(THEN
) $(RM
:s
/+//) $@.tmanifest
$(FI
)
447 .ELSE
# "$(USE_DEFFILE)"!=""
448 $(LINK_X64
) @
$(mktmp
$(SHL2LINKFLAGS_X64
) \
449 $(LINKFLAGSSHL_X64
) $(SHL2BASEX_X64
) \
450 $(SHL2STACK_X64
) -out
:$(SHL2TARGETN_X64
) \
451 -map
:$(MISC_X64
)/$(@
:B
).map \
452 $(LB_X64
)/$(SHL2IMPLIB_X64
).exp \
454 $(SHL2OBJS_X64
) $(SHL2VERSIONOBJ_X64
) \
457 $(SHL2STDSHL_X64
) $(STDSHL2_X64
) \
459 ) $(LINKOUTPUTFILTER_X64
)
460 # double check if target was really written... still making sense?
462 @echo linking
$@.manifest ...
463 .IF
"$(VISTA_MANIFEST)"!=""
464 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(MT
) $(MTFLAGS
) -manifest
$@.manifest
-manifest
$(TRUSTED_MANIFEST_LOCATION
)/trustedinfo.manifest
-out
:$@.tmanifest
$(EMQ
) $(FI
)
465 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(MT
) $(MTFLAGS
) -manifest
$@.tmanifest
-outputresource
:$@
$(EMQ
);2 $(FI
)
467 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(MT
) $(MTFLAGS
) -manifest
$@.manifest
-outputresource
:$@
$(EMQ
);2 $(FI
)
468 .ENDIF
# "$(VISTA_MANIFEST)"!=""
469 $(COMMAND_ECHO
)$(IFEXIST
) $@.manifest
$(THEN
) $(RM
:s
/+//) $@.manifest
$(FI
)
470 $(COMMAND_ECHO
)$(IFEXIST
) $@.tmanifest
$(THEN
) $(RM
:s
/+//) $@.tmanifest
$(FI
)
471 .ENDIF
# "$(USE_DEFFILE)"!=""
473 $(SHL2IMPLIBN_X64
): \
475 $(USE_SHL2TARGET_X64
) \
478 @echo
------------------------------
479 @echo Making
: $(SHL2IMPLIBN_X64
)
480 # bei use_deffile implib von linker erstellt
482 .IF
"$(USE_DEFFILE_X64)"==""
483 $(IMPLIB_X64
) $(IMPLIBFLAGS_X64
) @
$(mktmp
-out
:$(SHL2IMPLIBN_X64
) \
484 -def
:$(SHL2DEF_X64
) )
485 .ELSE
# "$(USE_DEFFILE_X64)==""
486 @echo build of
$(SHL2TARGETN_X64
) creates
$@
487 .ENDIF
# "$(USE_DEFFILE_X64)==""
489 .ENDIF
# "$(SHL2TARGETN_X64)"!=""
493 $(SLO_X64
)/%.obj
: %.
cxx
494 @echo
------------------------------
496 @@
-$(RM
) $@
>& $(NULLDEV
)
497 $(COMMAND_ECHO
)-$(MKDIR
) $(@
:d
)
498 $(COMMAND_ECHO
)$(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
)
500 $(SLO_X64
)/%.obj
: $(MISC
)/%.c
501 @echo
------------------------------
503 $(COMMAND_ECHO
)-$(MKDIR
) $(@
:d
)
505 @
$(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
)
507 $(COMMAND_ECHO
)$(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
)
509 $(SLO_X64
)/%.obj
: %.c
510 @echo
------------------------------
512 $(COMMAND_ECHO
)-$(MKDIR
) $(@
:d
)
514 $(COMMAND_ECHO
)$(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
)
516 .ENDIF
# "$(BUILD_X64)"!=""