1d2fe998ae
2005/06/20 13:34:41 hjs 1.7.130.1: #i47954# introduce ARCH_FLAG
216 lines
7.4 KiB
Makefile
216 lines
7.4 KiB
Makefile
#*************************************************************************
|
|
#
|
|
# $RCSfile: unxlnxi.mk,v $
|
|
#
|
|
# $Revision: 1.8 $
|
|
#
|
|
# last change: $Author: kz $ $Date: 2005-07-11 15:33:07 $
|
|
#
|
|
# The Contents of this file are made available subject to the terms of
|
|
# either of the following licenses
|
|
#
|
|
# - GNU Lesser General Public License Version 2.1
|
|
# - Sun Industry Standards Source License Version 1.1
|
|
#
|
|
# Sun Microsystems Inc., October, 2000
|
|
#
|
|
# GNU Lesser General Public License Version 2.1
|
|
# =============================================
|
|
# Copyright 2000 by Sun Microsystems, Inc.
|
|
# 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
#
|
|
# This library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License version 2.1, as published by the Free Software Foundation.
|
|
#
|
|
# This library is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Lesser General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
# License along with this library; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
# MA 02111-1307 USA
|
|
#
|
|
#
|
|
# Sun Industry Standards Source License Version 1.1
|
|
# =================================================
|
|
# The contents of this file are subject to the Sun Industry Standards
|
|
# Source License Version 1.1 (the "License"); You may not use this file
|
|
# except in compliance with the License. You may obtain a copy of the
|
|
# License at http://www.openoffice.org/license.html.
|
|
#
|
|
# Software provided under this License is provided on an "AS IS" basis,
|
|
# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
|
# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
|
|
# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
|
|
# See the License for the specific provisions governing your rights and
|
|
# obligations concerning the Software.
|
|
#
|
|
# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
|
|
#
|
|
# Copyright: 2000 by Sun Microsystems, Inc.
|
|
#
|
|
# All Rights Reserved.
|
|
#
|
|
# Contributor(s): _______________________________________
|
|
#
|
|
#
|
|
#
|
|
#*************************************************************************
|
|
# mak file fuer unxlnxi
|
|
ASM=
|
|
AFLAGS=
|
|
|
|
# _PTHREADS is needed for the stl
|
|
CDEFS+=-D_PTHREADS
|
|
CDEFS+=-D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE
|
|
CDEFS+=-DNO_INET_ON_DEMAND -DX86 -DNEW_SOLAR
|
|
|
|
# kann c++ was c braucht??
|
|
|
|
.IF "$(SOLAR_JAVA)"!=""
|
|
JAVADEF=-DSOLAR_JAVA
|
|
.IF "$(debug)"==""
|
|
JAVA_RUNTIME=-ljava
|
|
.ELSE
|
|
JAVA_RUNTIME=-ljava_g
|
|
.ENDIF
|
|
.ENDIF
|
|
|
|
# architecture dependent flags for the C and C++ compiler that can be changed by
|
|
# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
|
|
ARCH_FLAGS*=-mpentium
|
|
|
|
CXX*=g++
|
|
CC*=gcc
|
|
.IF "$(GLIBC)"=="2"
|
|
CFLAGS=-c -I. -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) $(SOLARINC)
|
|
.ELSE
|
|
CFLAGS=-c -I. -I/usr/solar/inc/pthread_provenzano -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) $(SOLARINC)
|
|
.ENDIF
|
|
CFLAGSCC=-pipe -fguiding-decls $(ARCH_FLAGS)
|
|
CFLAGSCXX=-pipe -fguiding-decls $(ARCH_FLAGS)
|
|
CFLAGSCXX+= -Wno-ctor-dtor-privacy
|
|
PICSWITCH:=-fpic
|
|
#STDOBJVCL=$(L)$/salmain.o
|
|
CFLAGSOBJGUIST=
|
|
CFLAGSOBJCUIST=
|
|
CFLAGSOBJGUIMT=
|
|
CFLAGSOBJCUIMT=
|
|
CFLAGSSLOGUIMT=$(PICSWITCH)
|
|
CFLAGSSLOCUIMT=$(PICSWITCH)
|
|
CFLAGSPROF=
|
|
CFLAGSDEBUG=-g
|
|
CFLAGSDBGUTIL=
|
|
CFLAGSOPT=-O2
|
|
CFLAGSNOOPT=-O2
|
|
CFLAGSOUTOBJ=-o
|
|
|
|
STATIC = -Bstatic
|
|
DYNAMIC = -Bdynamic
|
|
|
|
LINK=ld
|
|
.IF "$(GLIBC)"=="2"
|
|
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
|
|
.ELSE
|
|
.IF "$(TARGETTHREAD)"=="MT"
|
|
LINKFLAGS=-melf_i386 -z nodefs -dynamic-linker /lib/ld-linux.so.1 /usr/lib/crti.o /usr/lib/crtbegin.o -lpthread_init
|
|
.ELSE
|
|
LINKFLAGS=-melf_i386 -z nodefs -dynamic-linker /lib/ld-linux.so.1 /usr/lib/crti.o /usr/lib/crtbegin.o
|
|
.ENDIF
|
|
.ENDIF
|
|
LINKFLAGSAPPGUI=/usr/lib/crt1.o
|
|
LINKFLAGSSHLGUI=-noinhibit-exec -warn-once -Bsymbolic -G
|
|
LINKFLAGSAPPCUI=/usr/lib/crt1.o
|
|
LINKFLAGSSHLCUI=/usr/lib/crt1.o
|
|
LINKFLAGSTACK=
|
|
LINKFLAGSPROF=
|
|
LINKFLAGSDEBUG=-g
|
|
LINKFLAGSOPT=
|
|
|
|
SONAME_SWITCH=-Wl,-h
|
|
|
|
# reihenfolge der libs NICHT egal!
|
|
|
|
# standard C++ Library
|
|
#
|
|
# das statische dazulinken der libstdc++ macht jede shared library um 50k
|
|
# (ungestrippt) oder so groesser, auch wenn sie ueberhaupt nicht gebraucht
|
|
# wird. Da muessen wir uns was besseres ueberlegen.
|
|
#
|
|
# Da mit der neuen libc.so.6 (libc-2.0.5.so) sowieso eine System-Library
|
|
# ausgeliefert werden muss, linken wir auch die libstdc++.so dynamisch.
|
|
|
|
.IF "$(GLIBC)"=="2"
|
|
STDLIBCPP=-lstdc++
|
|
.ELSE
|
|
STDLIBCPP=-Bstatic -lstdc++ -Bdynamic
|
|
.ENDIF
|
|
|
|
STDOBJGUI=
|
|
STDSLOGUI=
|
|
STDOBJCUI=
|
|
STDSLOCUI=
|
|
|
|
.IF "$(WORK_STAMP)=="MIX364"
|
|
.IF "$(GLIBC)"=="2"
|
|
STDLIBGUIST=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
|
|
STDLIBCUIST=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
|
|
STDLIBGUIMT=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
|
|
STDLIBCUIMT=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
|
|
STDSHLGUIMT=-Bdynamic -lX11 -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
|
|
STDSHLCUIMT=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
|
|
.ELSE
|
|
STDLIBGUIST=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
|
|
STDLIBCUIST=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
|
|
STDLIBGUIMT=-Bdynamic -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
|
|
STDLIBCUIMT=-Bdynamic -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
|
|
STDSHLGUIMT=-Bdynamic -lX11 -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
|
|
STDSHLCUIMT=-Bdynamic -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
|
|
.ENDIF
|
|
.ELSE
|
|
.IF "$(GLIBC)"=="2"
|
|
STDLIBGUIST=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
|
|
STDLIBCUIST=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
|
|
STDLIBGUIMT=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
|
|
STDLIBCUIMT=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
|
|
STDSHLGUIMT=-Bdynamic -lX11 -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
|
|
STDSHLCUIMT=-Bdynamic -lm -lc -ldl /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/crtend.o /usr/lib/crtn.o
|
|
.ELSE
|
|
STDLIBGUIST=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
|
|
STDLIBCUIST=-Bdynamic -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
|
|
STDLIBGUIMT=-Bdynamic -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
|
|
STDLIBCUIMT=-Bdynamic -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
|
|
STDSHLGUIMT=-Bdynamic -lX11 -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
|
|
STDSHLCUIMT=-Bdynamic -lpthread -lgcc -lm -lc -ldl /usr/lib/crtend.o /usr/lib/crtn.o
|
|
.ENDIF
|
|
.ENDIF
|
|
|
|
LIBMGR=ar
|
|
LIBFLAGS=-r
|
|
# LIBEXT=.so
|
|
|
|
IMPLIB=
|
|
IMPLIBFLAGS=
|
|
|
|
MAPSYM=
|
|
MAPSYMFLAGS=
|
|
|
|
RC=irc
|
|
RCFLAGS=-fo$@ $(RCFILES)
|
|
RCLINK=
|
|
RCLINKFLAGS=
|
|
RCSETVERSION=
|
|
|
|
.IF "$(WORK_STAMP)"!="LVM364"
|
|
.IF "$(WORK_STAMP)"!="MIX364"
|
|
DLLPOSTFIX=li
|
|
.ENDIF
|
|
.ENDIF
|
|
DLLPRE=lib
|
|
DLLPOST=.so
|
|
|
|
LDUMP=cppfilt /b /n /o /p
|
|
|