2000-09-20 08:43:26 -05:00
|
|
|
#*************************************************************************
|
2000-10-30 06:14:55 -06:00
|
|
|
#
|
2005-09-08 03:43:00 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2000-10-30 06:14:55 -06:00
|
|
|
#
|
2005-09-08 03:43:00 -05:00
|
|
|
# $RCSfile: tg_def.mk,v $
|
2000-10-30 06:14:55 -06:00
|
|
|
#
|
2007-02-01 02:59:53 -06:00
|
|
|
# $Revision: 1.36 $
|
2000-10-30 06:14:55 -06:00
|
|
|
#
|
2007-02-01 02:59:53 -06:00
|
|
|
# last change: $Author: rt $ $Date: 2007-02-01 09:59:38 $
|
2000-10-30 06:14:55 -06:00
|
|
|
#
|
2005-09-08 03:43:00 -05:00
|
|
|
# The Contents of this file are made available subject to
|
|
|
|
# the terms of GNU Lesser General Public License Version 2.1.
|
2000-10-30 06:14:55 -06:00
|
|
|
#
|
|
|
|
#
|
2005-09-08 03:43:00 -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
|
2000-10-30 06:14:55 -06:00
|
|
|
#
|
2005-09-08 03:43:00 -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.
|
2000-10-30 06:14:55 -06:00
|
|
|
#
|
2005-09-08 03:43:00 -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.
|
2000-10-30 06:14:55 -06:00
|
|
|
#
|
2005-09-08 03:43:00 -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
|
2000-10-30 06:14:55 -06:00
|
|
|
#
|
2000-09-20 08:43:26 -05:00
|
|
|
#*************************************************************************
|
|
|
|
|
|
|
|
#######################################################
|
|
|
|
# Anweisungen fuer das Linken
|
|
|
|
# unroll begin
|
|
|
|
|
|
|
|
.IF "$(DEF$(TNR)TARGETN)"!=""
|
|
|
|
|
2001-05-04 09:21:59 -05:00
|
|
|
#to make intuitiv naming work
|
|
|
|
.IF "$(DEF$(TNR)LIBNAME)"!=""
|
|
|
|
DEFLIB$(TNR)NAME*=$(DEF$(TNR)LIBNAME)
|
|
|
|
.ENDIF # "$(DEF$(TNR)LIBNAME)"!=""
|
|
|
|
|
2000-09-20 08:43:26 -05:00
|
|
|
.IF "$(DEFLIB$(TNR)NAME)"!=""
|
|
|
|
.IF "$(UPDATER)"!=""
|
|
|
|
DEF$(TNR)DEPN+=$(SLB)$/$(DEFLIB$(TNR)NAME).lib
|
|
|
|
.ENDIF # "$(UPDATER)"!=""
|
|
|
|
.ENDIF
|
|
|
|
|
2001-04-27 06:30:04 -05:00
|
|
|
.IF "$(SHL$(TNR)VERSIONMAP)"!=""
|
|
|
|
.IF "$(DEF$(TNR)EXPORTFILE)"==""
|
2001-05-21 06:29:38 -05:00
|
|
|
.IF "$(GUI)"=="WNT"
|
2001-10-26 09:36:31 -05:00
|
|
|
DEF$(TNR)EXPORTFILE=$(MISC)$/$(SHL$(TNR)VERSIONMAP:b)_$(SHL$(TNR)TARGET).dxp
|
2001-04-27 06:30:04 -05:00
|
|
|
$(DEF$(TNR)EXPORTFILE) : $(SHL$(TNR)VERSIONMAP)
|
2007-01-25 05:53:53 -06:00
|
|
|
$(TYPE) $< | $(AWK) -f $(SOLARENV)$/bin$/getcsym.awk > $@
|
2001-04-27 06:30:04 -05:00
|
|
|
|
2001-05-21 06:29:38 -05:00
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
2001-04-27 06:30:04 -05:00
|
|
|
.ENDIF # "$(DEF$(TNR)EXPORTFILE)"==""
|
|
|
|
.ENDIF # "$(SHL$(TNR)VERSIONMAP)"!=""
|
|
|
|
|
2002-08-15 09:42:40 -05:00
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
|
2004-08-23 03:18:15 -05:00
|
|
|
DEF$(TNR)FILTER=$(SOLARENV)$/inc$/dummy.flt
|
|
|
|
|
2007-02-01 02:59:53 -06:00
|
|
|
RMHACK$(TNR):=$(RM)
|
2004-03-04 10:19:16 -06:00
|
|
|
.IF "$(MWS_BUILD)"!=""
|
2002-08-15 09:42:40 -05:00
|
|
|
.IF "$(UPDATER)"!=""
|
|
|
|
.IF "$(DEFLIB$(TNR)NAME)"!=""
|
|
|
|
|
2002-08-09 12:04:24 -05:00
|
|
|
DEF$(TNR)UNIQE:=$(mktmp $(GUI))
|
|
|
|
|
2002-08-15 09:42:40 -05:00
|
|
|
# %_disk is a 4nt special; don't exppect it to work in any other shell
|
2007-01-25 05:53:53 -06:00
|
|
|
BUILD_DRIVE$(TNR):=$(shell echo %_disk)
|
2002-08-15 09:42:40 -05:00
|
|
|
#BUILD_DRIVE$(TNR):=O
|
|
|
|
|
|
|
|
.IF "$(BUILD_DRIVE$(TNR))"=="O"
|
|
|
|
# in case of RE build, protect against failed lock
|
2007-01-29 03:52:01 -06:00
|
|
|
EXPORT$(TNR)_PROTECT=$(TMP)$/$(DEF$(TNR)UNIQE:b).bat &&
|
2007-02-01 02:59:53 -06:00
|
|
|
RMHACK$(TNR):=$(RM:s/+//)
|
2007-01-29 03:52:01 -06:00
|
|
|
.ELSE # "$(BUILD_DRIVE$(TNR))"=="O"
|
2002-08-15 09:42:40 -05:00
|
|
|
.ENDIF # "$(BUILD_DRIVE$(TNR))"=="O"
|
|
|
|
|
|
|
|
.ENDIF # "$(DEFLIB$(TNR)NAME)"!=""
|
|
|
|
.ENDIF # "$(UPDATER)"!=""
|
2004-03-04 10:19:16 -06:00
|
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
2002-08-15 09:42:40 -05:00
|
|
|
|
2004-12-10 11:03:52 -06:00
|
|
|
.IF "$(link_always)"==""
|
2000-09-20 08:43:26 -05:00
|
|
|
$(DEF$(TNR)TARGETN) : \
|
|
|
|
$(DEF$(TNR)DEPN) \
|
|
|
|
$(DEF$(TNR)EXPORTFILE)
|
2004-12-10 11:03:52 -06:00
|
|
|
.ELSE # "$(link_always)"==""
|
|
|
|
$(DEF$(TNR)TARGETN) .PHONY :
|
|
|
|
.ENDIF # "$(link_always)"==""
|
2004-03-04 10:19:16 -06:00
|
|
|
.IF "$(MWS_BUILD)"!=""
|
2001-02-19 12:12:10 -06:00
|
|
|
.IF "$(UPDATER)"!=""
|
2002-02-18 04:12:40 -06:00
|
|
|
.IF "$(DEFLIB$(TNR)NAME)"!=""
|
2002-08-15 09:42:40 -05:00
|
|
|
.IF "$(BUILD_DRIVE$(TNR))"=="O"
|
2000-11-14 07:23:41 -06:00
|
|
|
#
|
2002-01-30 07:27:05 -06:00
|
|
|
# don't forget to have the right DEFSTAG set!
|
2000-11-14 07:23:41 -06:00
|
|
|
#
|
2007-01-25 05:53:53 -06:00
|
|
|
$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF$(TNR)UNIQE:b) update $(DEFSTAG)
|
2002-08-15 09:42:40 -05:00
|
|
|
.ENDIF # "$(BUILD_DRIVE$(TNR))"=="O"
|
2002-02-18 04:12:40 -06:00
|
|
|
.ENDIF # "$(DEFLIB$(TNR)NAME)"!=""
|
2001-02-19 12:12:10 -06:00
|
|
|
.ENDIF # "$(UPDATER)"!=""
|
2004-03-04 10:19:16 -06:00
|
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
2007-01-25 05:53:53 -06:00
|
|
|
# -attrib -r defs$/$(OUTPATH)
|
|
|
|
@-$(RM) $@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making Module-Definitionfile : $@
|
2006-06-29 05:20:50 -05:00
|
|
|
@echo LIBRARY $(SHL$(TNR)TARGETN:f) >$@.tmpfile
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo HEAPSIZE 0 >>$@.tmpfile
|
|
|
|
@echo EXPORTS >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
# getversioninfo fuer alle!!
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo GetVersionInfo >>$@.tmpfile
|
2001-02-02 05:03:53 -06:00
|
|
|
.IF "$(NO_SHL$(TNR)DESCRIPTION)"==""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo component_getDescriptionFunc >>$@.tmpfile
|
2001-02-02 05:03:53 -06:00
|
|
|
.ENDIF # "$(NO_SHL$(TNR)DESCRIPTION)"==""
|
2000-09-20 08:43:26 -05:00
|
|
|
.IF "$(DEFLIB$(TNR)NAME)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
.IF "$(SHL$(TNR)USE_EXPORTS)"!="ordinal"
|
2007-02-01 02:59:53 -06:00
|
|
|
@-$(EXPORT$(TNR)_PROTECT) $(RMHACK$(TNR)) $(MISC)$/$(SHL$(TNR)TARGET).exp
|
2007-01-25 05:53:53 -06:00
|
|
|
@$(EXPORT$(TNR)_PROTECT) $(LIBMGR) -EXTRACT:/ /OUT:$(MISC)$/$(SHL$(TNR)TARGET).exp $(SLB)$/$(DEFLIB$(TNR)NAME).lib
|
2004-08-23 03:18:15 -05:00
|
|
|
.IF "$(DEF$(TNR)CEXP)"!=""
|
2007-01-25 05:53:53 -06:00
|
|
|
@$(EXPORT$(TNR)_PROTECT) $(LDUMP2) -A $(DEF$(TNR)CEXP) -E 20 -F $(MISC)$/$(SHL$(TNR)TARGET).flt $(MISC)$/$(SHL$(TNR)TARGET).exp >>$@.tmpfile
|
2004-08-23 03:18:15 -05:00
|
|
|
.ELSE
|
2007-01-25 05:53:53 -06:00
|
|
|
@$(EXPORT$(TNR)_PROTECT) $(LDUMP2) -E 20 -F $(MISC)$/$(SHL$(TNR)TARGET).flt $(MISC)$/$(SHL$(TNR)TARGET).exp >>$@.tmpfile
|
2004-08-23 03:18:15 -05:00
|
|
|
.ENDIF
|
2007-02-01 02:59:53 -06:00
|
|
|
$(EXPORT$(TNR)_PROTECT) $(RMHACK$(TNR)) $(MISC)$/$(SHL$(TNR)TARGET).exp
|
2004-08-23 03:18:15 -05:00
|
|
|
.ELSE # "$(SHL$(TNR)USE_EXPORTS)"!="ordinal"
|
2007-01-25 05:53:53 -06:00
|
|
|
@$(EXPORT$(TNR)_PROTECT) $(DUMPBIN) -DIRECTIVES $(SLB)$/$(DEFLIB$(TNR)NAME).lib | $(GREP) EXPORT: > $(MISC)$/$(SHL$(TNR)TARGET).direct
|
2000-09-20 08:43:26 -05:00
|
|
|
.IF "$(DEF$(TNR)CEXP)"!=""
|
2007-01-25 05:53:53 -06:00
|
|
|
@$(EXPORT$(TNR)_PROTECT) $(LDUMP2) -D -A $(DEF$(TNR)CEXP) -E 20 -F $(DEF$(TNR)FILTER) $(MISC)$/$(SHL$(TNR)TARGET).direct >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE
|
2007-01-25 05:53:53 -06:00
|
|
|
@$(EXPORT$(TNR)_PROTECT) $(LDUMP2) -D -E 20 -F $(DEF$(TNR)FILTER) $(MISC)$/$(SHL$(TNR)TARGET).direct >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
2004-08-23 03:18:15 -05:00
|
|
|
.ENDIF # "$(SHL$(TNR)USE_EXPORTS)"!="ordinal"
|
2000-11-14 07:23:41 -06:00
|
|
|
# now *\defs\$(OUTPATH) exists, commit it
|
2004-03-04 10:19:16 -06:00
|
|
|
.IF "$(MWS_BUILD)"!=""
|
2001-02-19 12:12:10 -06:00
|
|
|
.IF "$(UPDATER)"!=""
|
2002-08-15 09:42:40 -05:00
|
|
|
.IF "$(BUILD_DRIVE$(TNR))"=="O"
|
2000-11-14 07:23:41 -06:00
|
|
|
#
|
2002-01-30 07:27:05 -06:00
|
|
|
# don't forget to have the right DEFSTAG set!
|
2000-11-14 07:23:41 -06:00
|
|
|
#
|
2007-01-25 05:53:53 -06:00
|
|
|
$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF$(TNR)UNIQE:b) commit
|
2007-01-25 11:40:25 -06:00
|
|
|
$(4nt_force_shell)$(TMP)$/$(DEF$(TNR)UNIQE:b).bat && $(RM:s/+//) $(TMP)$/$(DEF$(TNR)UNIQE:b).bat
|
2002-08-15 09:42:40 -05:00
|
|
|
.ENDIF # "$(BUILD_DRIVE$(TNR))"=="O"
|
2001-02-19 12:12:10 -06:00
|
|
|
.ENDIF # "$(UPDATER)"!=""
|
2004-03-04 10:19:16 -06:00
|
|
|
.ENDIF # "$(MWS_BUILD)"!=""
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF # "$(DEFLIB$(TNR)NAME)"!=""
|
|
|
|
.IF "$(DEF$(TNR)EXPORT1)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT1) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT2)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT2) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT3)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT3) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT4)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT4) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT5)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT5) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT6)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT6) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT7)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT7) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT8)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT8) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT9)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT9) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT10)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT10) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT11)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT11) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT12)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT12) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT13)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT13) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT14)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT14) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT15)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT15) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT16)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT16) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT17)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT17) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT18)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT18) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT19)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT19) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORT20)"!=""
|
2004-08-23 03:18:15 -05:00
|
|
|
@echo $(DEF$(TNR)EXPORT20) >>$@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(DEF$(TNR)EXPORTFILE)"!=""
|
2007-01-25 05:53:53 -06:00
|
|
|
$(TYPE) $(DEF$(TNR)EXPORTFILE) >> $@.tmpfile
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
2007-01-25 05:53:53 -06:00
|
|
|
@-$(RM) $@
|
|
|
|
@$(RENAME) $@.tmpfile $@
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
|
|
$(DEF$(TNR)TARGETN): \
|
|
|
|
$(DEF$(TNR)DEPN) \
|
|
|
|
$(DEF$(TNR)EXPORTFILE)
|
2006-10-05 04:39:15 -05:00
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making Module-Definitionfile : $@
|
|
|
|
@echo just a dummy for UNIX
|
|
|
|
@echo > $@
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.ENDIF # "$(DEF$(TNR)TARGETN)"!=""
|
|
|
|
|
|
|
|
|
|
|
|
# Anweisungen fuer das Linken
|
|
|
|
# unroll end
|
|
|
|
#######################################################
|
|
|
|
|