update dev300-m57
[ooovba.git] / solenv / inc / unxlnxi.mk
bloba8f6d0f6fb81b6b9429d4d0f869b9d04362919b9
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: unxlnxi.mk,v $
11 # $Revision: 1.13 $
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 #*************************************************************************
31 # mak file fuer unxlnxi
32 ASM=
33 AFLAGS=
35 # _PTHREADS is needed for the stl
36 CDEFS+=$(PTHREAD_CFLAGS) -D_PTHREADS
37 CDEFS+=-D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE
38 CDEFS+=-DNO_INET_ON_DEMAND -DX86 -DNEW_SOLAR
40 # kann c++ was c braucht??
42 .IF "$(SOLAR_JAVA)"!=""
43 JAVADEF=-DSOLAR_JAVA
44 .IF "$(debug)"==""
45 JAVA_RUNTIME=-ljava
46 .ELSE
47 JAVA_RUNTIME=-ljava_g
48 .ENDIF
49 .ENDIF
51 # architecture dependent flags for the C and C++ compiler that can be changed by
52 # exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
53 ARCH_FLAGS*=-mpentium
55 CXX*=g++
56 CC*=gcc
57 .IF "$(GLIBC)"=="2"
58 CFLAGS=-c -I. -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) $(SOLARINC)
59 .ELSE
60 CFLAGS=-c -I. -I/usr/solar/inc/pthread_provenzano -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) $(SOLARINC)
61 .ENDIF
62 CFLAGSCC=-pipe -fguiding-decls $(ARCH_FLAGS)
63 CFLAGSCXX=-pipe -fguiding-decls $(ARCH_FLAGS)
64 PICSWITCH:=-fpic
65 #STDOBJVCL=$(L)$/salmain.o
66 CFLAGSOBJGUIMT=
67 CFLAGSOBJCUIMT=
68 CFLAGSSLOGUIMT=$(PICSWITCH)
69 CFLAGSSLOCUIMT=$(PICSWITCH)
70 CFLAGSPROF=
71 CFLAGSDEBUG=-g
72 CFLAGSDBGUTIL=
73 CFLAGSOPT=-O2
74 CFLAGSNOOPT=-O2
75 CFLAGSOUTOBJ=-o
77 CFLAGSWARNCC=
78 CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wno-ctor-dtor-privacy
79 # -Wshadow does not work for C with nested uses of pthread_cleanup_push:
80 CFLAGSWALLCC=-Wall -Wextra -Wendif-labels
81 CFLAGSWALLCXX=$(CFLAGSWALLCC) -Wshadow -Wno-ctor-dtor-privacy
82 CFLAGSWERRCC=-Werror
84 STATIC = -Bstatic
85 DYNAMIC = -Bdynamic
87 LINK=ld
88 .IF "$(GLIBC)"=="2"
89 LINKFLAGS=-melf_i386 -z nodefs -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crti.o /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtbegin.o
90 .ELSE
91 LINKFLAGS=-melf_i386 -z nodefs -dynamic-linker /lib/ld-linux.so.1 /usr/lib/crti.o /usr/lib/crtbegin.o -lpthread_init
92 .ENDIF
93 LINKFLAGSAPPGUI=/usr/lib/crt1.o
94 LINKFLAGSSHLGUI=-noinhibit-exec -warn-once -Bsymbolic -G
95 LINKFLAGSAPPCUI=/usr/lib/crt1.o
96 LINKFLAGSSHLCUI=/usr/lib/crt1.o
97 LINKFLAGSTACK=
98 LINKFLAGSPROF=
99 LINKFLAGSDEBUG=-g
100 LINKFLAGSOPT=
102 SONAME_SWITCH=-Wl,-h
104 # reihenfolge der libs NICHT egal!
106 # standard C++ Library
108 # das statische dazulinken der libstdc++ macht jede shared library um 50k
109 # (ungestrippt) oder so groesser, auch wenn sie ueberhaupt nicht gebraucht
110 # wird. Da muessen wir uns was besseres ueberlegen.
112 # Da mit der neuen libc.so.6 (libc-2.0.5.so) sowieso eine System-Library
113 # ausgeliefert werden muss, linken wir auch die libstdc++.so dynamisch.
115 .IF "$(GLIBC)"=="2"
116 STDLIBCPP=-lstdc++
117 .ELSE
118 STDLIBCPP=-Bstatic -lstdc++ -Bdynamic
119 .ENDIF
121 STDOBJGUI=
122 STDSLOGUI=
123 STDOBJCUI=
124 STDSLOCUI=
126 .IF "$(WORK_STAMP)=="MIX364"
127 .IF "$(GLIBC)"=="2"
128 STDLIBGUIMT=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
129 STDLIBCUIMT=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
130 STDSHLGUIMT=-Bdynamic -lX11 -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
131 STDSHLCUIMT=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
132 .ELSE
133 STDLIBGUIMT=-Bdynamic -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
134 STDLIBCUIMT=-Bdynamic -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
135 STDSHLGUIMT=-Bdynamic -lX11 -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
136 STDSHLCUIMT=-Bdynamic -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
137 .ENDIF
138 .ELSE
139 .IF "$(GLIBC)"=="2"
140 STDLIBGUIMT=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
141 STDLIBCUIMT=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
142 STDSHLGUIMT=-Bdynamic -lX11 -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
143 STDSHLCUIMT=-Bdynamic -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
144 .ELSE
145 STDLIBGUIMT=-Bdynamic -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
146 STDLIBCUIMT=-Bdynamic -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
147 STDSHLGUIMT=-Bdynamic -lX11 -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
148 STDSHLCUIMT=-Bdynamic -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
149 .ENDIF
150 .ENDIF
152 LIBMGR=ar
153 LIBFLAGS=-r
154 # LIBEXT=.so
156 IMPLIB=
157 IMPLIBFLAGS=
159 MAPSYM=
160 MAPSYMFLAGS=
162 RC=irc
163 RCFLAGS=-fo$@ $(RCFILES)
164 RCLINK=
165 RCLINKFLAGS=
166 RCSETVERSION=
168 .IF "$(WORK_STAMP)"!="LVM364"
169 .IF "$(WORK_STAMP)"!="MIX364"
170 DLLPOSTFIX=li
171 .ENDIF
172 .ENDIF
173 DLLPRE=lib
174 DLLPOST=.so
176 LDUMP=cppfilt /b /n /o /p