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: unxlnxi.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 #*************************************************************************
31 # mak file fuer unxlnxi
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)"!=""
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
58 CFLAGS
=-c
-I.
-I
$(INC
) -I
$(INCLOCAL
) -I
$(INCGUI
) -I
$(INCCOM
) $(SOLARINC
)
60 CFLAGS
=-c
-I.
-I
/usr
/solar
/inc
/pthread_provenzano
-I
$(INC
) -I
$(INCLOCAL
) -I
$(INCGUI
) -I
$(INCCOM
) $(SOLARINC
)
62 CFLAGSCC
=-pipe
-fguiding-decls
$(ARCH_FLAGS
)
63 CFLAGSCXX
=-pipe
-fguiding-decls
$(ARCH_FLAGS
)
65 #STDOBJVCL=$(L)$/salmain.o
68 CFLAGSSLOGUIMT
=$(PICSWITCH
)
69 CFLAGSSLOCUIMT
=$(PICSWITCH
)
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
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
91 LINKFLAGS
=-melf_i386
-z nodefs
-dynamic-linker
/lib
/ld-linux.so
.1 /usr
/lib
/crti.o
/usr
/lib
/crtbegin.o
-lpthread_init
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
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.
118 STDLIBCPP
=-Bstatic
-lstdc
++ -Bdynamic
126 .IF
"$(WORK_STAMP)=="MIX364
"
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
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
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
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
163 RCFLAGS=-fo$@ $(RCFILES)
168 .IF "$(WORK_STAMP
)"!="LVM364
"
169 .IF "$(WORK_STAMP
)"!="MIX364
"
176 LDUMP=cppfilt /b /n /o /p