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