xref: /aoo41x/main/solenv/inc/unxscoi.mk (revision a4f23604)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28
29# mak file fuer wnticci
30ASM=
31AFLAGS=
32
33CDEFS+=-D_PTHREADS -D_REENTRANT
34CDEFS+=-D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE -DX86 -DNEW_SOLAR
35# kann c++ was c braucht??
36
37# architecture dependent flags for the C and C++ compiler that can be changed by
38# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
39ARCH_FLAGS*=-mpentium
40
41CXX*=/nw386/dev/s/solenv/unxscoi/bin/g++
42CC*=/nw386/dev/s/solenv/unxscoi/bin/gcc
43CFLAGS=-c
44CFLAGSCC=$(ARCH_FLAGS)
45CFLAGSEXCEPTIONS=-fexceptions
46CFLAGS_NO_EXCEPTIONS=-fno-exceptions
47CFLAGSCXX=-fguiding-decls -frtti $(ARCH_FLAGS)
48PICSWITCH:=-fPIC
49CFLAGSOBJGUIMT=$(PICSWITCH)
50CFLAGSOBJCUIMT=$(PICSWITCH)
51CFLAGSSLOGUIMT=$(PICSWITCH)
52CFLAGSSLOCUIMT=$(PICSWITCH)
53CFLAGSPROF=
54CFLAGSDEBUG=-g
55CFLAGSDBGUTIL=
56CFLAGSOPT=-O2
57CFLAGSNOOPT=-O
58CFLAGSOUTOBJ=-o
59
60CFLAGSWARNCC=
61CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wno-ctor-dtor-privacy
62# -Wshadow does not work for C with nested uses of pthread_cleanup_push:
63CFLAGSWALLCC=-Wall -Wextra -Wendif-labels
64CFLAGSWALLCXX=$(CFLAGSWALLCC) -Wshadow -Wno-ctor-dtor-privacy
65CFLAGSWERRCC=-Werror
66
67STATIC		= -Wl,-Bstatic
68DYNAMIC		= -Wl,-Bdynamic
69
70THREADLIB=
71LINK=/nw386/dev/s/solenv/unxscoi/bin/gcc
72LINKFLAGS=
73# SCO hat grosse Probleme mit fork/exec und einigen shared libraries
74# rsc2 muss daher statisch gelinkt werden
75.IF "$(PRJNAME)"=="rsc"
76LINKFLAGSAPPGUI=-L/nw386/dev/s/solenv/unxscoi/lib $(STATIC) -lpthread_init $(DYNAMIC)
77LINKFLAGSAPPCUI=-L/nw386/dev/s/solenv/unxscoi/lib $(STATIC) -lpthread_init $(DYNAMIC)
78.ELSE
79LINKFLAGSAPPGUI=-L/nw386/dev/s/solenv/unxscoi/lib -lpthread_init
80LINKFLAGSAPPCUI=-L/nw386/dev/s/solenv/unxscoi/lib -lpthread_init
81.ENDIF
82LINKFLAGSSHLGUI=-G -W,l,-Bsymbolic
83LINKFLAGSSHLCUI=-G -W,l,-Bsymbolic
84LINKFLAGSTACK=
85LINKFLAGSPROF=
86LINKFLAGSDEBUG=-g
87LINKFLAGSOPT=
88
89# standard C++ Library
90#
91# das statische dazulinken der libstdc++ macht jede shared library um 50k
92# (ungestrippt) oder so groesser, auch wenn sie ueberhaupt nicht gebraucht
93# wird. Da muessen wir uns was besseres ueberlegen.
94STDLIBCPP=-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
95
96# reihenfolge der libs NICHT egal!
97STDOBJGUI=
98STDSLOGUI=
99STDOBJCUI=
100STDSLOCUI=
101.IF "$(PRJNAME)"=="rsc"
102STDLIBGUIMT=-lXext -lX11 $(STATIC) -lpthread $(DYNAMIC) -ldl -lsocket -lm
103STDLIBCUIMT=$(STATIC) -lpthread $(DYNAMIC) -ldl -lsocket -lm
104.ELSE
105STDLIBGUIMT=-lXext -lX11 -lpthread -ldl -lsocket -lm
106STDLIBCUIMT=-lpthread -ldl -lsocket -lm
107.ENDIF
108#STDSHLGUIMT=-lXext -lX11 -lpthread -ldl -lsocket -lm
109#STDSHLCUIMT=-lpthread -ldl -lsocket -lm
110
111STDLIBCPP= -lstdc++
112SHLLINKARCONLY=yes
113
114LIBMGR=ar
115LIBFLAGS=-r
116# LIBEXT=.so
117
118IMPLIB=
119IMPLIBFLAGS=
120
121MAPSYM=
122MAPSYMFLAGS=
123
124RC=irc
125RCFLAGS=-fo$@ $(RCFILES)
126RCLINK=
127RCLINKFLAGS=
128RCSETVERSION=
129
130DLLPOSTFIX=
131DLLPRE=lib
132DLLPOST=.so
133
134LDUMP=cppfilt /b /n /o /p
135
136