update dev300-m58
[ooovba.git] / solenv / inc / wntgcci6.mk
bloba46c9a0a3916b06f7b292071dba5b2858796e618
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: wntgcci6.mk,v $
11 # $Revision: 1.9 $
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 #*************************************************************************
32 # mk file for wntgcci6
34 SOLAR_JAVA*=TRUE
35 FULL_DESK=TRUE
36 JAVAFLAGSDEBUG=-g
38 # SOLAR JAva Unterstuetzung nur fuer wntmsci
40 ASM=ml
41 AFLAGS=/c /Cp /coff
43 # architecture dependent flags for the C and C++ compiler that can be changed by
44 # exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
45 ARCH_FLAGS*=-march=pentium
47 CXX*=gcc
48 ### Der gcc vertraegt kein Semikolon im Include-Pfad RT
49 # old:
50 #CFLAGS=-c -Wall -I$(INCLUDE) $(OLE2DEF)
51 # new:
52 #CYGINC=$(INCLUDE:s/-I /-I/:+" ":s/;/ -I/:s/-I //:s/ / /)
53 CFLAGS=-fmessage-length=0 -c -nostdinc $(OLE2DEF)
54 ###
55 CFLAGSCC=-pipe $(ARCH_FLAGS)
56 CFLAGSCXX=-pipe $(ARCH_FLAGS)
57 CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
58 CFLAGS_NO_EXCEPTIONS=-fno-exceptions
59 PICSWITCH:=
61 CFLAGS_CREATE_PCH=-x c++-header -I$(INCPCH) -DPRECOMPILED_HEADERS
62 CFLAGS_USE_PCH=-I$(SLO)/pch -DPRECOMPILED_HEADERS -Winvalid-pch
63 CFLAGS_USE_EXCEPTIONS_PCH=-I$(SLO)/pch_ex -DPRECOMPILED_HEADERS -Winvalid-pch
65 CFLAGSOBJGUIST=
66 CFLAGSOBJCUIST=
67 CFLAGSOBJGUIMT=-D_MT
68 CFLAGSOBJCUIMT=-D_MT
69 CFLAGSSLOGUIMT=-D_MT $(PICSWITCH)
70 CFLAGSSLOCUIMT=-D_MT $(PICSWITCH)
71 CFLAGSPROF=
72 CFLAGSDEBUG=-g
73 CFLAGSDBGUTIL=
74 .IF "$(PRODUCT)"!=""
75 CFLAGSOPT=-O2 -fno-strict-aliasing # optimizing for products
76 .ELSE # "$(PRODUCT)"!=""
77 CFLAGSOPT= # no optimizing for non products
78 .ENDIF # "$(PRODUCT)"!=""
79 # Compiler flags for disabling optimizations
80 CFLAGSNOOPT=-O0
81 # Compiler flags for describing the output path
82 CFLAGSOUTOBJ=-o
83 #plattform hart setzen
84 CDEFS+=-DWIN32 -DWINVER=0x500 -D_WIN32_IE=0x500 -D_M_IX86 -DSTLPORT_VERSION=450 -D_NATIVE_WCHAR_T_DEFINED
85 .IF "$(DYNAMIC_CRT)"!=""
86 CDEFS+=-D_DLL
87 .ENDIF
89 # -Wshadow does not work for C with nested uses of pthread_cleanup_push:
90 CFLAGSWARNCC=-Wall -Wextra -Wendif-labels
91 CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wshadow -Wno-ctor-dtor-privacy \
92 -Wno-non-virtual-dtor -Wno-uninitialized
93 CFLAGSWALLCC=$(CFLAGSWARNCC)
94 CFLAGSWALLCXX=$(CFLAGSWARNCXX)
95 CFLAGSWERRCC=-Werror
96 CFLAGSWERRCXX=-Werror
98 MODULES_WITH_WARNINGS := \
99 b_server \
100 chart2 \
101 devtools \
102 extensions \
103 lingu \
104 r_tools \
105 soldep \
106 starmath \
107 sw \
108 xmlsecurity
110 STATIC= -static
111 DYNAMIC= -dynamic
113 LINK*=$(CXX)
114 LINKC*=$(CC)
116 CYGLIB=$(LIB:s/;/ -L/)
117 LINKFLAGS=-nostdlib -Wl,--enable-stdcall-fixup,--enable-runtime-pseudo-reloc -L$(CYGLIB)
118 .IF "$(USE_MINGW)"=="cygwin"
119 MINGWLIBDIR=$(COMPATH)/lib/mingw
120 .ELSE
121 MINGWLIBDIR=$(COMPATH)/lib
122 .ENDIF
123 MINGWSSTDOBJ=$(MINGW_CLIB_DIR)/crtbegin.o
124 MINGWSSTDENDOBJ=$(MINGW_CLIB_DIR)/crtend.o
125 LINKFLAGSAPPGUI=-mwindows $(MINGWLIBDIR)/crt2.o
126 LINKFLAGSSHLGUI=--warn-once -mwindows -shared $(MINGWLIBDIR)/dllcrt2.o
127 LINKFLAGSAPPCUI=-mconsole $(MINGWLIBDIR)/crt2.o
128 LINKFLAGSSHLCUI=--warn-once -mconsole -shared $(MINGWLIBDIR)/dllcrt2.o
129 LINKFLAGSTACK=
130 LINKFLAGSPROF=
131 LINKFLAGSDEBUG=-g
132 LINKFLAGSOPT=
134 .IF "$(MINGW_SHARED_GXXLIB)"=="YES" && "$(DYNAMIC_CRT)"!=""
135 STDLIBCPP=-lstdc++_s
136 .ELSE
137 STDLIBCPP=-lstdc++
138 .ENDIF
139 UWINAPILIB*=$(DYNAMIC) -luwinapi
141 .IF "$(MINGW_SHARED_GCCLIB)"=="YES" && "$(DYNAMIC_CRT)"!=""
142 MINGW_LIBGCC=-lgcc_s -lgcc
143 LINKFLAGS+=-shared-libgcc
144 .ELSE
145 .IF "$(MINGW_GCCLIB_EH)"=="YES"
146 MINGW_LIBGCC=-lgcc_eh -lgcc
147 .ELSE
148 MINGW_LIBGCC=-lgcc
149 .ENDIF
150 .ENDIF
151 STDOBJVCL=$(L)/salmain.obj
152 STDOBJGUI=
153 STDSLOGUI=
154 STDOBJCUI=
155 STDSLOCUI=
156 STDLIBGUIMT=-Wl,--start-group CPPRUNTIME $(MINGW_LIBGCC)
157 STDLIBCUIMT=-Wl,--start-group CPPRUNTIME $(MINGW_LIBGCC)
158 STDSHLGUIMT=-Wl,--start-group CPPRUNTIME $(MINGW_LIBGCC)
159 STDSHLCUIMT=-Wl,--start-group CPPRUNTIME $(MINGW_LIBGCC)
160 .IF "$(DYNAMIC_CRT)"!=""
161 STDLIBGUIMT+=-lmingwthrd
162 STDLIBCUIMT+=-lmingwthrd
163 STDSHLGUIMT+=-lmingwthrd
164 STDSHLCUIMT+=-lmingwthrd
165 .ENDIF
166 STDLIBGUIMT+=-lmingw32 -lmoldname -lmingwex -Wl,--end-group $(UWINAPILIB) -lm -lkernel32 -luser32 -lmsvcrt
167 STDLIBCUIMT+=-lmingw32 -lmoldname -lmingwex -Wl,--end-group $(UWINAPILIB) -lm -lkernel32 -luser32 -lmsvcrt
168 STDSHLGUIMT+=-lmingw32 -lmoldname -lmingwex -Wl,--end-group $(UWINAPILIB) -lm -lkernel32 -luser32 -lmsvcrt
169 STDSHLCUIMT+=-lmingw32 -lmoldname -lmingwex -Wl,--end-group $(UWINAPILIB) -lm -lkernel32 -luser32 -lmsvcrt
171 LIBSTLPORT=-lstlport_gcc
172 LIBSTLPORTST=-lstlport_gcc_static $(STDLIBCPP)
174 LIBMGR=ar
175 LIBFLAGS=-rsu
177 IMPLIB=ld
178 IMPLIBFLAGS=
180 MAPSYM=tmapsym
181 MAPSYMFLAGS=
183 RC=rc
184 RCFLAGS=-D__MINGW32__ -DWIN32 -D_WIN32_IE=0x400 -fo$@ $(RCFILES)
185 RCLINK=
186 RCLINKFLAGS=
187 RCSETVERSION=
189 DLLPOSTFIX=gi
190 PCHPOST=.gch
192 ADVAPI32LIB=-ladvapi32
193 SHELL32LIB=-lshell32
194 GDI32LIB=-lgdi32
195 OLE32LIB=-lole32
196 OLEAUT32LIB=-loleaut32
197 UUIDLIB=$(PSDK_HOME)/lib/uuid.lib
198 WINSPOOLLIB=-lwinspool
199 IMM32LIB=-limm32
200 VERSIONLIB=-lversion
201 WINMMLIB=-lwinmm
202 WSOCK32LIB=-lwsock32
203 MPRLIB=-lmpr
204 WS2_32LIB=-lws2_32
205 KERNEL32LIB=-lkernel32
206 USER32LIB=-luser32
207 LIBCMT=-lmsvcrt
208 COMDLG32LIB=-lcomdlg32
209 COMCTL32LIB=-lcomctl32
210 CRYPT32LIB=$(PSDK_HOME)/lib/crypt32.lib
211 GDIPLUSLIB=$(PSDK_HOME)/lib/gdiplus.lib
212 DBGHELPLIB=$(PSDK_HOME)/lib/dbghelp.lib
213 MSILIB=$(PSDK_HOME)/lib/msi.lib
214 DDRAWLIB=$(DIRECTXSDK_LIB)/ddraw.lib
215 SHLWAPILIB=$(PSDK_HOME)/lib/shlwapi.lib
216 URLMONLIB=$(PSDK_HOME)/lib/urlmon.lib
217 UNICOWSLIB=$(PSDK_HOME)/lib/unicows.lib
218 WININETLIB=-lwininet
219 OLDNAMESLIB=-lmoldname
220 MSIMG32LIB=$(PSDK_HOME)/lib/msimg32.lib