xref: /aoo41x/main/solenv/inc/unxsogs.mk (revision 7871dc3e)
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 unxsogs
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
58CFLAGSOBJGUIMT=
59CFLAGSOBJCUIMT=
60CFLAGSSLOGUIMT=$(PICSWITCH)
61CFLAGSSLOCUIMT=$(PICSWITCH)
62CFLAGSPROF=
63CFLAGSDEBUG=-g
64CFLAGSDBGUTIL=
65CFLAGSOPT=-O2
66CFLAGSNOOPT=
67CFLAGSOUTOBJ=-o
68
69STATIC		= -Wl,-Bstatic
70DYNAMIC		= -Wl,-Bdynamic
71
72LINK*=$(CXX)
73LINKC*=$(CC)
74
75LINKFLAGS=
76LINKFLAGSAPPGUI=-Wl,-export-dynamic
77LINKFLAGSSHLGUI=-shared
78LINKFLAGSAPPCUI=-Wl,-export-dynamic
79LINKFLAGSSHLCUI=-shared
80LINKFLAGSTACK=
81LINKFLAGSPROF=
82LINKFLAGSDEBUG=-g
83LINKFLAGSOPT=
84
85LINKVERSIONMAPFLAG=-Wl,--version-script
86
87# enable visibility define in "sal/types.h"
88.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
89CDEFS += -DHAVE_GCC_VISIBILITY_FEATURE
90.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
91
92# Reihenfolge der libs NICHT egal!
93
94STDLIBCPP=-lstdc++
95
96STDOBJVCL=$(L)/salmain.o
97STDOBJGUI=
98STDSLOGUI=
99STDOBJCUI=
100STDSLOCUI=
101
102STDLIBGUIMT=$(DYNAMIC) -lpthread -lthread -lm
103STDLIBCUIMT=$(DYNAMIC) -lpthread -lthread -lm
104# libraries for linking shared libraries
105STDSHLGUIMT=$(DYNAMIC) -lpthread -lthread -lm
106STDSHLCUIMT=$(DYNAMIC) -lpthread -lthread -lm
107
108STDLIBGUIMT+=-lX11
109
110.IF "$(STLPORT_VER)" >= "500"
111LIBSTLPORT=$(DYNAMIC) -lstlport
112LIBSTLPORTST=$(STATIC) -lstlport $(DYNAMIC)
113.ELSE
114LIBSTLPORT=$(DYNAMIC) -lstlport_gcc
115LIBSTLPORTST=$(STATIC) -lstlport_gcc $(DYNAMIC)
116.ENDIF
117
118LIBMGR=ar
119LIBFLAGS=-r
120# LIBEXT=.so
121
122IMPLIB=
123IMPLIBFLAGS=
124
125MAPSYM=
126MAPSYMFLAGS=
127
128RC=irc
129RCFLAGS=-fo$@ $(RCFILES)
130RCLINK=
131RCLINKFLAGS=
132RCSETVERSION=
133
134DLLPOSTFIX=
135DLLPRE=lib
136DLLPOST=.so
137