merge the formfield patch from ooo-build
[ooovba.git] / solenv / inc / unxsogi.mk
blobe291012cd358213acae7d1edda4775ce1ef8866f
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: unxsogi.mk,v $
11 # $Revision: 1.11 $
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 unxsogi
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
67 CFLAGSOBJGUIMT=
68 CFLAGSOBJCUIMT=
69 CFLAGSSLOGUIMT=$(PICSWITCH)
70 CFLAGSSLOCUIMT=$(PICSWITCH)
71 CFLAGSPROF=
72 CFLAGSDEBUG=-g
73 CFLAGSDBGUTIL=
74 CFLAGSOPT=-O2
75 CFLAGSNOOPT=
76 CFLAGSOUTOBJ=-o
78 STATIC = -Wl,-Bstatic
79 DYNAMIC = -Wl,-Bdynamic
81 LINK*=$(CXX)
82 LINKC*=$(CC)
84 LINKFLAGS=
85 .IF "$(HAVE_WORKING_LD_AS_NEEDED)" == "TRUE"
86 LINKFLAGS += -Wl,--as-needed
87 .ENDIF
89 LINKFLAGSAPPGUI=-Wl,-export-dynamic
90 LINKFLAGSSHLGUI=-shared
91 LINKFLAGSAPPCUI=-Wl,-export-dynamic
92 LINKFLAGSSHLCUI=-shared
93 LINKFLAGSTACK=
94 LINKFLAGSPROF=
95 LINKFLAGSDEBUG=-g
96 LINKFLAGSOPT=
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!
107 STDLIBCPP=-lstdc++
109 STDOBJVCL=$(L)/salmain.o
110 STDOBJGUI=
111 STDSLOGUI=
112 STDOBJCUI=
113 STDSLOCUI=
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
121 STDLIBGUIMT+=-lX11
123 .IF "$(STLPORT_VER)" >= "500"
124 LIBSTLPORT=$(DYNAMIC) -lstlport
125 LIBSTLPORTST=$(STATIC) -lstlport $(DYNAMIC)
126 .ELSE
127 LIBSTLPORT=$(DYNAMIC) -lstlport_gcc
128 LIBSTLPORTST=$(STATIC) -lstlport_gcc $(DYNAMIC)
129 .ENDIF
131 LIBMGR=ar
132 LIBFLAGS=-r
133 # LIBEXT=.so
135 IMPLIB=
136 IMPLIBFLAGS=
138 MAPSYM=
139 MAPSYMFLAGS=
141 RC=irc
142 RCFLAGS=-fo$@ $(RCFILES)
143 RCLINK=
144 RCLINKFLAGS=
145 RCSETVERSION=
147 DLLPOSTFIX=sogi
148 DLLPRE=lib
149 DLLPOST=.so