2003-04-28 10:45:13 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2008-04-10 11:41:44 -05:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# Copyright 2008 by Sun Microsystems, Inc.
|
2003-04-28 10:45:13 -05:00
|
|
|
#
|
2008-04-10 11:41:44 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2003-04-28 10:45:13 -05:00
|
|
|
#
|
2008-04-10 11:41:44 -05:00
|
|
|
# $RCSfile: tg_obj.mk,v $
|
2003-04-28 10:45:13 -05:00
|
|
|
#
|
2008-04-10 11:41:44 -05:00
|
|
|
# $Revision: 1.15 $
|
2003-04-28 10:45:13 -05:00
|
|
|
#
|
2008-04-10 11:41:44 -05:00
|
|
|
# This file is part of OpenOffice.org.
|
2003-04-28 10:45:13 -05:00
|
|
|
#
|
2008-04-10 11:41:44 -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.
|
2003-04-28 10:45:13 -05:00
|
|
|
#
|
2008-04-10 11:41:44 -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).
|
2003-04-28 10:45:13 -05:00
|
|
|
#
|
2008-04-10 11:41:44 -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.
|
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-03-26 08:51:15 -05:00
|
|
|
$(ECHONL) $(foreach,i,$(OBJFILES:f) $(ROBJ)$/$(i)) > $@
|
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)"!=""
|
|
|
|
|