update dev300-m58
[ooovba.git] / solenv / inc / unxirgm.mk
blobab8b1ad74b7bb4e02beae9fd34f4e2add2155abf
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: unxirgm.mk,v $
11 # $Revision: 1.15 $
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 using GNU compilers 2.95.2 for n32 ABI
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= gcc
52 CXX= g++
53 CFLAGS=-c
54 CDEFS+= -D_PTHREADS -DSTLPORT_VERSION=0x450 -D_USE_NAMESPACE=1 -DNEW_SOLAR
55 CFLAGSCC=$(ARCH_FLAGS)
56 CFLAGSCXX=$(ARCH_FLAGS)
57 PICSWITCH:=-fpic
59 # Compiler flags for compiling static object in multi threaded environment with graphical user interface
60 CFLAGSOBJGUIMT=
61 # Compiler flags for compiling static object in multi threaded environment with character user interface
62 CFLAGSOBJCUIMT=
63 # Compiler flags for compiling shared object in multi threaded environment with graphical user interface
64 CFLAGSSLOGUIMT=$(PICSWITCH)
65 # Compiler flags for compiling shared object in multi threaded environment with character user interface
66 CFLAGSSLOCUIMT=$(PICSWITCH)
67 # Compiler flags for profiling
68 CFLAGSPROF=
69 # Compiler flags for debugging
70 CFLAGSDEBUG=-g
71 CFLAGSDBGUTIL=
72 # Compiler flags for enabling optimizations
73 CFLAGSOPT=-O2
74 # Compiler flags for disabling optimizations
75 CFLAGSNOOPT=-O0
76 # Compiler flags for describing the output path
77 CFLAGSOUTOBJ=-o
79 CFLAGSWARNCC=-w
80 CFLAGSWALLCC=-Wall
81 CFLAGSWERRCC=-Werror
83 # exception flags
84 CFLAGSEXCEPTIONS=-fexceptions
85 CFLAGS_NO_EXCEPTIONS=-fno-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= g++
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 -lgcc -lc
133 STDLIBCUIMT= $(THREADLIB) $(DYNAMIC) -lgcc -lc -lm
134 STDSHLGUIMT= -L/usr/lib32 $(THREADLIB) $(DYNAMIC) -lX11 -lm -lgcc -lc
135 STDSHLCUIMT= -L/usr/lib32 $(THREADLIB) $(DYNAMIC) -lm -lgcc -lc
136 THREADLIB= -lpthread
138 .IF "$(STLPORT_VER)" >= "500"
139 LIBSTLPORT=$(DYNAMIC) -lstlport
140 LIBSTLPORTST= -lstlport
141 .ELSE
142 LIBSTLPORT=$(DYNAMIC) -lstlport_gcc
143 LIBSTLPORTST= -lstlport_gcc
144 .ENDIF
146 LIBMGR= ar
147 LIBFLAGS= -r
149 IMPLIB=
150 IMPLIBFLAGS=
152 MAPSYM=
153 MAPSYMFLAGS=
155 RC= irc
156 RCFLAGS= -fo$@ $(RCFILES)
157 RCLINK=
158 RCLINKFLAGS=
159 RCSETVERSION=
161 DLLPOSTFIX= im
162 DLLPRE= lib
163 DLLPOST= .so
166 LDUMP=c++filt