2003-03-27 04:48:49 -06:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2005-09-08 03:59:55 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2005-09-08 03:59:55 -05:00
|
|
|
# $RCSfile: unxscoi.mk,v $
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2007-03-09 02:11:23 -06:00
|
|
|
# $Revision: 1.11 $
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2007-03-09 02:11:23 -06:00
|
|
|
# last change: $Author: obo $ $Date: 2007-03-09 09:11:23 $
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2005-09-08 03:59:55 -05:00
|
|
|
# The Contents of this file are made available subject to
|
|
|
|
# the terms of GNU Lesser General Public License Version 2.1.
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
|
|
|
#
|
2005-09-08 03:59:55 -05:00
|
|
|
# GNU Lesser General Public License Version 2.1
|
|
|
|
# =============================================
|
|
|
|
# Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
# 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2005-09-08 03:59:55 -05:00
|
|
|
# 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.
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2005-09-08 03:59:55 -05:00
|
|
|
# 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.
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2005-09-08 03:59:55 -05:00
|
|
|
# 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
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
# mak file fuer wnticci
|
|
|
|
ASM=
|
|
|
|
AFLAGS=
|
|
|
|
|
|
|
|
CDEFS+=-D_PTHREADS -D_REENTRANT
|
|
|
|
CDEFS+=-D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE -DX86 -DNEW_SOLAR
|
|
|
|
# kann c++ was c braucht??
|
|
|
|
|
2005-07-11 09:33:34 -05:00
|
|
|
# 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
|
|
|
|
|
2003-03-27 04:48:49 -06:00
|
|
|
CXX*=/nw386/dev/s/solenv/unxscoi/bin/g++
|
|
|
|
CC*=/nw386/dev/s/solenv/unxscoi/bin/gcc
|
2006-07-05 16:04:24 -05:00
|
|
|
CFLAGS=-c
|
2005-07-11 09:33:34 -05:00
|
|
|
CFLAGSCC=$(ARCH_FLAGS)
|
2000-09-20 08:43:26 -05:00
|
|
|
CFLAGSEXCEPTIONS=-fexceptions
|
|
|
|
CFLAGS_NO_EXCEPTIONS=-fno-exceptions
|
2005-07-11 09:33:34 -05:00
|
|
|
CFLAGSCXX=-fguiding-decls -frtti $(ARCH_FLAGS)
|
2005-02-11 08:31:21 -06:00
|
|
|
PICSWITCH:=-fPIC
|
|
|
|
CFLAGSOBJGUIMT=$(PICSWITCH)
|
|
|
|
CFLAGSOBJCUIMT=$(PICSWITCH)
|
|
|
|
CFLAGSSLOGUIMT=$(PICSWITCH)
|
|
|
|
CFLAGSSLOCUIMT=$(PICSWITCH)
|
2000-09-20 08:43:26 -05:00
|
|
|
CFLAGSPROF=
|
|
|
|
CFLAGSDEBUG=-g
|
|
|
|
CFLAGSDBGUTIL=
|
|
|
|
CFLAGSOPT=-O2
|
|
|
|
CFLAGSNOOPT=-O
|
|
|
|
CFLAGSOUTOBJ=-o
|
|
|
|
|
2006-06-19 11:16:48 -05:00
|
|
|
CFLAGSWARNCC=
|
|
|
|
CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wno-ctor-dtor-privacy
|
|
|
|
# -Wshadow does not work for C with nested uses of pthread_cleanup_push:
|
|
|
|
CFLAGSWALLCC=-Wall -Wextra -Wendif-labels
|
|
|
|
CFLAGSWALLCXX=$(CFLAGSWALLCC) -Wshadow -Wno-ctor-dtor-privacy
|
|
|
|
CFLAGSWERRCC=-Werror
|
|
|
|
|
2000-09-20 08:43:26 -05:00
|
|
|
STATIC = -Wl,-Bstatic
|
|
|
|
DYNAMIC = -Wl,-Bdynamic
|
|
|
|
|
|
|
|
THREADLIB=
|
|
|
|
LINK=/nw386/dev/s/solenv/unxscoi/bin/gcc
|
|
|
|
LINKFLAGS=
|
|
|
|
# SCO hat grosse Probleme mit fork/exec und einigen shared libraries
|
|
|
|
# rsc2 muss daher statisch gelinkt werden
|
|
|
|
.IF "$(PRJNAME)"=="rsc"
|
|
|
|
LINKFLAGSAPPGUI=-L/nw386/dev/s/solenv/unxscoi/lib $(STATIC) -lpthread_init $(DYNAMIC)
|
|
|
|
LINKFLAGSAPPCUI=-L/nw386/dev/s/solenv/unxscoi/lib $(STATIC) -lpthread_init $(DYNAMIC)
|
|
|
|
.ELSE
|
|
|
|
LINKFLAGSAPPGUI=-L/nw386/dev/s/solenv/unxscoi/lib -lpthread_init
|
|
|
|
LINKFLAGSAPPCUI=-L/nw386/dev/s/solenv/unxscoi/lib -lpthread_init
|
|
|
|
.ENDIF
|
|
|
|
LINKFLAGSSHLGUI=-G -W,l,-Bsymbolic
|
|
|
|
LINKFLAGSSHLCUI=-G -W,l,-Bsymbolic
|
|
|
|
LINKFLAGSTACK=
|
|
|
|
LINKFLAGSPROF=
|
|
|
|
LINKFLAGSDEBUG=-g
|
|
|
|
LINKFLAGSOPT=
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
STDLIBCPP=-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
|
|
|
|
|
|
|
|
# reihenfolge der libs NICHT egal!
|
|
|
|
STDOBJGUI=
|
|
|
|
STDSLOGUI=
|
|
|
|
STDOBJCUI=
|
|
|
|
STDSLOCUI=
|
|
|
|
.IF "$(PRJNAME)"=="rsc"
|
2001-10-24 11:21:47 -05:00
|
|
|
STDLIBGUIMT=-lXext -lX11 $(STATIC) -lpthread $(DYNAMIC) -ldl -lsocket -lm
|
2000-09-20 08:43:26 -05:00
|
|
|
STDLIBCUIMT=$(STATIC) -lpthread $(DYNAMIC) -ldl -lsocket -lm
|
|
|
|
.ELSE
|
2001-10-24 11:21:47 -05:00
|
|
|
STDLIBGUIMT=-lXext -lX11 -lpthread -ldl -lsocket -lm
|
2000-09-20 08:43:26 -05:00
|
|
|
STDLIBCUIMT=-lpthread -ldl -lsocket -lm
|
|
|
|
.ENDIF
|
2001-10-24 11:21:47 -05:00
|
|
|
#STDSHLGUIMT=-lXext -lX11 -lpthread -ldl -lsocket -lm
|
2000-09-20 08:43:26 -05:00
|
|
|
#STDSHLCUIMT=-lpthread -ldl -lsocket -lm
|
|
|
|
|
|
|
|
STDLIBCPP= -lstdc++
|
|
|
|
SHLLINKARCONLY=yes
|
|
|
|
|
|
|
|
LIBMGR=ar
|
|
|
|
LIBFLAGS=-r
|
|
|
|
# LIBEXT=.so
|
|
|
|
|
|
|
|
IMPLIB=
|
|
|
|
IMPLIBFLAGS=
|
|
|
|
|
|
|
|
MAPSYM=
|
|
|
|
MAPSYMFLAGS=
|
|
|
|
|
|
|
|
RC=irc
|
|
|
|
RCFLAGS=-fo$@ $(RCFILES)
|
|
|
|
RCLINK=
|
|
|
|
RCLINKFLAGS=
|
|
|
|
RCSETVERSION=
|
|
|
|
|
|
|
|
DLLPOSTFIX=ci
|
|
|
|
DLLPRE=lib
|
|
|
|
DLLPOST=.so
|
|
|
|
|
|
|
|
LDUMP=cppfilt /b /n /o /p
|
|
|
|
|
|
|
|
.IF "$(WORK_STAMP)"!="MIX364"
|
|
|
|
DLLPOSTFIX=ci
|
|
|
|
.ELSE
|
|
|
|
DLLPOSTFIX=
|
|
|
|
.ENDIF
|