office-gobmx/solenv/inc/tg_def.mk

235 lines
7.7 KiB
Makefile
Raw Normal View History

2000-09-20 08:43:26 -05:00
#*************************************************************************
2000-10-30 06:14:55 -06:00
#
# OpenOffice.org - a multi-platform office productivity suite
2000-10-30 06:14:55 -06:00
#
# $RCSfile: tg_def.mk,v $
2000-10-30 06:14:55 -06:00
#
# $Revision: 1.36 $
2000-10-30 06:14:55 -06:00
#
# last change: $Author: rt $ $Date: 2007-02-01 09:59:38 $
2000-10-30 06:14:55 -06: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
#
#
# 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
#
# 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
#
# 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
#
# 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
.IF "$(SHL$(TNR)VERSIONMAP)"!=""
.IF "$(DEF$(TNR)EXPORTFILE)"==""
2001-05-21 06:29:38 -05:00
.IF "$(GUI)"=="WNT"
DEF$(TNR)EXPORTFILE=$(MISC)$/$(SHL$(TNR)VERSIONMAP:b)_$(SHL$(TNR)TARGET).dxp
$(DEF$(TNR)EXPORTFILE) : $(SHL$(TNR)VERSIONMAP)
$(TYPE) $< | $(AWK) -f $(SOLARENV)$/bin$/getcsym.awk > $@
2001-05-21 06:29:38 -05:00
.ENDIF # "$(GUI)"=="WNT"
.ENDIF # "$(DEF$(TNR)EXPORTFILE)"==""
.ENDIF # "$(SHL$(TNR)VERSIONMAP)"!=""
.IF "$(GUI)"=="WNT"
DEF$(TNR)FILTER=$(SOLARENV)$/inc$/dummy.flt
RMHACK$(TNR):=$(RM)
.IF "$(MWS_BUILD)"!=""
.IF "$(UPDATER)"!=""
.IF "$(DEFLIB$(TNR)NAME)"!=""
DEF$(TNR)UNIQE:=$(mktmp $(GUI))
# %_disk is a 4nt special; don't exppect it to work in any other shell
BUILD_DRIVE$(TNR):=$(shell echo %_disk)
#BUILD_DRIVE$(TNR):=O
.IF "$(BUILD_DRIVE$(TNR))"=="O"
# in case of RE build, protect against failed lock
EXPORT$(TNR)_PROTECT=$(TMP)$/$(DEF$(TNR)UNIQE:b).bat &&
RMHACK$(TNR):=$(RM:s/+//)
.ELSE # "$(BUILD_DRIVE$(TNR))"=="O"
.ENDIF # "$(BUILD_DRIVE$(TNR))"=="O"
.ENDIF # "$(DEFLIB$(TNR)NAME)"!=""
.ENDIF # "$(UPDATER)"!=""
.ENDIF # "$(MWS_BUILD)"!=""
.IF "$(link_always)"==""
2000-09-20 08:43:26 -05:00
$(DEF$(TNR)TARGETN) : \
$(DEF$(TNR)DEPN) \
$(DEF$(TNR)EXPORTFILE)
.ELSE # "$(link_always)"==""
$(DEF$(TNR)TARGETN) .PHONY :
.ENDIF # "$(link_always)"==""
.IF "$(MWS_BUILD)"!=""
.IF "$(UPDATER)"!=""
.IF "$(DEFLIB$(TNR)NAME)"!=""
.IF "$(BUILD_DRIVE$(TNR))"=="O"
#
# don't forget to have the right DEFSTAG set!
#
$(PERL) $(COMMON_ENV_TOOLS)$/lockcidef.pl -u$(DEF$(TNR)UNIQE:b) update $(DEFSTAG)
.ENDIF # "$(BUILD_DRIVE$(TNR))"=="O"
.ENDIF # "$(DEFLIB$(TNR)NAME)"!=""
.ENDIF # "$(UPDATER)"!=""
.ENDIF # "$(MWS_BUILD)"!=""
# -attrib -r defs$/$(OUTPATH)
@-$(RM) $@.tmpfile
2000-09-20 08:43:26 -05:00
@echo ------------------------------
@echo Making Module-Definitionfile : $@
@echo LIBRARY $(SHL$(TNR)TARGETN:f) >$@.tmpfile
@echo HEAPSIZE 0 >>$@.tmpfile
@echo EXPORTS >>$@.tmpfile
2000-09-20 08:43:26 -05:00
# getversioninfo fuer alle!!
@echo GetVersionInfo >>$@.tmpfile
.IF "$(NO_SHL$(TNR)DESCRIPTION)"==""
@echo component_getDescriptionFunc >>$@.tmpfile
.ENDIF # "$(NO_SHL$(TNR)DESCRIPTION)"==""
2000-09-20 08:43:26 -05:00
.IF "$(DEFLIB$(TNR)NAME)"!=""
.IF "$(SHL$(TNR)USE_EXPORTS)"!="ordinal"
@-$(EXPORT$(TNR)_PROTECT) $(RMHACK$(TNR)) $(MISC)$/$(SHL$(TNR)TARGET).exp
@$(EXPORT$(TNR)_PROTECT) $(LIBMGR) -EXTRACT:/ /OUT:$(MISC)$/$(SHL$(TNR)TARGET).exp $(SLB)$/$(DEFLIB$(TNR)NAME).lib
.IF "$(DEF$(TNR)CEXP)"!=""
@$(EXPORT$(TNR)_PROTECT) $(LDUMP2) -A $(DEF$(TNR)CEXP) -E 20 -F $(MISC)$/$(SHL$(TNR)TARGET).flt $(MISC)$/$(SHL$(TNR)TARGET).exp >>$@.tmpfile
.ELSE
@$(EXPORT$(TNR)_PROTECT) $(LDUMP2) -E 20 -F $(MISC)$/$(SHL$(TNR)TARGET).flt $(MISC)$/$(SHL$(TNR)TARGET).exp >>$@.tmpfile
.ENDIF
$(EXPORT$(TNR)_PROTECT) $(RMHACK$(TNR)) $(MISC)$/$(SHL$(TNR)TARGET).exp
.ELSE # "$(SHL$(TNR)USE_EXPORTS)"!="ordinal"
@$(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)"!=""
@$(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
@$(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
.ENDIF # "$(SHL$(TNR)USE_EXPORTS)"!="ordinal"
# now *\defs\$(OUTPATH) exists, commit it
.IF "$(MWS_BUILD)"!=""
.IF "$(UPDATER)"!=""
.IF "$(BUILD_DRIVE$(TNR))"=="O"
#
# don't forget to have the right DEFSTAG set!
#
$(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
.ENDIF # "$(BUILD_DRIVE$(TNR))"=="O"
.ENDIF # "$(UPDATER)"!=""
.ENDIF # "$(MWS_BUILD)"!=""
2000-09-20 08:43:26 -05:00
.ENDIF # "$(DEFLIB$(TNR)NAME)"!=""
.IF "$(DEF$(TNR)EXPORT1)"!=""
@echo $(DEF$(TNR)EXPORT1) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT2)"!=""
@echo $(DEF$(TNR)EXPORT2) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT3)"!=""
@echo $(DEF$(TNR)EXPORT3) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT4)"!=""
@echo $(DEF$(TNR)EXPORT4) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT5)"!=""
@echo $(DEF$(TNR)EXPORT5) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT6)"!=""
@echo $(DEF$(TNR)EXPORT6) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT7)"!=""
@echo $(DEF$(TNR)EXPORT7) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT8)"!=""
@echo $(DEF$(TNR)EXPORT8) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT9)"!=""
@echo $(DEF$(TNR)EXPORT9) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT10)"!=""
@echo $(DEF$(TNR)EXPORT10) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT11)"!=""
@echo $(DEF$(TNR)EXPORT11) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT12)"!=""
@echo $(DEF$(TNR)EXPORT12) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT13)"!=""
@echo $(DEF$(TNR)EXPORT13) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT14)"!=""
@echo $(DEF$(TNR)EXPORT14) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT15)"!=""
@echo $(DEF$(TNR)EXPORT15) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT16)"!=""
@echo $(DEF$(TNR)EXPORT16) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT17)"!=""
@echo $(DEF$(TNR)EXPORT17) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT18)"!=""
@echo $(DEF$(TNR)EXPORT18) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT19)"!=""
@echo $(DEF$(TNR)EXPORT19) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORT20)"!=""
@echo $(DEF$(TNR)EXPORT20) >>$@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(DEF$(TNR)EXPORTFILE)"!=""
$(TYPE) $(DEF$(TNR)EXPORTFILE) >> $@.tmpfile
2000-09-20 08:43:26 -05:00
.ENDIF
@-$(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)
@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
#######################################################