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: set_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)"!=""
41 # ----------------- settings for x64 --------------------
42 CC_X64
*:=$(WRAPCMD
) $(CXX_X64_BINARY
)
43 CXX_X64
*:=$(WRAPCMD
) $(CXX_X64_BINARY
)
44 LINK_X64
*:=$(WRAPCMD
) $(LINK_X64_BINARY
) $(NOLOGO
) -MACHINE
:X64
45 LIBMGR_X64
=$(WRAPCMD
) $(LIBMGR_X64_BINARY
) $(NOLOGO
)
46 IMPLIB_X64
=$(WRAPCMD
) $(LIBMGR_X64_BINARY
)
48 USE_CFLAGS_X64
=-c
-nologo
-Gs
$(NOLOGO
) -Zm500
-Zc
:forScope
,wchar_t-
-GR
49 USE_CFLAGS_X64
+=$(CFLAGS_X64
)
50 USE_CDEFS_X64
+= -DWIN32
-D_AMD64_
=1 -D_CRT_SECURE_NO_DEPRECATE
-D_CRT_NONSTDC_NO_DEPRECATE
-D_CRT_NON_CONFORMING_SWPRINTFS
51 USE_CDEFS_X64
+=$(CDEFS_X64
)
52 INCLUDE_X64
=$(subst,/stl
$(SPACECHAR
),dont_use_stl
$(SPACECHAR
) $(INCLUDE
))
54 .IF
"$(product)" != ""
56 .ENDIF
# "$(product)" != ""
61 .IF
"$(DYNAMIC_CRT)"!=""
62 CDEFSSLOMT_X64
+=-D_MT
-D_DLL
63 CDEFSSLOMT_X64
+=-D_MT
-D_DLL
64 .IF
"$(NO_DYNAMIC_OBJ)"==""
65 CDEFSOBJMT_X64
+=-D_MT
-D_DLL
66 CDEFSOBJMT_X64
+=-D_MT
-D_DLL
70 .ENDIF
# "$(NO_DYNAMIC_OBJ)"==""
74 .ENDIF
# "$(DYNAMIC_CRT)"!=""
76 .IF
"$(PRODUCT)"!="full"
78 LINKFLAGS_X64
=/MAP
/OPT
:NOREF
81 .IF
"$(PRODUCT)"!="full"
82 LINKFLAGS_X64
+= -NODEFAULTLIB
-DEBUG
83 .ELSE
# "$(PRODUCT)"!="full"
84 LINKFLAGS_X64
+= -NODEFAULTLIB
-RELEASE
-DEBUG
-INCREMENTAL
:NO
85 .ENDIF
# "$(PRODUCT)"!="full"
88 LINKFLAGSSHLCUI_X64
=/SUBSYSTEM
:CONSOLE
/DLL
89 LINKFLAGSSHL_X64
=$(LINKFLAGSSHLCUI_X64
)
90 CDEFSSLO_X64
+=$(CDEFSMT_X64
) $(CDEFSOBJMT_X64
)
98 IMPLIBFLAGS_X64
=-machine
:X64
100 LIBPATH_X64
=$(PSDK
)/lib
/x64
101 LIBPATH_VC_X64
=$(PSDK
)/vc
/lib
/x64
103 ADVAPI32LIB_X64
=$(LIBPATH_X64
)/advapi32.lib
104 SHELL32LIB_X64
=$(LIBPATH_X64
)/shell32.lib
105 GDI32LIB_X64
=$(LIBPATH_X64
)/gdi32.lib
106 OLE32LIB_X64
=$(LIBPATH_X64
)/ole32.lib
107 OLEAUT32LIB_X64
=$(LIBPATH_X64
)/oleaut32.lib
108 UUIDLIB_X64
=$(LIBPATH_X64
)/uuid.lib
109 WINSPOOLLIB_X64
=$(LIBPATH_X64
)/winspool.lib
110 IMM32LIB_X64
=$(LIBPATH_X64
)/imm32.lib
111 VERSIONLIB_X64
=$(LIBPATH_X64
)/version.lib
112 WINMMLIB_X64
=$(LIBPATH_X64
)/winmm.lib
113 WSOCK32LIB_X64
=$(LIBPATH_X64
)/wsock32.lib
114 MPRLIB_X64
=$(LIBPATH_X64
)/mpr.lib
115 WS2_32LIB_X64
=$(LIBPATH_X64
)/ws2_32.lib
116 KERNEL32LIB_X64
=$(LIBPATH_X64
)/kernel32.lib
117 USER32LIB_X64
=$(LIBPATH_X64
)/user32.lib
118 COMDLG32LIB_X64
=$(LIBPATH_X64
)/comdlg32.lib
119 COMCTL32LIB_X64
=$(LIBPATH_X64
)/comctl32.lib
120 CRYPT32LIB_X64
=$(LIBPATH_X64
)/crypt32.lib
121 GDIPLUSLIB_X64
=$(LIBPATH_X64
)/gdiplus.lib
122 DBGHELPLIB_X64
=$(LIBPATH_X64
)/dbghelp.lib
123 MSILIB_X64
=$(LIBPATH_X64
)/msi.lib
124 DDRAWLIB_X64
=$(LIBPATH_X64
)/ddraw.lib
125 SHLWAPILIB_X64
=$(LIBPATH_X64
)/shlwapi.lib
126 URLMONLIB_X64
=$(LIBPATH_X64
)/urlmon.lib
127 UNICOWSLIB_X64
=$(LIBPATH_X64
)/unicows.lib
128 WININETLIB_X64
=$(LIBPATH_X64
)/wininet.lib
129 OLDNAMESLIB_X64
=$(LIBPATH_VC_X64
)/oldnames.lib
130 MSIMG32LIB_X64
=$(LIBPATH_X64
)/msimg32.lib
131 MSVCPRT_X64
=$(LIBPATH_VC_X64
)/msvcprt.lib
132 MSVCRT_X64
=$(LIBPATH_VC_X64
)/msvcrt.lib
139 L_X64
=$(SOLARLIBDIR_X64
)
140 VERSIONOBJ_X64
=$(SLO_X64
)/_version.obj
143 SOLARLIBDIR_X64
=$(SOLARVERSION
)/$(INPATH
)/lib
$(EXT_UPDMINOR
)/x64
144 LIB_X64
:=$(LB_X64
);$(SLB_X64
);$(ILIB_X64
)
146 .IF
"$(LIBTARGET)"==""
147 .IF
"$(OBJFILES_X64)$(IDLOBJFILES_X64)"!=""
148 OBJTARGET_X64
=$(LB_X64
)/$(TARGET
).lib
149 .ENDIF
# "$(OBJFILES_X64)$(IDLOBJFILES_X64)"!=""
150 .IF
"$(SLOFILES_X64)$(IDLSLOFILES_x64)"!=""
151 SLOTARGET_X64
=$(SLB_X64
)/$(TARGET
).lib
152 .ENDIF
# "$(SLOFILES_X64)$(IDLSLOFILES_x64)"!=""
153 .ENDIF
# "$(LIBTARGET)"==""
155 .IF
"$(OBJFILES_X64)"!=""
156 .IF
"$(LIBTARGET)" != ""
157 NOLIBOBJTARGET_X64
=$(OBJFILES_X64
)
161 .IF
"$(SLOFILES_X64)"!=""
162 .IF
"$(LIBTARGET)" != ""
163 NOLIBSLOTARGET_X64
=$(SLOFILES_X64
)
167 .IF
"$(SHL1TARGET_X64)"!=""
168 SHL1TARGETN_X64
=$(BIN_X64
)/$(DLLPRE
)$(SHL1TARGET_X64
)$(DLLPOST
)
170 .IF
"$(SHL2TARGET_X64)"!=""
171 SHL2TARGETN_X64
=$(BIN_X64
)/$(DLLPRE
)$(SHL2TARGET_X64
)$(DLLPOST
)
173 .IF
"$(LIB1TARGET_X64)" != ""
174 LIB1TARGETN_X64
=$(LIB1TARGET_X64
)
176 .IF
"$(LIB2TARGET_X64)" != ""
177 LIB2TARGETN_X64
=$(LIB2TARGET_X64
)
179 .IF
"$(DEF1NAME_X64)"!=""
180 DEF1TARGETN_X64
=$(MISC_X64
)/$(DEF1NAME_X64
).def
182 .IF
"$(DEF2NAME_X64)"!=""
183 DEF2TARGETN_X64
=$(MISC_X64
)/$(DEF2NAME_X64
).def
185 .ENDIF
# "$(BUILD_X64)"!=""