xref: /aoo4110/main/solenv/inc/unxsogi.mk (revision b1cdbd2c)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24# mk file for unxsogi
25ASM=/usr/ccs/bin/as
26AFLAGS=-P
27
28SOLAR_JAVA=TRUE
29JAVAFLAGSDEBUG=-g
30
31# _PTHREADS is needed for the stl
32CDEFS+=-D_PTHREADS -D_REENTRANT -DSYSV -DSUN -DSUN4 -D_POSIX_PTHREAD_SEMANTICS -DSTLPORT_VERSION=$(STLPORT_VER) -D_USE_NAMESPACE=1
33
34
35.IF "$(SOLAR_JAVA)"!=""
36JAVADEF=-DSOLAR_JAVA
37.IF "$(debug)"==""
38JAVA_RUNTIME=-ljava
39.ELSE
40JAVA_RUNTIME=-ljava_g
41.ENDIF
42.ENDIF
43
44# architecture dependent flags for the C and C++ compiler that can be changed by
45# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
46ARCH_FLAGS*=
47
48CXX*=g++
49CC*=gcc
50CFLAGS=-c
51CFLAGSCC= -pipe $(ARCH_FLAGS)
52
53CFLAGSEXCEPTIONS=-fexceptions
54CFLAGS_NO_EXCEPTIONS=-fno-exceptions
55
56CFLAGSCXX= -pipe $(ARCH_FLAGS)
57PICSWITCH:=-fPIC
58
59CFLAGSOBJGUIMT=
60CFLAGSOBJCUIMT=
61CFLAGSSLOGUIMT=$(PICSWITCH)
62CFLAGSSLOCUIMT=$(PICSWITCH)
63CFLAGSPROF=
64CFLAGSDEBUG=-g
65CFLAGSDBGUTIL=
66CFLAGSOPT=-O2
67CFLAGSNOOPT=
68CFLAGSOUTOBJ=-o
69
70STATIC		= -Wl,-Bstatic
71DYNAMIC		= -Wl,-Bdynamic
72
73LINK*=$(CXX)
74LINKC*=$(CC)
75
76LINKFLAGS=
77LINKFLAGSAPPGUI=-Wl,-export-dynamic
78LINKFLAGSSHLGUI=-shared
79LINKFLAGSAPPCUI=-Wl,-export-dynamic
80LINKFLAGSSHLCUI=-shared
81LINKFLAGSTACK=
82LINKFLAGSPROF=
83LINKFLAGSDEBUG=-g
84LINKFLAGSOPT=
85
86LINKVERSIONMAPFLAG=-Wl,--version-script
87
88# enable visibility define in "sal/types.h"
89.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
90CDEFS += -DHAVE_GCC_VISIBILITY_FEATURE
91.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
92
93# Reihenfolge der libs NICHT egal!
94
95STDLIBCPP=-lstdc++
96
97STDOBJVCL=$(L)/salmain.o
98STDOBJGUI=
99STDSLOGUI=
100STDOBJCUI=
101STDSLOCUI=
102
103STDLIBGUIMT=$(DYNAMIC) -lpthread -lthread -lm
104STDLIBCUIMT=$(DYNAMIC) -lpthread -lthread -lm
105# libraries for linking shared libraries
106STDSHLGUIMT=$(DYNAMIC) -lpthread -lthread -lm
107STDSHLCUIMT=$(DYNAMIC) -lpthread -lthread -lm
108
109STDLIBGUIMT+=-lX11
110
111.IF "$(STLPORT_VER)" >= "500"
112LIBSTLPORT=$(DYNAMIC) -lstlport
113LIBSTLPORTST=$(STATIC) -lstlport $(DYNAMIC)
114.ELSE
115LIBSTLPORT=$(DYNAMIC) -lstlport_gcc
116LIBSTLPORTST=$(STATIC) -lstlport_gcc $(DYNAMIC)
117.ENDIF
118
119LIBMGR=ar
120LIBFLAGS=-r
121# LIBEXT=.so
122
123IMPLIB=
124IMPLIBFLAGS=
125
126MAPSYM=
127MAPSYMFLAGS=
128
129RC=irc
130RCFLAGS=-fo$@ $(RCFILES)
131RCLINK=
132RCLINKFLAGS=
133RCSETVERSION=
134
135DLLPOSTFIX=
136DLLPRE=lib
137DLLPOST=.so
138