2003-03-27 04:48:49 -06:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2008-04-10 11:48:32 -05:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# Copyright 2008 by Sun Microsystems, Inc.
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2008-04-10 11:48:32 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2008-04-10 11:48:32 -05:00
|
|
|
# $RCSfile: unxirxm3.mk,v $
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2008-04-10 11:48:32 -05:00
|
|
|
# $Revision: 1.12 $
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2008-04-10 11:48:32 -05:00
|
|
|
# This file is part of OpenOffice.org.
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2008-04-10 11:48:32 -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.
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2008-04-10 11:48:32 -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).
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2008-04-10 11:48:32 -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.
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
2000-12-04 09:03:35 -06:00
|
|
|
|
2003-12-17 11:08:18 -06:00
|
|
|
|
|
|
|
# Makefile for IRIX/mips
|
2000-12-04 09:03:35 -06:00
|
|
|
ASM=
|
|
|
|
AFLAGS=
|
|
|
|
|
2003-12-17 11:08:18 -06:00
|
|
|
SOLAR_JAVA*=TRUE
|
|
|
|
JAVADEF=-DSOLAR_JAVA
|
|
|
|
#JAVAFLAGSDEBUG=-g
|
|
|
|
|
|
|
|
.IF "$(debug)"==""
|
|
|
|
JAVA_RUNTIME=-ljava
|
|
|
|
.ELSE
|
|
|
|
JAVA_RUNTIME=-ljava_g
|
|
|
|
.ENDIF
|
|
|
|
|
2005-07-11 09:30:31 -05:00
|
|
|
# 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*=
|
2003-12-17 11:08:18 -06:00
|
|
|
|
|
|
|
CC= cc
|
|
|
|
CXX= CC
|
2006-07-05 16:02:02 -05:00
|
|
|
CFLAGS= -c
|
2003-12-17 11:08:18 -06:00
|
|
|
CDEFS+= -DSTLPORT_VERSION=0x450 -D_USE_NAMESPACE=1 -DNEW_SOLAR
|
2005-07-11 09:30:31 -05:00
|
|
|
CFLAGSCC=$(ARCH_FLAGS)
|
|
|
|
CFLAGSCXX= -LANG:ansi-for-init-scope=OFF -LANG:std=ON -LANG:libc_in_namespace_std=ON $(ARCH_FLAGS)
|
2003-12-17 11:08:18 -06:00
|
|
|
|
|
|
|
# Compiler flags for compiling static object in multi threaded environment with graphical user interface
|
2000-12-04 09:03:35 -06:00
|
|
|
CFLAGSOBJGUIMT=
|
2003-12-17 11:08:18 -06:00
|
|
|
# Compiler flags for compiling static object in multi threaded environment with character user interface
|
2000-12-04 09:03:35 -06:00
|
|
|
CFLAGSOBJCUIMT=
|
2003-12-17 11:08:18 -06:00
|
|
|
# Compiler flags for compiling shared object in multi threaded environment with graphical user interface
|
|
|
|
CFLAGSSLOGUIMT=-KPIC
|
|
|
|
# Compiler flags for compiling shared object in multi threaded environment with character user interface
|
|
|
|
CFLAGSSLOCUIMT=-KPIC
|
|
|
|
# Compiler flags for profiling
|
2000-12-04 09:03:35 -06:00
|
|
|
CFLAGSPROF=
|
2003-12-17 11:08:18 -06:00
|
|
|
# Compiler flags for debugging
|
|
|
|
CFLAGSDEBUG=-g
|
2000-12-04 09:03:35 -06:00
|
|
|
CFLAGSDBGUTIL=
|
2003-12-17 11:08:18 -06:00
|
|
|
# Compiler flags for enabling optimizations
|
|
|
|
CFLAGSOPT=-O2
|
|
|
|
# Compiler flags for disabling optimizations
|
|
|
|
CFLAGSNOOPT=-O0
|
|
|
|
# Compiler flags for describing the output path
|
|
|
|
CFLAGSOUTOBJ=-o
|
2006-06-19 11:14:17 -05:00
|
|
|
|
|
|
|
CFLAGSWARNCC=-w
|
|
|
|
CFLAGSWALLCC=-fullwarn
|
|
|
|
CFLAGSWERRCC=
|
|
|
|
|
2003-12-17 11:08:18 -06:00
|
|
|
# exception flags
|
|
|
|
CFLAGSEXCEPTIONS=-LANG:exceptions=ON
|
|
|
|
CFLAGS_NO_EXCEPTIONS=-LANG:exceptions=OFF
|
|
|
|
#CFLAGS_NO_EXCEPTIONS=
|
2000-12-04 09:03:35 -06:00
|
|
|
|
2003-12-17 11:08:18 -06:00
|
|
|
STATIC= -Wl,-Bstatic
|
|
|
|
DYNAMIC= -Wl,-Bdynamic
|
2000-12-04 09:03:35 -06:00
|
|
|
|
|
|
|
#
|
2003-12-17 11:08:18 -06:00
|
|
|
# To use the map files, you need to have a gcc_specs file which contains:
|
|
|
|
# *linker:
|
|
|
|
# /path/to/bin/ld.sh
|
|
|
|
# where ld.sh is a wrapper script that does some conversion of the
|
|
|
|
# map files on the fly.
|
2000-12-04 09:03:35 -06:00
|
|
|
#
|
2003-12-17 11:08:18 -06:00
|
|
|
LINK= CC
|
|
|
|
LINKFLAGS= -L/usr/lib32 -Wl,-no_unresolved
|
|
|
|
LINKVERSIONMAPFLAG= -Wl,-exports_file
|
|
|
|
|
|
|
|
LINKFLAGSAPPGUI= $(THREADLIB)
|
|
|
|
LINKFLAGSAPPCUI= $(THREADLIB)
|
|
|
|
LINKFLAGSSHLGUI= $(THREADLIB)
|
|
|
|
LINKFLAGSSHLCUI= $(THREADLIB)
|
2007-03-09 02:08:52 -06:00
|
|
|
|
2003-12-17 11:08:18 -06:00
|
|
|
LINKFLAGSAPPGUI+= -Wl,-multigot
|
|
|
|
LINKFLAGSAPPCUI+= -Wl,-multigot
|
|
|
|
LINKFLAGSSHLGUI+= -shared
|
|
|
|
LINKFLAGSSHLCUI+= -shared
|
|
|
|
|
2000-12-04 09:03:35 -06:00
|
|
|
LINKFLAGSTACK=
|
|
|
|
LINKFLAGSPROF=
|
2003-12-17 11:08:18 -06:00
|
|
|
LINKFLAGSDEBUG= -g
|
2000-12-04 09:03:35 -06:00
|
|
|
LINKFLAGSOPT=
|
2003-12-17 11:08:18 -06:00
|
|
|
|
|
|
|
LINKFLAGSSHLGUI += -Wl,-Bsymbolic
|
|
|
|
LINKFLAGSSHLCUI += -Wl,-Bsymbolic
|
|
|
|
|
2000-12-04 09:03:35 -06:00
|
|
|
APPLINKSTATIC=-Bstatic
|
|
|
|
APPLINKSHARED=-Bsymbolic
|
|
|
|
|
2003-12-17 11:08:18 -06:00
|
|
|
SONAME_SWITCH = -Wl,-soname -Wl,
|
|
|
|
|
2000-12-04 09:03:35 -06:00
|
|
|
# Sequence of libraries DOES matter!
|
|
|
|
STDOBJGUI=
|
|
|
|
STDSLOGUI=
|
|
|
|
STDOBJCUI=
|
|
|
|
STDSLOCUI=
|
2003-12-17 11:08:18 -06:00
|
|
|
STDLIBGUIMT= $(THREADLIB) $(DYNAMIC) -lX11 -lm -lc
|
|
|
|
STDLIBCUIMT= $(THREADLIB) $(DYNAMIC) -lc -lm
|
|
|
|
STDSHLGUIMT= -L/usr/lib32 $(THREADLIB) $(DYNAMIC) -lX11 -lm -lc
|
|
|
|
STDSHLCUIMT= -L/usr/lib32 $(THREADLIB) $(DYNAMIC) -lm -lc
|
|
|
|
THREADLIB= -lpthread
|
|
|
|
|
|
|
|
#LIBSTLPORT=$(DYNAMIC) -lstlport_mipspro
|
|
|
|
LIBSTLPORT=$(DYNAMIC)
|
|
|
|
LIBSTLPORTST=
|
|
|
|
#LIBSTLPORTST= -lstlport_mipspro
|
|
|
|
|
|
|
|
LIBMGR= ar
|
|
|
|
LIBFLAGS= -r
|
2000-12-04 09:03:35 -06:00
|
|
|
|
|
|
|
IMPLIB=
|
|
|
|
IMPLIBFLAGS=
|
|
|
|
|
|
|
|
MAPSYM=
|
|
|
|
MAPSYMFLAGS=
|
|
|
|
|
2003-12-17 11:08:18 -06:00
|
|
|
RC= irc
|
|
|
|
RCFLAGS= -fo$@ $(RCFILES)
|
2000-12-04 09:03:35 -06:00
|
|
|
RCLINK=
|
|
|
|
RCLINKFLAGS=
|
|
|
|
RCSETVERSION=
|
|
|
|
|
2003-12-17 11:08:18 -06:00
|
|
|
DLLPOSTFIX= im
|
|
|
|
DLLPRE= lib
|
|
|
|
DLLPOST= .so
|
2000-12-04 09:03:35 -06:00
|
|
|
|
|
|
|
|
2003-12-17 11:08:18 -06:00
|
|
|
LDUMP=c++filt
|
2000-12-04 09:03:35 -06:00
|
|
|
|
|
|
|
|