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: wntgcci6.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 #*************************************************************************
32 # mk file for Window Intel using GCC
38 # SOLAR JAva Unterstuetzung nur fuer wntmsci
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
48 ### Der gcc vertraegt kein Semikolon im Include-Pfad RT
50 #CFLAGS=-c -Wall -I$(INCLUDE) $(OLE2DEF)
52 #CYGINC=$(INCLUDE:s/-I /-I/:+" ":s/;/ -I/:s/-I //:s/ / /)
53 CFLAGS
=-fmessage-length
=0 -c
-nostdinc
$(OLE2DEF
)
55 CFLAGSCC
=-pipe
$(ARCH_FLAGS
)
56 CFLAGSCXX
=-pipe
$(ARCH_FLAGS
)
57 CFLAGSEXCEPTIONS
=-fexceptions
-fno-enforce-eh-specs
58 CFLAGS_NO_EXCEPTIONS
=-fno-exceptions
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
69 CFLAGSSLOGUIMT
=-D_MT
$(PICSWITCH
)
70 CFLAGSSLOCUIMT
=-D_MT
$(PICSWITCH
)
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
81 # Compiler flags for describing the output path
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
)
95 MODULES_WITH_WARNINGS
:= \
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
118 MINGWLIBDIR
=$(COMPATH
)$/lib
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
130 UWINAPILIB
*=$(DYNAMIC
) -luwinapi
132 STDOBJVCL
=$(L
)$/salmain.obj
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
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
165 RCFLAGS
=-D__MINGW32__
-DWIN32
-D_WIN32_IE
=0x400 -fo
$@
$(RCFILES
)
173 ADVAPI32LIB
=-ladvapi32
177 OLEAUT32LIB
=-loleaut32
178 UUIDLIB
=$(PSDK_HOME
)$/lib
$/uuid.lib
179 WINSPOOLLIB
=-lwinspool
186 KERNEL32LIB
=-lkernel32
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
200 OLDNAMESLIB
=-lmoldname
201 MSIMG32LIB
=$(PSDK_HOME
)$/lib
$/msimg32.lib