2005-11-07 05:43:53 -06:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2008-04-10 11:55:09 -05:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
2010-02-12 08:01:35 -06:00
|
|
|
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
2005-11-07 05:43:53 -06:00
|
|
|
#
|
2008-04-10 11:55:09 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2005-11-07 05:43:53 -06:00
|
|
|
#
|
2008-04-10 11:55:09 -05:00
|
|
|
# This file is part of OpenOffice.org.
|
2005-11-07 05:43:53 -06:00
|
|
|
#
|
2008-04-10 11:55:09 -05:00
|
|
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
# only, as published by the Free Software Foundation.
|
2005-11-07 05:43:53 -06:00
|
|
|
#
|
2008-04-10 11:55:09 -05:00
|
|
|
# OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Lesser General Public License version 3 for more details
|
|
|
|
# (a copy is included in the LICENSE file that accompanied this code).
|
2005-11-07 05:43:53 -06:00
|
|
|
#
|
2008-04-10 11:55:09 -05:00
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# version 3 along with OpenOffice.org. If not, see
|
|
|
|
# <http://www.openoffice.org/license.html>
|
|
|
|
# for a copy of the LGPLv3 License.
|
2005-11-07 05:43:53 -06:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
2009-10-01 04:16:17 -05:00
|
|
|
# mk file for Window Intel using GCC
|
2005-11-07 05:43:53 -06:00
|
|
|
|
2011-05-20 16:41:56 -05:00
|
|
|
SOLAR_JAVA*=
|
2007-03-26 08:18:33 -05:00
|
|
|
JAVAFLAGSDEBUG=-g
|
|
|
|
|
|
|
|
# SOLAR JAva Unterstuetzung nur fuer wntmsci
|
|
|
|
|
|
|
|
ASM=ml
|
|
|
|
AFLAGS=/c /Cp /coff
|
|
|
|
|
|
|
|
# architecture dependent flags for the C and C++ compiler that can be changed by
|
|
|
|
# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
|
|
|
|
ARCH_FLAGS*=-march=pentium
|
|
|
|
|
2011-05-17 14:32:11 -05:00
|
|
|
CC*=i686-w64-mingw32-gcc
|
|
|
|
CXX*=i686-w64-mingw32-g++
|
|
|
|
|
|
|
|
CFLAGS+=-fmessage-length=0 -c
|
|
|
|
|
2007-03-26 08:18:33 -05:00
|
|
|
CFLAGSCC=-pipe $(ARCH_FLAGS)
|
|
|
|
CFLAGSCXX=-pipe $(ARCH_FLAGS)
|
2007-05-25 04:52:28 -05:00
|
|
|
CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
|
2007-03-26 08:18:33 -05:00
|
|
|
CFLAGS_NO_EXCEPTIONS=-fno-exceptions
|
2007-05-25 04:52:28 -05:00
|
|
|
PICSWITCH:=
|
2007-03-26 08:18:33 -05:00
|
|
|
|
2008-01-04 09:16:57 -06:00
|
|
|
CFLAGS_CREATE_PCH=-x c++-header -I$(INCPCH) -DPRECOMPILED_HEADERS
|
2009-10-01 04:16:17 -05:00
|
|
|
CFLAGS_USE_PCH=-I$(SLO)$/pch -DPRECOMPILED_HEADERS -Winvalid-pch
|
|
|
|
CFLAGS_USE_EXCEPTIONS_PCH=-I$(SLO)$/pch_ex -DPRECOMPILED_HEADERS -Winvalid-pch
|
2008-01-04 09:16:57 -06:00
|
|
|
|
2007-05-25 04:52:28 -05:00
|
|
|
CFLAGSOBJGUIST=
|
|
|
|
CFLAGSOBJCUIST=
|
|
|
|
CFLAGSOBJGUIMT=-D_MT
|
|
|
|
CFLAGSOBJCUIMT=-D_MT
|
|
|
|
CFLAGSSLOGUIMT=-D_MT $(PICSWITCH)
|
|
|
|
CFLAGSSLOCUIMT=-D_MT $(PICSWITCH)
|
2007-03-26 08:18:33 -05:00
|
|
|
CFLAGSPROF=
|
|
|
|
CFLAGSDEBUG=-g
|
|
|
|
CFLAGSDBGUTIL=
|
2008-01-04 09:16:57 -06:00
|
|
|
.IF "$(PRODUCT)"!=""
|
|
|
|
CFLAGSOPT=-O2 -fno-strict-aliasing # optimizing for products
|
|
|
|
.ELSE # "$(PRODUCT)"!=""
|
|
|
|
CFLAGSOPT= # no optimizing for non products
|
|
|
|
.ENDIF # "$(PRODUCT)"!=""
|
|
|
|
# Compiler flags for disabling optimizations
|
|
|
|
CFLAGSNOOPT=-O0
|
|
|
|
# Compiler flags for describing the output path
|
2007-03-26 08:18:33 -05:00
|
|
|
CFLAGSOUTOBJ=-o
|
|
|
|
#plattform hart setzen
|
2011-02-09 03:49:18 -06:00
|
|
|
CDEFS+=-DWIN32 -DWINVER=0x500 -D_WIN32_WINNT=0x500 -D_WIN32_IE=0x500 -D_M_IX86 -D_NATIVE_WCHAR_T_DEFINED -D_MSC_EXTENSIONS -D_FORCENAMELESSUNION
|
2009-10-14 12:56:00 -05:00
|
|
|
.IF "$(DYNAMIC_CRT)"!=""
|
|
|
|
CDEFS+=-D_DLL
|
|
|
|
.ENDIF
|
2007-05-25 04:52:28 -05:00
|
|
|
|
|
|
|
# -Wshadow does not work for C with nested uses of pthread_cleanup_push:
|
|
|
|
CFLAGSWARNCC=-Wall -Wextra -Wendif-labels
|
|
|
|
CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wshadow -Wno-ctor-dtor-privacy \
|
2011-01-07 21:49:57 -06:00
|
|
|
-Wno-non-virtual-dtor
|
2007-05-25 04:52:28 -05:00
|
|
|
CFLAGSWALLCC=$(CFLAGSWARNCC)
|
|
|
|
CFLAGSWALLCXX=$(CFLAGSWARNCXX)
|
|
|
|
CFLAGSWERRCC=-Werror
|
|
|
|
CFLAGSWERRCXX=-Werror
|
|
|
|
|
|
|
|
MODULES_WITH_WARNINGS := \
|
|
|
|
b_server \
|
|
|
|
chart2 \
|
|
|
|
devtools \
|
|
|
|
extensions \
|
|
|
|
lingu \
|
|
|
|
r_tools \
|
|
|
|
starmath \
|
|
|
|
sw \
|
|
|
|
xmlsecurity
|
2007-03-26 08:18:33 -05:00
|
|
|
|
|
|
|
STATIC= -static
|
|
|
|
DYNAMIC= -dynamic
|
|
|
|
|
2009-01-20 10:36:21 -06:00
|
|
|
LINK*=$(CXX)
|
|
|
|
LINKC*=$(CC)
|
|
|
|
|
2007-03-26 08:18:33 -05:00
|
|
|
CYGLIB=$(LIB:s/;/ -L/)
|
2011-05-17 18:50:40 -05:00
|
|
|
LINKFLAGS= -Wl,--enable-stdcall-fixup,--enable-runtime-pseudo-reloc-v2 -L$(CYGLIB)
|
2009-10-01 04:16:17 -05:00
|
|
|
MINGWLIBDIR=$(COMPATH)$/lib
|
2011-05-17 18:50:40 -05:00
|
|
|
MINGWSSTDOBJ=
|
|
|
|
MINGWSSTDENDOBJ=
|
|
|
|
LINKFLAGSAPPGUI=-mwindows
|
2011-05-22 18:16:50 -05:00
|
|
|
LINKFLAGSSHLGUI=-Wl,--warn-once -mwindows -shared
|
2011-05-17 18:50:40 -05:00
|
|
|
LINKFLAGSAPPCUI=-mconsole
|
2011-05-22 18:16:50 -05:00
|
|
|
LINKFLAGSSHLCUI=-Wl,--warn-once -mconsole -shared
|
2007-03-26 08:18:33 -05:00
|
|
|
LINKFLAGSTACK=
|
|
|
|
LINKFLAGSPROF=
|
|
|
|
LINKFLAGSDEBUG=-g
|
|
|
|
LINKFLAGSOPT=
|
|
|
|
|
|
|
|
STDLIBCPP=-lstdc++
|
|
|
|
|
2009-10-14 12:56:00 -05:00
|
|
|
.IF "$(MINGW_SHARED_GCCLIB)"=="YES" && "$(DYNAMIC_CRT)"!=""
|
|
|
|
MINGW_LIBGCC=-lgcc_s -lgcc
|
|
|
|
LINKFLAGS+=-shared-libgcc
|
|
|
|
.ELSE
|
|
|
|
.IF "$(MINGW_GCCLIB_EH)"=="YES"
|
|
|
|
MINGW_LIBGCC=-lgcc_eh -lgcc
|
|
|
|
.ELSE
|
|
|
|
MINGW_LIBGCC=-lgcc
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
2009-10-01 04:16:17 -05:00
|
|
|
STDOBJVCL=$(L)$/salmain.obj
|
2007-03-26 08:18:33 -05:00
|
|
|
STDOBJGUI=
|
|
|
|
STDSLOGUI=
|
|
|
|
STDOBJCUI=
|
|
|
|
STDSLOCUI=
|
2009-10-14 12:56:00 -05:00
|
|
|
STDLIBGUIMT=-Wl,--start-group CPPRUNTIME $(MINGW_LIBGCC)
|
|
|
|
STDLIBCUIMT=-Wl,--start-group CPPRUNTIME $(MINGW_LIBGCC)
|
|
|
|
STDSHLGUIMT=-Wl,--start-group CPPRUNTIME $(MINGW_LIBGCC)
|
|
|
|
STDSHLCUIMT=-Wl,--start-group CPPRUNTIME $(MINGW_LIBGCC)
|
|
|
|
.IF "$(DYNAMIC_CRT)"!=""
|
2007-03-26 08:18:33 -05:00
|
|
|
STDLIBGUIMT+=-lmingwthrd
|
|
|
|
STDLIBCUIMT+=-lmingwthrd
|
|
|
|
STDSHLGUIMT+=-lmingwthrd
|
|
|
|
STDSHLCUIMT+=-lmingwthrd
|
2008-06-06 10:56:13 -05:00
|
|
|
.ENDIF
|
2011-09-16 07:28:08 -05:00
|
|
|
STDLIBGUIMT+=-lmingw32 -lmoldname -lmingwex -Wl,--end-group -lm -lkernel32 -luser32 -lmsvcrt
|
|
|
|
STDLIBCUIMT+=-lmingw32 -lmoldname -lmingwex -Wl,--end-group -lm -lkernel32 -luser32 -lmsvcrt
|
|
|
|
STDSHLGUIMT+=-lmingw32 -lmoldname -lmingwex -Wl,--end-group -lm -lkernel32 -luser32 -lmsvcrt
|
|
|
|
STDSHLCUIMT+=-lmingw32 -lmoldname -lmingwex -Wl,--end-group -lm -lkernel32 -luser32 -lmsvcrt
|
2007-03-26 08:18:33 -05:00
|
|
|
|
2011-05-17 18:50:40 -05:00
|
|
|
LIBMGR=$(AR)
|
2007-03-26 08:18:33 -05:00
|
|
|
LIBFLAGS=-rsu
|
|
|
|
|
2011-05-17 18:50:40 -05:00
|
|
|
MAPSYM=
|
2007-03-26 08:18:33 -05:00
|
|
|
MAPSYMFLAGS=
|
|
|
|
|
2011-05-17 18:50:40 -05:00
|
|
|
RC=$(WINDRES)
|
|
|
|
RCFLAGS=-D__MINGW32__ -DWIN32 -D_WIN32_IE=0x400 $(RCFILES)
|
|
|
|
RCFLAGSOUTRES=
|
2007-03-26 08:18:33 -05:00
|
|
|
RCLINK=
|
|
|
|
RCLINKFLAGS=
|
|
|
|
RCSETVERSION=
|
|
|
|
|
2008-01-04 09:16:57 -06:00
|
|
|
PCHPOST=.gch
|
2007-03-26 08:18:33 -05:00
|
|
|
|
|
|
|
ADVAPI32LIB=-ladvapi32
|
|
|
|
SHELL32LIB=-lshell32
|
|
|
|
GDI32LIB=-lgdi32
|
|
|
|
OLE32LIB=-lole32
|
|
|
|
OLEAUT32LIB=-loleaut32
|
2011-05-21 17:02:27 -05:00
|
|
|
UUIDLIB=-luuid
|
2007-03-26 08:18:33 -05:00
|
|
|
WINSPOOLLIB=-lwinspool
|
|
|
|
IMM32LIB=-limm32
|
|
|
|
VERSIONLIB=-lversion
|
|
|
|
WINMMLIB=-lwinmm
|
|
|
|
MPRLIB=-lmpr
|
|
|
|
WS2_32LIB=-lws2_32
|
|
|
|
KERNEL32LIB=-lkernel32
|
|
|
|
USER32LIB=-luser32
|
2007-10-15 06:42:14 -05:00
|
|
|
LIBCMT=-lmsvcrt
|
2007-03-26 08:18:33 -05:00
|
|
|
COMDLG32LIB=-lcomdlg32
|
|
|
|
COMCTL32LIB=-lcomctl32
|
2011-05-21 17:02:27 -05:00
|
|
|
CRYPT32LIB=-lcrypt32
|
|
|
|
DDRAWLIB=-lddraw
|
|
|
|
SHLWAPILIB=-lshlwapi
|
2007-03-26 08:18:33 -05:00
|
|
|
WININETLIB=-lwininet
|
|
|
|
OLDNAMESLIB=-lmoldname
|
2011-05-21 17:02:27 -05:00
|
|
|
MSIMG32LIB=-lmsimg32
|
2010-01-25 00:08:21 -06:00
|
|
|
PROPSYSLIB=-lpropsys
|
2011-05-21 17:02:27 -05:00
|
|
|
|
2011-07-21 15:22:58 -05:00
|
|
|
# Libraries for which we use an import library built
|
|
|
|
# from Wine's .def file
|
|
|
|
MSILIB=-lmsi
|
|
|
|
GDIPLUSLIB=-lgdiplus
|
|
|
|
URLMONLIB=-lurlmon
|
2011-05-21 17:02:27 -05:00
|
|
|
|
|
|
|
# Libraries that mingw-w64 has but mingw.org doesn't. At least the OBS MinGW
|
|
|
|
# cross-compiler is based on mingw-w64. When using MinGW natively on Windows
|
2011-07-21 15:22:58 -05:00
|
|
|
# (which as such I don't think we want to support) we use the Windows SDK
|
2011-05-21 17:02:27 -05:00
|
|
|
# libraries.
|
|
|
|
.IF "$(CROSS_COMPILING)"=="YES"
|
|
|
|
DBGHELPLIB=-ldbghelp
|
|
|
|
.ELSE
|
|
|
|
DBGHELPLIB=$(WINDOWS_SDK_HOME)$/lib$/dbghelp.lib
|
|
|
|
.ENDIF
|