Update ooo320-m1
[ooovba.git] / solenv / inc / wntgcci.mk
blobef0c5ce2854d3260fb9074f04d3725c2cf8e7359
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 Window Intel using GCC
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_DLL -D_M_IX86 -DSTLPORT_VERSION=450 -D_NATIVE_WCHAR_T_DEFINED
86 # -Wshadow does not work for C with nested uses of pthread_cleanup_push:
87 CFLAGSWARNCC=-Wall -Wextra -Wendif-labels
88 CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wshadow -Wno-ctor-dtor-privacy \
89 -Wno-non-virtual-dtor -Wno-uninitialized
90 CFLAGSWALLCC=$(CFLAGSWARNCC)
91 CFLAGSWALLCXX=$(CFLAGSWARNCXX)
92 CFLAGSWERRCC=-Werror
93 CFLAGSWERRCXX=-Werror
95 MODULES_WITH_WARNINGS := \
96 b_server \
97 chart2 \
98 devtools \
99 extensions \
100 lingu \
101 r_tools \
102 soldep \
103 starmath \
104 sw \
105 xmlsecurity
107 STATIC= -static
108 DYNAMIC= -dynamic
110 LINK*=$(CXX)
111 LINKC*=$(CC)
113 CYGLIB=$(LIB:s/;/ -L/)
114 LINKFLAGS=-nostdlib -Wl,--enable-stdcall-fixup,--enable-runtime-pseudo-reloc -L$(CYGLIB)
115 .IF "$(USE_MINGW)"=="cygwin"
116 MINGWLIBDIR=$(COMPATH)$/lib$/mingw
117 .ELSE
118 MINGWLIBDIR=$(COMPATH)$/lib
119 .ENDIF
120 LINKFLAGSAPPGUI=-mwindows $(MINGWLIBDIR)$/crt2.o
121 LINKFLAGSSHLGUI=--warn-once -mwindows -shared $(MINGWLIBDIR)$/dllcrt2.o
122 LINKFLAGSAPPCUI=-mconsole $(MINGWLIBDIR)$/crt2.o
123 LINKFLAGSSHLCUI=--warn-once -mconsole -shared $(MINGWLIBDIR)$/dllcrt2.o
124 LINKFLAGSTACK=
125 LINKFLAGSPROF=
126 LINKFLAGSDEBUG=-g
127 LINKFLAGSOPT=
129 STDLIBCPP=-lstdc++
130 UWINAPILIB*=$(DYNAMIC) -luwinapi
132 STDOBJVCL=$(L)$/salmain.obj
133 STDOBJGUI=
134 STDSLOGUI=
135 STDOBJCUI=
136 STDSLOCUI=
137 STDLIBGUIMT=-Wl,--start-group CPPRUNTIME -lgcc
138 STDLIBCUIMT=-Wl,--start-group CPPRUNTIME -lgcc
139 STDSHLGUIMT=-Wl,--start-group CPPRUNTIME -lgcc
140 STDSHLCUIMT=-Wl,--start-group CPPRUNTIME -lgcc
141 .IF "$(MINGW_NODLL)"==""
142 STDLIBGUIMT+=-lmingwthrd
143 STDLIBCUIMT+=-lmingwthrd
144 STDSHLGUIMT+=-lmingwthrd
145 STDSHLCUIMT+=-lmingwthrd
146 .ENDIF
147 STDLIBGUIMT+=-lmingw32 -lmoldname -lmingwex -Wl,--end-group $(UWINAPILIB) -lm -lkernel32 -luser32 -lmsvcrt
148 STDLIBCUIMT+=-lmingw32 -lmoldname -lmingwex -Wl,--end-group $(UWINAPILIB) -lm -lkernel32 -luser32 -lmsvcrt
149 STDSHLGUIMT+=-lmingw32 -lmoldname -lmingwex -Wl,--end-group $(UWINAPILIB) -lm -lkernel32 -luser32 -lmsvcrt
150 STDSHLCUIMT+=-lmingw32 -lmoldname -lmingwex -Wl,--end-group $(UWINAPILIB) -lm -lkernel32 -luser32 -lmsvcrt
152 LIBSTLPORT=-lstlport_gcc
153 LIBSTLPORTST=-lstlport_gcc_static
155 LIBMGR=ar
156 LIBFLAGS=-rsu
158 IMPLIB=ld
159 IMPLIBFLAGS=
161 MAPSYM=tmapsym
162 MAPSYMFLAGS=
164 RC=rc
165 RCFLAGS=-D__MINGW32__ -DWIN32 -D_WIN32_IE=0x400 -fo$@ $(RCFILES)
166 RCLINK=
167 RCLINKFLAGS=
168 RCSETVERSION=
170 DLLPOSTFIX=gi
171 PCHPOST=.gch
173 ADVAPI32LIB=-ladvapi32
174 SHELL32LIB=-lshell32
175 GDI32LIB=-lgdi32
176 OLE32LIB=-lole32
177 OLEAUT32LIB=-loleaut32
178 UUIDLIB=$(PSDK_HOME)$/lib$/uuid.lib
179 WINSPOOLLIB=-lwinspool
180 IMM32LIB=-limm32
181 VERSIONLIB=-lversion
182 WINMMLIB=-lwinmm
183 WSOCK32LIB=-lwsock32
184 MPRLIB=-lmpr
185 WS2_32LIB=-lws2_32
186 KERNEL32LIB=-lkernel32
187 USER32LIB=-luser32
188 LIBCMT=-lmsvcrt
189 COMDLG32LIB=-lcomdlg32
190 COMCTL32LIB=-lcomctl32
191 CRYPT32LIB=$(PSDK_HOME)$/lib$/crypt32.lib
192 GDIPLUSLIB=$(PSDK_HOME)$/lib$/gdiplus.lib
193 DBGHELPLIB=$(PSDK_HOME)$/lib$/dbghelp.lib
194 MSILIB=$(PSDK_HOME)$/lib$/msi.lib
195 DDRAWLIB=$(DIRECTXSDK_LIB)/ddraw.lib
196 SHLWAPILIB=$(PSDK_HOME)$/lib$/shlwapi.lib
197 URLMONLIB=$(PSDK_HOME)$/lib$/urlmon.lib
198 UNICOWSLIB=$(PSDK_HOME)$/lib$/unicows.lib
199 WININETLIB=-lwininet
200 OLDNAMESLIB=-lmoldname
201 MSIMG32LIB=$(PSDK_HOME)$/lib$/msimg32.lib