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: unxsogi.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 #*************************************************************************
39 # _PTHREADS is needed for the stl
40 CDEFS
+=-D_PTHREADS
-D_REENTRANT
-DSYSV
-DSUN
-DSUN4
-D_POSIX_PTHREAD_SEMANTICS
-DSTLPORT_VERSION
=$(STLPORT_VER
) -D_USE_NAMESPACE
=1
43 .IF
"$(SOLAR_JAVA)"!=""
52 # architecture dependent flags for the C and C++ compiler that can be changed by
53 # exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
59 CFLAGSCC
= -pipe
$(ARCH_FLAGS
)
61 CFLAGSEXCEPTIONS
=-fexceptions
62 CFLAGS_NO_EXCEPTIONS
=-fno-exceptions
64 CFLAGSCXX
= -pipe
$(ARCH_FLAGS
)
69 CFLAGSSLOGUIMT
=$(PICSWITCH
)
70 CFLAGSSLOCUIMT
=$(PICSWITCH
)
79 DYNAMIC
= -Wl
,-Bdynamic
85 .IF
"$(HAVE_WORKING_LD_AS_NEEDED)" == "TRUE"
86 LINKFLAGS
+= -Wl
,--as-needed
89 LINKFLAGSAPPGUI
=-Wl
,-export-dynamic
90 LINKFLAGSSHLGUI
=-shared
91 LINKFLAGSAPPCUI
=-Wl
,-export-dynamic
92 LINKFLAGSSHLCUI
=-shared
98 LINKVERSIONMAPFLAG
=-Wl
,--version-script
100 # enable visibility define in "sal/types.h"
101 .IF
"$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
102 CDEFS
+= -DHAVE_GCC_VISIBILITY_FEATURE
103 .ENDIF
# "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
105 # Reihenfolge der libs NICHT egal!
109 STDOBJVCL
=$(L
)/salmain.o
115 STDLIBGUIMT
=$(DYNAMIC
) -lpthread
-lthread
-lm
116 STDLIBCUIMT
=$(DYNAMIC
) -lpthread
-lthread
-lm
117 # libraries for linking shared libraries
118 STDSHLGUIMT
=$(DYNAMIC
) -lpthread
-lthread
-lm
119 STDSHLCUIMT
=$(DYNAMIC
) -lpthread
-lthread
-lm
123 .IF
"$(STLPORT_VER)" >= "500"
124 LIBSTLPORT
=$(DYNAMIC
) -lstlport
125 LIBSTLPORTST
=$(STATIC
) -lstlport
$(DYNAMIC
)
127 LIBSTLPORT
=$(DYNAMIC
) -lstlport_gcc
128 LIBSTLPORTST
=$(STATIC
) -lstlport_gcc
$(DYNAMIC
)
142 RCFLAGS
=-fo
$@
$(RCFILES
)