1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: unxscoi.mk,v $
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
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
45 CXX
*=/nw386
/dev
/s
/solenv
/unxscoi
/bin
/g
++
46 CC
*=/nw386
/dev
/s
/solenv
/unxscoi
/bin
/gcc
48 CFLAGSCC
=$(ARCH_FLAGS
)
49 CFLAGSEXCEPTIONS
=-fexceptions
50 CFLAGS_NO_EXCEPTIONS
=-fno-exceptions
51 CFLAGSCXX
=-fguiding-decls
-frtti
$(ARCH_FLAGS
)
53 CFLAGSOBJGUIMT
=$(PICSWITCH
)
54 CFLAGSOBJCUIMT
=$(PICSWITCH
)
55 CFLAGSSLOGUIMT
=$(PICSWITCH
)
56 CFLAGSSLOCUIMT
=$(PICSWITCH
)
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
72 DYNAMIC
= -Wl
,-Bdynamic
75 LINK
=/nw386
/dev
/s
/solenv
/unxscoi
/bin
/gcc
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
)
83 LINKFLAGSAPPGUI
=-L
/nw386
/dev
/s
/solenv
/unxscoi
/lib
-lpthread_init
84 LINKFLAGSAPPCUI
=-L
/nw386
/dev
/s
/solenv
/unxscoi
/lib
-lpthread_init
86 LINKFLAGSSHLGUI
=-G
-W
,l
,-Bsymbolic
87 LINKFLAGSSHLCUI
=-G
-W
,l
,-Bsymbolic
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!
105 .IF
"$(PRJNAME)"=="rsc"
106 STDLIBGUIMT
=-lXext
-lX11
$(STATIC
) -lpthread
$(DYNAMIC
) -ldl
-lsocket
-lm
107 STDLIBCUIMT
=$(STATIC
) -lpthread
$(DYNAMIC
) -ldl
-lsocket
-lm
109 STDLIBGUIMT
=-lXext
-lX11
-lpthread
-ldl
-lsocket
-lm
110 STDLIBCUIMT
=-lpthread
-ldl
-lsocket
-lm
112 #STDSHLGUIMT=-lXext -lX11 -lpthread -ldl -lsocket -lm
113 #STDSHLCUIMT=-lpthread -ldl -lsocket -lm
129 RCFLAGS
=-fo
$@
$(RCFILES
)
138 LDUMP
=cppfilt
/b
/n
/o
/p
140 .IF
"$(WORK_STAMP)"!="MIX364"