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: unxirgm.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 #*************************************************************************
33 # Makefile for IRIX/mips using GNU compilers 2.95.2 for n32 ABI
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
54 CDEFS
+= -D_PTHREADS
-DSTLPORT_VERSION
=0x450 -D_USE_NAMESPACE
=1 -DNEW_SOLAR
55 CFLAGSCC
=$(ARCH_FLAGS
)
56 CFLAGSCXX
=$(ARCH_FLAGS
)
59 # Compiler flags for compiling static object in multi threaded environment with graphical user interface
61 # Compiler flags for compiling static object in multi threaded environment with character user interface
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
69 # Compiler flags for debugging
72 # Compiler flags for enabling optimizations
74 # Compiler flags for disabling optimizations
76 # Compiler flags for describing the output path
84 CFLAGSEXCEPTIONS
=-fexceptions
85 CFLAGS_NO_EXCEPTIONS
=-fno-exceptions
88 DYNAMIC
= -Wl
,-Bdynamic
91 # To use the map files, you need to have a gcc_specs file which contains:
94 # where ld.sh is a wrapper script that does some conversion of the
95 # map files on the fly.
98 LINKFLAGS
= -L
/usr
/lib32
-Wl
,-no_unresolved
99 .IF
"$(HAVE_WORKING_LD_AS_NEEDED)" == "TRUE"
100 LINKFLAGS
+= -Wl
,--as-needed
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
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!
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
138 .IF
"$(STLPORT_VER)" >= "500"
139 LIBSTLPORT
=$(DYNAMIC
) -lstlport
140 LIBSTLPORTST
= -lstlport
142 LIBSTLPORT
=$(DYNAMIC
) -lstlport_gcc
143 LIBSTLPORTST
= -lstlport_gcc
156 RCFLAGS
= -fo
$@
$(RCFILES
)