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: unxsogs.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
)
68 CFLAGSSLOGUIMT
=$(PICSWITCH
)
69 CFLAGSSLOCUIMT
=$(PICSWITCH
)
78 DYNAMIC
= -Wl
,-Bdynamic
84 LINKFLAGSAPPGUI
=-Wl
,-export-dynamic
85 LINKFLAGSSHLGUI
=-shared
86 LINKFLAGSAPPCUI
=-Wl
,-export-dynamic
87 LINKFLAGSSHLCUI
=-shared
93 LINKVERSIONMAPFLAG
=-Wl
,--version-script
95 # enable visibility define in "sal/types.h"
96 .IF
"$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
97 CDEFS
+= -DHAVE_GCC_VISIBILITY_FEATURE
98 .ENDIF
# "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
100 # Reihenfolge der libs NICHT egal!
104 STDOBJVCL
=$(L
)/salmain.o
110 STDLIBGUIMT
=$(DYNAMIC
) -lpthread
-lthread
-lm
111 STDLIBCUIMT
=$(DYNAMIC
) -lpthread
-lthread
-lm
112 # libraries for linking shared libraries
113 STDSHLGUIMT
=$(DYNAMIC
) -lpthread
-lthread
-lm
114 STDSHLCUIMT
=$(DYNAMIC
) -lpthread
-lthread
-lm
118 .IF
"$(STLPORT_VER)" >= "500"
119 LIBSTLPORT
=$(DYNAMIC
) -lstlport
120 LIBSTLPORTST
=$(STATIC
) -lstlport
$(DYNAMIC
)
122 LIBSTLPORT
=$(DYNAMIC
) -lstlport_gcc
123 LIBSTLPORTST
=$(STATIC
) -lstlport_gcc
$(DYNAMIC
)
137 RCFLAGS
=-fo
$@
$(RCFILES
)