2000-09-18 09:18:43 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2008-04-10 06:05:58 -05:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# Copyright 2008 by Sun Microsystems, Inc.
|
2000-09-18 09:18:43 -05:00
|
|
|
#
|
2008-04-10 06:05:58 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 09:18:43 -05:00
|
|
|
#
|
2008-04-10 06:05:58 -05:00
|
|
|
# $RCSfile: makefile.mk,v $
|
2000-09-18 09:18:43 -05:00
|
|
|
#
|
2008-04-10 06:05:58 -05:00
|
|
|
# $Revision: 1.36 $
|
2000-09-18 09:18:43 -05:00
|
|
|
#
|
2008-04-10 06:05:58 -05:00
|
|
|
# This file is part of OpenOffice.org.
|
2000-09-18 09:18:43 -05:00
|
|
|
#
|
2008-04-10 06:05:58 -05:00
|
|
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
# only, as published by the Free Software Foundation.
|
2000-09-18 09:18:43 -05:00
|
|
|
#
|
2008-04-10 06:05:58 -05:00
|
|
|
# OpenOffice.org 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 version 3 for more details
|
|
|
|
# (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 09:18:43 -05:00
|
|
|
#
|
2008-04-10 06:05:58 -05:00
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# version 3 along with OpenOffice.org. If not, see
|
|
|
|
# <http://www.openoffice.org/license.html>
|
|
|
|
# for a copy of the LGPLv3 License.
|
2000-09-18 09:18:43 -05:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
|
|
|
PRJ=..$/..
|
|
|
|
|
|
|
|
PRJNAME=sal
|
|
|
|
TARGET=cpprtl
|
2006-06-19 22:30:12 -05:00
|
|
|
ENABLE_EXCEPTIONS=TRUE
|
2000-09-18 09:18:43 -05:00
|
|
|
USE_LDUMP2=TRUE
|
|
|
|
|
|
|
|
PROJECTPCH4DLL=TRUE
|
|
|
|
PROJECTPCH=cont_pch
|
|
|
|
PROJECTPCHSOURCE=cont_pch
|
|
|
|
|
2007-09-20 09:24:49 -05:00
|
|
|
.IF "$(GUI)" == "OS2"
|
|
|
|
STL_OS2_BUILDING=1
|
|
|
|
.ENDIF
|
|
|
|
|
2007-03-01 09:00:07 -06:00
|
|
|
TARGETTYPE=CUI
|
|
|
|
|
2000-09-18 09:18:43 -05:00
|
|
|
# --- Settings -----------------------------------------------------
|
|
|
|
|
2001-05-09 06:55:09 -05:00
|
|
|
.INCLUDE : settings.mk
|
2000-09-18 09:18:43 -05:00
|
|
|
|
2006-01-31 11:30:13 -06:00
|
|
|
.IF "$(ALLOC)" == "SYS_ALLOC" || "$(ALLOC)" == "TCMALLOC"
|
|
|
|
CDEFS+= -DFORCE_SYSALLOC
|
|
|
|
.ENDIF
|
|
|
|
|
2007-01-16 09:03:17 -06:00
|
|
|
CFLAGS+= $(LFS_CFLAGS)
|
|
|
|
CXXFLAGS+= $(LFS_CFLAGS)
|
|
|
|
|
2000-09-18 09:18:43 -05:00
|
|
|
# --- Files --------------------------------------------------------
|
|
|
|
|
2007-04-04 01:59:31 -05:00
|
|
|
# safe that way: gen_makefile doesn't want it,
|
|
|
|
# no other link target here
|
|
|
|
UWINAPILIB:=
|
|
|
|
|
2000-09-18 09:18:43 -05:00
|
|
|
.IF "$(header)" == ""
|
|
|
|
|
2005-01-11 05:44:08 -06:00
|
|
|
ALWAYSDBGFILES=$(SLO)$/debugprint.obj
|
|
|
|
|
|
|
|
.IF "$(ALWAYSDBGFILES)" != ""
|
|
|
|
ALWAYSDBGTARGET=do_it_alwaysdebug
|
|
|
|
.ENDIF
|
|
|
|
|
2006-05-02 06:12:59 -05:00
|
|
|
SLOFILES= \
|
|
|
|
$(SLO)$/alloc_global.obj \
|
|
|
|
$(SLO)$/alloc_cache.obj \
|
|
|
|
$(SLO)$/alloc_arena.obj \
|
2001-05-09 06:55:09 -05:00
|
|
|
$(SLO)$/memory.obj \
|
|
|
|
$(SLO)$/cipher.obj \
|
|
|
|
$(SLO)$/crc.obj \
|
|
|
|
$(SLO)$/digest.obj \
|
|
|
|
$(SLO)$/random.obj \
|
|
|
|
$(SLO)$/locale.obj \
|
|
|
|
$(SLO)$/strimp.obj \
|
2007-04-03 08:05:25 -05:00
|
|
|
$(SLO)$/hash.obj \
|
2001-05-09 06:55:09 -05:00
|
|
|
$(SLO)$/string.obj \
|
|
|
|
$(SLO)$/ustring.obj \
|
|
|
|
$(SLO)$/strbuf.obj \
|
|
|
|
$(SLO)$/ustrbuf.obj \
|
|
|
|
$(SLO)$/uuid.obj \
|
2000-09-18 09:18:43 -05:00
|
|
|
$(SLO)$/rtl_process.obj \
|
2001-05-09 06:55:09 -05:00
|
|
|
$(SLO)$/byteseq.obj \
|
2001-05-17 03:01:51 -05:00
|
|
|
$(SLO)$/uri.obj \
|
|
|
|
$(SLO)$/bootstrap.obj \
|
2001-06-07 04:03:23 -05:00
|
|
|
$(SLO)$/cmdargs.obj \
|
2001-07-06 03:52:32 -05:00
|
|
|
$(SLO)$/unload.obj \
|
2002-09-11 05:29:50 -05:00
|
|
|
$(SLO)$/logfile.obj \
|
2003-03-26 09:47:28 -06:00
|
|
|
$(SLO)$/tres.obj \
|
2005-01-11 05:44:08 -06:00
|
|
|
$(SLO)$/debugprint.obj \
|
2002-11-04 08:29:59 -06:00
|
|
|
$(SLO)$/math.obj
|
2000-09-18 09:18:43 -05:00
|
|
|
|
|
|
|
#.IF "$(UPDATER)"=="YES"
|
2006-05-02 06:12:59 -05:00
|
|
|
OBJFILES= \
|
|
|
|
$(OBJ)$/alloc_global.obj \
|
|
|
|
$(OBJ)$/alloc_cache.obj \
|
|
|
|
$(OBJ)$/alloc_arena.obj \
|
2001-05-09 06:55:09 -05:00
|
|
|
$(OBJ)$/memory.obj \
|
|
|
|
$(OBJ)$/cipher.obj \
|
|
|
|
$(OBJ)$/crc.obj \
|
|
|
|
$(OBJ)$/digest.obj \
|
|
|
|
$(OBJ)$/random.obj \
|
|
|
|
$(OBJ)$/locale.obj \
|
|
|
|
$(OBJ)$/strimp.obj \
|
2007-04-03 08:05:25 -05:00
|
|
|
$(OBJ)$/hash.obj \
|
2001-05-09 06:55:09 -05:00
|
|
|
$(OBJ)$/string.obj \
|
|
|
|
$(OBJ)$/ustring.obj \
|
|
|
|
$(OBJ)$/strbuf.obj \
|
|
|
|
$(OBJ)$/ustrbuf.obj \
|
|
|
|
$(OBJ)$/uuid.obj \
|
2000-09-18 09:18:43 -05:00
|
|
|
$(OBJ)$/rtl_process.obj \
|
2001-05-09 06:55:09 -05:00
|
|
|
$(OBJ)$/byteseq.obj \
|
2001-05-17 03:01:51 -05:00
|
|
|
$(OBJ)$/uri.obj \
|
|
|
|
$(OBJ)$/bootstrap.obj \
|
2001-06-07 04:03:23 -05:00
|
|
|
$(OBJ)$/cmdargs.obj \
|
2001-07-06 03:52:32 -05:00
|
|
|
$(OBJ)$/unload.obj \
|
2002-09-11 05:29:50 -05:00
|
|
|
$(OBJ)$/logfile.obj \
|
2003-03-26 09:47:28 -06:00
|
|
|
$(OBJ)$/tres.obj \
|
2002-11-18 09:22:29 -06:00
|
|
|
$(OBJ)$/math.obj
|
2007-10-15 06:51:02 -05:00
|
|
|
|
2007-03-01 09:00:07 -06:00
|
|
|
APP1TARGET=gen_makefile
|
|
|
|
APP1OBJS=$(SLO)$/gen_makefile.obj
|
|
|
|
APP1LIBSALCPPRT=
|
2001-09-24 07:32:38 -05:00
|
|
|
|
2004-06-25 12:38:49 -05:00
|
|
|
# --- Extra objs ----------------------------------------------------
|
|
|
|
|
2007-09-20 09:24:49 -05:00
|
|
|
.IF "$(OS)"=="LINUX" || "$(OS)"=="OS2"
|
2004-06-25 12:38:49 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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
|
2006-05-02 06:12:59 -05:00
|
|
|
SYSALLOC_SLOFILES= $(SLO)$/alloc_global.obj
|
|
|
|
SYSALLOCCDEFS+=-DFORCE_SYSALLOC
|
2004-06-25 12:38:49 -05:00
|
|
|
|
|
|
|
.ENDIF # .IF "$(OS)"=="LINUX"
|
|
|
|
|
2000-09-18 09:18:43 -05:00
|
|
|
#.ENDIF
|
|
|
|
|
|
|
|
.ENDIF
|
|
|
|
|
2007-03-01 09:00:07 -06:00
|
|
|
# --- Makefile snippet --------------------------------------------
|
|
|
|
|
|
|
|
# used by e.g. update info file
|
|
|
|
BOOTSTRAPMK = $(OUT)$/inc$/rtlbootstrap.mk
|
|
|
|
|
2000-09-18 09:18:43 -05:00
|
|
|
# --- Targets ------------------------------------------------------
|
|
|
|
|
2005-01-11 05:44:08 -06:00
|
|
|
.IF "$(ALWAYSDBG_FLAG)"==""
|
|
|
|
TARGETDEPS+=$(ALWAYSDBGTARGET)
|
|
|
|
.ENDIF
|
|
|
|
|
2001-05-09 06:55:09 -05:00
|
|
|
.INCLUDE : target.mk
|
2005-01-11 05:44:08 -06:00
|
|
|
|
|
|
|
.IF "$(ALWAYSDBGTARGET)" != ""
|
|
|
|
.IF "$(ALWAYSDBG_FLAG)" == ""
|
|
|
|
# --------------------------------------------------
|
|
|
|
# - ALWAYSDBG - files always compiled with debugging
|
|
|
|
# --------------------------------------------------
|
|
|
|
$(ALWAYSDBGTARGET):
|
2006-10-05 04:45:36 -05:00
|
|
|
@echo --- ALWAYSDBGFILES ---
|
2005-01-11 05:44:08 -06:00
|
|
|
@dmake $(MFLAGS) $(MAKEFILE) debug=true $(ALWAYSDBGFILES) ALWAYSDBG_FLAG=TRUE $(CALLMACROS)
|
2006-10-05 04:45:36 -05:00
|
|
|
@echo --- ALWAYSDBGFILES OVER ---
|
2005-01-11 05:44:08 -06:00
|
|
|
|
|
|
|
$(ALWAYSDBGFILES):
|
2006-10-05 04:45:36 -05:00
|
|
|
@echo --- ALWAYSDBG ---
|
2005-01-11 05:44:08 -06:00
|
|
|
@dmake $(MFLAGS) $(MAKEFILE) debug=true ALWAYSDBG_FLAG=TRUE $(CALLMACROS) $@
|
2006-10-05 04:45:36 -05:00
|
|
|
@echo --- ALWAYSDBG OVER ---
|
2007-11-02 06:36:22 -05:00
|
|
|
|
2005-01-11 05:44:08 -06:00
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
|
2007-11-02 06:36:22 -05:00
|
|
|
|
2007-03-01 09:00:07 -06:00
|
|
|
ALLTAR : $(BOOTSTRAPMK)
|
|
|
|
|
|
|
|
$(BOOTSTRAPMK) : $(APP1TARGETN)
|
|
|
|
$< > $@
|
2005-01-11 05:44:08 -06:00
|
|
|
|