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 wntgcci6
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_M_IX86
-DSTLPORT_VERSION
=450 -D_NATIVE_WCHAR_T_DEFINED
85 .IF
"$(DYNAMIC_CRT)"!=""
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
)
98 MODULES_WITH_WARNINGS
:= \
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
121 MINGWLIBDIR
=$(COMPATH
)/lib
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
134 .IF
"$(MINGW_SHARED_GXXLIB)"=="YES" && "$(DYNAMIC_CRT)"!=""
139 UWINAPILIB
*=$(DYNAMIC
) -luwinapi
141 .IF
"$(MINGW_SHARED_GCCLIB)"=="YES" && "$(DYNAMIC_CRT)"!=""
142 MINGW_LIBGCC
=-lgcc_s
-lgcc
143 LINKFLAGS
+=-shared-libgcc
145 .IF
"$(MINGW_GCCLIB_EH)"=="YES"
146 MINGW_LIBGCC
=-lgcc_eh
-lgcc
151 STDOBJVCL
=$(L
)/salmain.obj
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
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
)
184 RCFLAGS
=-D__MINGW32__
-DWIN32
-D_WIN32_IE
=0x400 -fo
$@
$(RCFILES
)
192 ADVAPI32LIB
=-ladvapi32
196 OLEAUT32LIB
=-loleaut32
197 UUIDLIB
=$(PSDK_HOME
)/lib
/uuid.lib
198 WINSPOOLLIB
=-lwinspool
205 KERNEL32LIB
=-lkernel32
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
219 OLDNAMESLIB
=-lmoldname
220 MSIMG32LIB
=$(PSDK_HOME
)/lib
/msimg32.lib