071db9c590
2005/01/10 16:57:22 cmc 1.20.72.2: #i40089# Changes made for #i17295# not reflected into 2.0 series (alternative) 2005/01/07 09:55:30 cmc 1.20.72.1: #i40089# Changes made for #i17295# not reflected into 2.0 series
183 lines
5.7 KiB
Makefile
183 lines
5.7 KiB
Makefile
#*************************************************************************
|
|
#
|
|
# $RCSfile: makefile.mk,v $
|
|
#
|
|
# $Revision: 1.21 $
|
|
#
|
|
# last change: $Author: rt $ $Date: 2005-01-11 12:44:08 $
|
|
#
|
|
# 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): _______________________________________
|
|
#
|
|
#
|
|
#
|
|
#*************************************************************************
|
|
|
|
PRJ=..$/..
|
|
|
|
PRJNAME=sal
|
|
TARGET=cpprtl
|
|
USE_LDUMP2=TRUE
|
|
|
|
PROJECTPCH4DLL=TRUE
|
|
PROJECTPCH=cont_pch
|
|
PROJECTPCHSOURCE=cont_pch
|
|
|
|
# --- Settings -----------------------------------------------------
|
|
|
|
.INCLUDE : settings.mk
|
|
|
|
# --- Files --------------------------------------------------------
|
|
|
|
.IF "$(header)" == ""
|
|
|
|
ALWAYSDBGFILES=$(SLO)$/debugprint.obj
|
|
|
|
.IF "$(ALWAYSDBGFILES)" != ""
|
|
ALWAYSDBGTARGET=do_it_alwaysdebug
|
|
.ENDIF
|
|
|
|
SLOFILES= $(SLO)$/alloc.obj \
|
|
$(SLO)$/memory.obj \
|
|
$(SLO)$/cipher.obj \
|
|
$(SLO)$/crc.obj \
|
|
$(SLO)$/digest.obj \
|
|
$(SLO)$/random.obj \
|
|
$(SLO)$/locale.obj \
|
|
$(SLO)$/strimp.obj \
|
|
$(SLO)$/string.obj \
|
|
$(SLO)$/ustring.obj \
|
|
$(SLO)$/strbuf.obj \
|
|
$(SLO)$/ustrbuf.obj \
|
|
$(SLO)$/uuid.obj \
|
|
$(SLO)$/rtl_process.obj \
|
|
$(SLO)$/byteseq.obj \
|
|
$(SLO)$/uri.obj \
|
|
$(SLO)$/bootstrap.obj \
|
|
$(SLO)$/cmdargs.obj \
|
|
$(SLO)$/macro.obj \
|
|
$(SLO)$/unload.obj \
|
|
$(SLO)$/logfile.obj \
|
|
$(SLO)$/tres.obj \
|
|
$(SLO)$/debugprint.obj \
|
|
$(SLO)$/math.obj
|
|
|
|
#.IF "$(UPDATER)"=="YES"
|
|
OBJFILES= $(OBJ)$/alloc.obj \
|
|
$(OBJ)$/memory.obj \
|
|
$(OBJ)$/cipher.obj \
|
|
$(OBJ)$/crc.obj \
|
|
$(OBJ)$/digest.obj \
|
|
$(OBJ)$/random.obj \
|
|
$(OBJ)$/locale.obj \
|
|
$(OBJ)$/strimp.obj \
|
|
$(OBJ)$/string.obj \
|
|
$(OBJ)$/ustring.obj \
|
|
$(OBJ)$/strbuf.obj \
|
|
$(OBJ)$/ustrbuf.obj \
|
|
$(OBJ)$/uuid.obj \
|
|
$(OBJ)$/rtl_process.obj \
|
|
$(OBJ)$/byteseq.obj \
|
|
$(OBJ)$/uri.obj \
|
|
$(OBJ)$/bootstrap.obj \
|
|
$(OBJ)$/cmdargs.obj \
|
|
$(OBJ)$/macro.obj \
|
|
$(OBJ)$/unload.obj \
|
|
$(OBJ)$/logfile.obj \
|
|
$(OBJ)$/tres.obj \
|
|
$(OBJ)$/math.obj
|
|
|
|
# --- Extra objs ----------------------------------------------------
|
|
|
|
.IF "$(OS)"=="LINUX"
|
|
|
|
#
|
|
# This part builds a second version of alloc.c, with
|
|
# FORCE_SYSALLOC defined. Is later used in util/makefile.mk
|
|
# to build a tiny replacement lib to LD_PRELOAD into the
|
|
# office, enabling e.g. proper valgrinding.
|
|
#
|
|
|
|
SECOND_BUILD=SYSALLOC
|
|
SYSALLOC_SLOFILES= $(SLO)$/alloc.obj
|
|
SYSALLOCCDEFS+=-DFORCE_SYSALLOC -DOSL_DEBUG_LEVEL=0
|
|
|
|
.ENDIF # .IF "$(OS)"=="LINUX"
|
|
|
|
#.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
# --- Targets ------------------------------------------------------
|
|
|
|
.IF "$(ALWAYSDBG_FLAG)"==""
|
|
TARGETDEPS+=$(ALWAYSDBGTARGET)
|
|
.ENDIF
|
|
|
|
.INCLUDE : target.mk
|
|
|
|
.IF "$(ALWAYSDBGTARGET)" != ""
|
|
.IF "$(ALWAYSDBG_FLAG)" == ""
|
|
# --------------------------------------------------
|
|
# - ALWAYSDBG - files always compiled with debugging
|
|
# --------------------------------------------------
|
|
$(ALWAYSDBGTARGET):
|
|
@+echo --- ALWAYSDBGFILES ---
|
|
@dmake $(MFLAGS) $(MAKEFILE) debug=true $(ALWAYSDBGFILES) ALWAYSDBG_FLAG=TRUE $(CALLMACROS)
|
|
@+echo --- ALWAYSDBGFILES OVER ---
|
|
|
|
$(ALWAYSDBGFILES):
|
|
@+echo --- ALWAYSDBG ---
|
|
@dmake $(MFLAGS) $(MAKEFILE) debug=true ALWAYSDBG_FLAG=TRUE $(CALLMACROS) $@
|
|
@+echo --- ALWAYSDBG OVER ---
|
|
.ENDIF
|
|
.ENDIF
|
|
|
|
|