xref: /trunk/main/solenv/inc/unxscoi.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
25# mak file fuer wnticci
26ASM=
27AFLAGS=
28
29CDEFS+=-D_PTHREADS -D_REENTRANT
30CDEFS+=-D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE -DX86 -DNEW_SOLAR
31# kann c++ was c braucht??
32
33# architecture dependent flags for the C and C++ compiler that can be changed by
34# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
35ARCH_FLAGS*=-mpentium
36
37CXX*=/nw386/dev/s/solenv/unxscoi/bin/g++
38CC*=/nw386/dev/s/solenv/unxscoi/bin/gcc
39CFLAGS=-c
40CFLAGSCC=$(ARCH_FLAGS)
41CFLAGSEXCEPTIONS=-fexceptions
42CFLAGS_NO_EXCEPTIONS=-fno-exceptions
43CFLAGSCXX=-fguiding-decls -frtti $(ARCH_FLAGS)
44PICSWITCH:=-fPIC
45CFLAGSOBJGUIMT=$(PICSWITCH)
46CFLAGSOBJCUIMT=$(PICSWITCH)
47CFLAGSSLOGUIMT=$(PICSWITCH)
48CFLAGSSLOCUIMT=$(PICSWITCH)
49CFLAGSPROF=
50CFLAGSDEBUG=-g
51CFLAGSDBGUTIL=
52CFLAGSOPT=-O2
53CFLAGSNOOPT=-O
54CFLAGSOUTOBJ=-o
55
56CFLAGSWARNCC=
57CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wno-ctor-dtor-privacy
58# -Wshadow does not work for C with nested uses of pthread_cleanup_push:
59CFLAGSWALLCC=-Wall -Wextra -Wendif-labels
60CFLAGSWALLCXX=$(CFLAGSWALLCC) -Wshadow -Wno-ctor-dtor-privacy
61CFLAGSWERRCC=-Werror
62
63STATIC		= -Wl,-Bstatic
64DYNAMIC		= -Wl,-Bdynamic
65
66THREADLIB=
67LINK=/nw386/dev/s/solenv/unxscoi/bin/gcc
68LINKFLAGS=
69# SCO hat grosse Probleme mit fork/exec und einigen shared libraries
70# rsc2 muss daher statisch gelinkt werden
71.IF "$(PRJNAME)"=="rsc"
72LINKFLAGSAPPGUI=-L/nw386/dev/s/solenv/unxscoi/lib $(STATIC) -lpthread_init $(DYNAMIC)
73LINKFLAGSAPPCUI=-L/nw386/dev/s/solenv/unxscoi/lib $(STATIC) -lpthread_init $(DYNAMIC)
74.ELSE
75LINKFLAGSAPPGUI=-L/nw386/dev/s/solenv/unxscoi/lib -lpthread_init
76LINKFLAGSAPPCUI=-L/nw386/dev/s/solenv/unxscoi/lib -lpthread_init
77.ENDIF
78LINKFLAGSSHLGUI=-G -W,l,-Bsymbolic
79LINKFLAGSSHLCUI=-G -W,l,-Bsymbolic
80LINKFLAGSTACK=
81LINKFLAGSPROF=
82LINKFLAGSDEBUG=-g
83LINKFLAGSOPT=
84
85# standard C++ Library
86#
87# das statische dazulinken der libstdc++ macht jede shared library um 50k
88# (ungestrippt) oder so groesser, auch wenn sie ueberhaupt nicht gebraucht
89# wird. Da muessen wir uns was besseres ueberlegen.
90STDLIBCPP=-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
91
92# reihenfolge der libs NICHT egal!
93STDOBJGUI=
94STDSLOGUI=
95STDOBJCUI=
96STDSLOCUI=
97.IF "$(PRJNAME)"=="rsc"
98STDLIBGUIMT=-lXext -lX11 $(STATIC) -lpthread $(DYNAMIC) -ldl -lsocket -lm
99STDLIBCUIMT=$(STATIC) -lpthread $(DYNAMIC) -ldl -lsocket -lm
100.ELSE
101STDLIBGUIMT=-lXext -lX11 -lpthread -ldl -lsocket -lm
102STDLIBCUIMT=-lpthread -ldl -lsocket -lm
103.ENDIF
104#STDSHLGUIMT=-lXext -lX11 -lpthread -ldl -lsocket -lm
105#STDSHLCUIMT=-lpthread -ldl -lsocket -lm
106
107STDLIBCPP= -lstdc++
108SHLLINKARCONLY=yes
109
110LIBMGR=ar
111LIBFLAGS=-r
112# LIBEXT=.so
113
114IMPLIB=
115IMPLIBFLAGS=
116
117MAPSYM=
118MAPSYMFLAGS=
119
120RC=irc
121RCFLAGS=-fo$@ $(RCFILES)
122RCLINK=
123RCLINKFLAGS=
124RCSETVERSION=
125
126DLLPOSTFIX=
127DLLPRE=lib
128DLLPOST=.so
129
130LDUMP=cppfilt /b /n /o /p
131
132