update dev300-m58
[ooovba.git] / solenv / inc / unxsogs.mk
blob6b052c33f50b3cdece59b8a1931a1477f123967c
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: unxsogs.mk,v $
11 # $Revision: 1.16 $
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 #*************************************************************************
32 # mk file for unxsogs
33 ASM=/usr/ccs/bin/as
34 AFLAGS=-P
36 SOLAR_JAVA=TRUE
37 JAVAFLAGSDEBUG=-g
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)"!=""
44 JAVADEF=-DSOLAR_JAVA
45 .IF "$(debug)"==""
46 JAVA_RUNTIME=-ljava
47 .ELSE
48 JAVA_RUNTIME=-ljava_g
49 .ENDIF
50 .ENDIF
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
54 ARCH_FLAGS*=
56 CXX*=g++
57 CC*=gcc
58 CFLAGS=-c
59 CFLAGSCC= -pipe $(ARCH_FLAGS)
61 CFLAGSEXCEPTIONS=-fexceptions
62 CFLAGS_NO_EXCEPTIONS=-fno-exceptions
64 CFLAGSCXX= -pipe $(ARCH_FLAGS)
65 PICSWITCH:=-fPIC
66 CFLAGSOBJGUIMT=
67 CFLAGSOBJCUIMT=
68 CFLAGSSLOGUIMT=$(PICSWITCH)
69 CFLAGSSLOCUIMT=$(PICSWITCH)
70 CFLAGSPROF=
71 CFLAGSDEBUG=-g
72 CFLAGSDBGUTIL=
73 CFLAGSOPT=-O2
74 CFLAGSNOOPT=
75 CFLAGSOUTOBJ=-o
77 STATIC = -Wl,-Bstatic
78 DYNAMIC = -Wl,-Bdynamic
80 LINK*=$(CXX)
81 LINKC*=$(CC)
83 LINKFLAGS=
84 LINKFLAGSAPPGUI=-Wl,-export-dynamic
85 LINKFLAGSSHLGUI=-shared
86 LINKFLAGSAPPCUI=-Wl,-export-dynamic
87 LINKFLAGSSHLCUI=-shared
88 LINKFLAGSTACK=
89 LINKFLAGSPROF=
90 LINKFLAGSDEBUG=-g
91 LINKFLAGSOPT=
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!
102 STDLIBCPP=-lstdc++
104 STDOBJVCL=$(L)/salmain.o
105 STDOBJGUI=
106 STDSLOGUI=
107 STDOBJCUI=
108 STDSLOCUI=
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
116 STDLIBGUIMT+=-lX11
118 .IF "$(STLPORT_VER)" >= "500"
119 LIBSTLPORT=$(DYNAMIC) -lstlport
120 LIBSTLPORTST=$(STATIC) -lstlport $(DYNAMIC)
121 .ELSE
122 LIBSTLPORT=$(DYNAMIC) -lstlport_gcc
123 LIBSTLPORTST=$(STATIC) -lstlport_gcc $(DYNAMIC)
124 .ENDIF
126 LIBMGR=ar
127 LIBFLAGS=-r
128 # LIBEXT=.so
130 IMPLIB=
131 IMPLIBFLAGS=
133 MAPSYM=
134 MAPSYMFLAGS=
136 RC=irc
137 RCFLAGS=-fo$@ $(RCFILES)
138 RCLINK=
139 RCLINKFLAGS=
140 RCSETVERSION=
142 DLLPOSTFIX=sogs
143 DLLPRE=lib
144 DLLPOST=.so