merge the formfield patch from ooo-build
[ooovba.git] / solenv / inc / unxirxm3.mk
blobe6591f3a4cb67b3f3fc75baf62274a9f8b9ff74c
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: unxirxm3.mk,v $
11 # $Revision: 1.12 $
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 #*************************************************************************
33 # Makefile for IRIX/mips
34 ASM=
35 AFLAGS=
37 SOLAR_JAVA*=TRUE
38 JAVADEF=-DSOLAR_JAVA
39 #JAVAFLAGSDEBUG=-g
41 .IF "$(debug)"==""
42 JAVA_RUNTIME=-ljava
43 .ELSE
44 JAVA_RUNTIME=-ljava_g
45 .ENDIF
47 # architecture dependent flags for the C and C++ compiler that can be changed by
48 # exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
49 ARCH_FLAGS*=
51 CC= cc
52 CXX= CC
53 CFLAGS= -c
54 CDEFS+= -DSTLPORT_VERSION=0x450 -D_USE_NAMESPACE=1 -DNEW_SOLAR
55 CFLAGSCC=$(ARCH_FLAGS)
56 CFLAGSCXX= -LANG:ansi-for-init-scope=OFF -LANG:std=ON -LANG:libc_in_namespace_std=ON $(ARCH_FLAGS)
58 # Compiler flags for compiling static object in multi threaded environment with graphical user interface
59 CFLAGSOBJGUIMT=
60 # Compiler flags for compiling static object in multi threaded environment with character user interface
61 CFLAGSOBJCUIMT=
62 # Compiler flags for compiling shared object in multi threaded environment with graphical user interface
63 CFLAGSSLOGUIMT=-KPIC
64 # Compiler flags for compiling shared object in multi threaded environment with character user interface
65 CFLAGSSLOCUIMT=-KPIC
66 # Compiler flags for profiling
67 CFLAGSPROF=
68 # Compiler flags for debugging
69 CFLAGSDEBUG=-g
70 CFLAGSDBGUTIL=
71 # Compiler flags for enabling optimizations
72 CFLAGSOPT=-O2
73 # Compiler flags for disabling optimizations
74 CFLAGSNOOPT=-O0
75 # Compiler flags for describing the output path
76 CFLAGSOUTOBJ=-o
78 CFLAGSWARNCC=-w
79 CFLAGSWALLCC=-fullwarn
80 CFLAGSWERRCC=
82 # exception flags
83 CFLAGSEXCEPTIONS=-LANG:exceptions=ON
84 CFLAGS_NO_EXCEPTIONS=-LANG:exceptions=OFF
85 #CFLAGS_NO_EXCEPTIONS=
87 STATIC= -Wl,-Bstatic
88 DYNAMIC= -Wl,-Bdynamic
91 # To use the map files, you need to have a gcc_specs file which contains:
92 # *linker:
93 # /path/to/bin/ld.sh
94 # where ld.sh is a wrapper script that does some conversion of the
95 # map files on the fly.
97 LINK= CC
98 LINKFLAGS= -L/usr/lib32 -Wl,-no_unresolved
99 .IF "$(HAVE_WORKING_LD_AS_NEEDED)" == "TRUE"
100 LINKFLAGS += -Wl,--as-needed
101 .ENDIF
102 LINKVERSIONMAPFLAG= -Wl,-exports_file
104 LINKFLAGSAPPGUI= $(THREADLIB)
105 LINKFLAGSAPPCUI= $(THREADLIB)
106 LINKFLAGSSHLGUI= $(THREADLIB)
107 LINKFLAGSSHLCUI= $(THREADLIB)
109 LINKFLAGSAPPGUI+= -Wl,-multigot
110 LINKFLAGSAPPCUI+= -Wl,-multigot
111 LINKFLAGSSHLGUI+= -shared
112 LINKFLAGSSHLCUI+= -shared
114 LINKFLAGSTACK=
115 LINKFLAGSPROF=
116 LINKFLAGSDEBUG= -g
117 LINKFLAGSOPT=
119 LINKFLAGSSHLGUI += -Wl,-Bsymbolic
120 LINKFLAGSSHLCUI += -Wl,-Bsymbolic
122 APPLINKSTATIC=-Bstatic
123 APPLINKSHARED=-Bsymbolic
125 SONAME_SWITCH = -Wl,-soname -Wl,
127 # Sequence of libraries DOES matter!
128 STDOBJGUI=
129 STDSLOGUI=
130 STDOBJCUI=
131 STDSLOCUI=
132 STDLIBGUIMT= $(THREADLIB) $(DYNAMIC) -lX11 -lm -lc
133 STDLIBCUIMT= $(THREADLIB) $(DYNAMIC) -lc -lm
134 STDSHLGUIMT= -L/usr/lib32 $(THREADLIB) $(DYNAMIC) -lX11 -lm -lc
135 STDSHLCUIMT= -L/usr/lib32 $(THREADLIB) $(DYNAMIC) -lm -lc
136 THREADLIB= -lpthread
138 #LIBSTLPORT=$(DYNAMIC) -lstlport_mipspro
139 LIBSTLPORT=$(DYNAMIC)
140 LIBSTLPORTST=
141 #LIBSTLPORTST= -lstlport_mipspro
143 LIBMGR= ar
144 LIBFLAGS= -r
146 IMPLIB=
147 IMPLIBFLAGS=
149 MAPSYM=
150 MAPSYMFLAGS=
152 RC= irc
153 RCFLAGS= -fo$@ $(RCFILES)
154 RCLINK=
155 RCLINKFLAGS=
156 RCSETVERSION=
158 DLLPOSTFIX= im
159 DLLPRE= lib
160 DLLPOST= .so
163 LDUMP=c++filt