2003-04-28 10:45:13 -05:00
|
|
|
|
#*************************************************************************
|
|
|
|
|
#
|
2005-09-08 03:47:06 -05:00
|
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2003-04-28 10:45:13 -05:00
|
|
|
|
#
|
2005-09-08 03:47:06 -05:00
|
|
|
|
# $RCSfile: tg_obj.mk,v $
|
2003-04-28 10:45:13 -05:00
|
|
|
|
#
|
2007-01-25 05:56:07 -06:00
|
|
|
|
# $Revision: 1.13 $
|
2003-04-28 10:45:13 -05:00
|
|
|
|
#
|
2007-01-25 05:56:07 -06:00
|
|
|
|
# last change: $Author: obo $ $Date: 2007-01-25 12:56:07 $
|
2003-04-28 10:45:13 -05:00
|
|
|
|
#
|
2005-09-08 03:47:06 -05:00
|
|
|
|
# The Contents of this file are made available subject to
|
|
|
|
|
# the terms of GNU Lesser General Public License Version 2.1.
|
2003-04-28 10:45:13 -05:00
|
|
|
|
#
|
|
|
|
|
#
|
2005-09-08 03:47:06 -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-04-28 10:45:13 -05:00
|
|
|
|
#
|
2005-09-08 03:47:06 -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-04-28 10:45:13 -05:00
|
|
|
|
#
|
2005-09-08 03:47:06 -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-04-28 10:45:13 -05:00
|
|
|
|
#
|
2005-09-08 03:47:06 -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-04-28 10:45:13 -05:00
|
|
|
|
#
|
|
|
|
|
#*************************************************************************
|
|
|
|
|
|
2000-09-20 08:43:26 -05:00
|
|
|
|
MKFILENAME:=TG_OBJ.MK
|
|
|
|
|
|
|
|
|
|
.IF "$(OBJTARGET)"!=""
|
|
|
|
|
$(OBJTARGET): $(OBJFILES) $(IDLOBJFILES)
|
|
|
|
|
@echo ------------------------------
|
|
|
|
|
@echo Making: $@
|
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
|
.IF "$(COM)"=="GCC"
|
2007-01-25 05:56:07 -06:00
|
|
|
|
$(ECHONL) $(foreach,i,$(OBJFILES:f) $(ROBJ)$/$(i)) >> $@
|
|
|
|
|
@$(TYPE) $@ | tr -d <20>\n\r<EFBFBD> > $@
|
|
|
|
|
@$(ECHONL) >> $@
|
2000-09-20 08:43:26 -05:00
|
|
|
|
.ELSE # "$(COM)"=="GCC"
|
2001-10-25 07:57:29 -05:00
|
|
|
|
.IF "$(LIBTARGET)"!="NO"
|
2001-10-23 09:07:29 -05:00
|
|
|
|
@-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
|
2001-10-25 07:57:29 -05:00
|
|
|
|
.ENDIF # "$(LIBTARGET)"!="NO"
|
2000-09-20 08:43:26 -05:00
|
|
|
|
$(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n"))
|
|
|
|
|
.ENDIF # "$(COM)"=="GCC"
|
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
|
.IF "$(GUI)"=="UNX"
|
2006-10-05 04:41:13 -05:00
|
|
|
|
echo $(foreach,i,$(OBJFILES:f) $(ROBJ)$/$(i:s/.obj/.o/)) | xargs -n1 > $@
|
2001-12-10 06:00:32 -06:00
|
|
|
|
.IF "$(OS)"=="MACOSX"
|
2007-01-25 05:56:07 -06:00
|
|
|
|
@-nm `cat $(OBJTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(@:d)$(@:b).dump
|
2001-12-10 06:00:32 -06:00
|
|
|
|
.ELSE
|
2007-01-25 05:56:07 -06:00
|
|
|
|
@nm `cat $(OBJTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(@:d)$(@:b).dump
|
2001-12-10 06:00:32 -06:00
|
|
|
|
.ENDIF
|
2000-09-20 08:43:26 -05:00
|
|
|
|
.ENDIF # "$(GUI)"=="UNX"
|
|
|
|
|
.ENDIF # "$(OBJTARGET)"!=""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.IF "$(SECOND_BUILD)"!=""
|
|
|
|
|
.IF "$($(SECOND_BUILD)OBJTARGET)"!=""
|
2001-02-02 05:02:06 -06:00
|
|
|
|
$($(SECOND_BUILD)OBJTARGET): $(REAL_$(SECOND_BUILD)_OBJFILES)
|
2000-09-20 08:43:26 -05:00
|
|
|
|
@echo ------------------------------
|
|
|
|
|
@echo Making: $@
|
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
|
.IF "$(COM)"=="GCC"
|
|
|
|
|
# $(LIBMGR) $(LIBFLAGS) $@ $(OBJFILES)
|
2007-01-25 05:56:07 -06:00
|
|
|
|
$(ECHONL) $(foreach,i,$(REAL_$(SECOND_BUILD)_OBJFILES:f) $(ROBJ)$/$(i)) > $@
|
2000-09-20 08:43:26 -05:00
|
|
|
|
.ELSE
|
2001-10-25 07:57:29 -05:00
|
|
|
|
.IF "$(LIBTARGET)"!="NO"
|
2001-10-23 09:07:29 -05:00
|
|
|
|
@-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/)
|
2001-10-25 07:57:29 -05:00
|
|
|
|
.ENDIF # "$(LIBTARGET)"!="NO"
|
2000-09-20 08:43:26 -05:00
|
|
|
|
$(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n"))
|
|
|
|
|
.ENDIF
|
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
|
.IF "$(GUI)"=="UNX"
|
2006-10-05 04:41:13 -05:00
|
|
|
|
echo $(foreach,i,$(REAL_$(SECOND_BUILD)_OBJFILES:f) $(ROBJ)$/$(i:s/.obj/.o/)) | xargs -n1 >> $@
|
2000-09-20 08:43:26 -05:00
|
|
|
|
.ENDIF # "$(GUI)"=="UNX"
|
|
|
|
|
.ENDIF # "$($(SECOND_BUILD)OBJTARGET)"!=""
|
|
|
|
|
.ENDIF # "$(SECOND_BUILD)"!=""
|
|
|
|
|
|