1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27 28MKFILENAME:=TG_OBJ.MK 29 30.IF "$(OBJTARGET)"!="" 31$(OBJTARGET): $(OBJFILES) $(IDLOBJFILES) 32 @echo "Making: " $(@:f) 33.IF "$(GUI)"=="OS2" 34.IF "$(LIBTARGET)"!="NO" 35 @-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/) 36.ENDIF # "$(LIBTARGET)"!="NO" 37 $(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) $@ $(&) 38.ENDIF # "$(GUI)"=="OS2" 39 40.IF "$(GUI)"=="WNT" 41.IF "$(COM)"=="GCC" 42 $(ECHONL) $(foreach,i,$(OBJFILES:f) $(ROBJ)/$(i)) > $@ 43.ELSE # "$(COM)"=="GCC" 44.IF "$(LIBTARGET)"!="NO" 45 @-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/) 46.ENDIF # "$(LIBTARGET)"!="NO" 47 $(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n")) 48.ENDIF # "$(COM)"=="GCC" 49.ENDIF # "$(GUI)"=="WNT" 50.IF "$(GUI)"=="UNX" 51 @echo $(foreach,i,$(OBJFILES:f) $(ROBJ)/$(i:s/.obj/.o/)) | xargs -n1 > $@ 52.IF "$(OS)"=="MACOSX" 53 @-nm `cat $(OBJTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@:d)$(@:b).dump 54.ELSE 55 @nm `cat $(OBJTARGET) | sed s\#'^'$(ROUT)\#$(PRJ)/$(ROUT)\#g` > $(@:d)$(@:b).dump 56.ENDIF 57.ENDIF # "$(GUI)"=="UNX" 58.ENDIF # "$(OBJTARGET)"!="" 59 60 61.IF "$(SECOND_BUILD)"!="" 62.IF "$($(SECOND_BUILD)OBJTARGET)"!="" 63$($(SECOND_BUILD)OBJTARGET): $(REAL_$(SECOND_BUILD)_OBJFILES) 64 @echo "Making: " $(@:f) 65.IF "$(GUI)"=="OS2" 66.IF "$(LIBTARGET)"!="NO" 67 @-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/) 68.ENDIF # "$(LIBTARGET)"!="NO" 69 $(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) $@ $(&) 70.ENDIF # "$(GUI)"=="OS2" 71 72.IF "$(GUI)"=="WNT" 73.IF "$(COM)"=="GCC" 74# $(LIBMGR) $(LIBFLAGS) $@ $(OBJFILES) 75 $(ECHONL) $(foreach,i,$(REAL_$(SECOND_BUILD)_OBJFILES:f) $(ROBJ)/$(i)) > $@ 76.ELSE 77.IF "$(LIBTARGET)"!="NO" 78 @-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/) 79.ENDIF # "$(LIBTARGET)"!="NO" 80 $(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) /OUT:$@ @$(mktmp $(&:+"\n")) 81.ENDIF 82.ENDIF # "$(GUI)"=="WNT" 83.IF "$(GUI)"=="UNX" 84 @echo $(foreach,i,$(REAL_$(SECOND_BUILD)_OBJFILES:f) $(ROBJ)/$(i:s/.obj/.o/)) | xargs -n1 >> $@ 85.ENDIF # "$(GUI)"=="UNX" 86.ENDIF # "$($(SECOND_BUILD)OBJTARGET)"!="" 87.ENDIF # "$(SECOND_BUILD)"!="" 88 89.IF "$(GUI)"=="OS2" 90.IF "$(LIBTARGET)"!="NO" 91 @-$(TYPE) $(mktmp $(&:+"\n")) > $(@:s/.lib/.lin/) 92.ENDIF # "$(LIBTARGET)"!="NO" 93 $(COMMAND_ECHO)$(LIBMGR) $(LIBFLAGS) $@ $(&) 94.ENDIF # "$(GUI)"=="OS2" 95