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 28####################################################### 29# unroll begin 30 31.IF "$(RESLIB$(TNR)TARGETN)"!="" 32 33$(RSC_MULTI$(TNR)) : \ 34 $(RESLIB$(TNR)SRSFILES) \ 35 $(RESLIB$(TNR)TARGETN) \ 36 $(RESLIB$(TNR)BMPS) 37 @echo Compiling: $(@:f) 38.IF "$(common_build_reslib)"!="" 39 $(COMMAND_ECHO)$(RSC) -presponse $(VERBOSITY) @$(mktmp \ 40 -r -p \ 41 $(foreach,i,$(alllangiso) -lg$i \ 42 $(null,$(rescharset_{$i}) $(default$(LANG_GUI)) $(rescharset_{$i})) \ 43 -fs={$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(BIN))/$(RESLIB$(TNR)NAME)$i.res} \ 44 $(foreach,j,$(subst,$(PRJ),$(SOLARSRC)/$(RSCDEFIMG)/$(PRJNAME) $(RESLIB$(TNR)IMAGES)) -lip={$j}/$i \ 45 -lip={$j} ) \ 46 -lip=$(SOLARSRC)/$(RSCDEFIMG)/res/$i -lip=$(SOLARSRC)/$(RSCDEFIMG)/res \ 47 -lip=$(SOLARSRC)/$(RSCDEFIMG)/$i -lip=$(SOLARSRC)/$(RSCDEFIMG) ) \ 48 -subMODULE=$(SOLARSRC)/$(RSCDEFIMG) \ 49 -subGLOBALRES=$(SOLARSRC)/$(RSCDEFIMG)/res \ 50 -oil={$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(BIN))} \ 51 -ft=$@ \ 52 $(RSC$(TNR)HEADER) $(RESLIB$(TNR)SRSFILES) \ 53 ) > $(NULLDEV) 54.ELSE # "$(common_build_reslib)"!="" 55 $(COMMAND_ECHO)$(RSC) -presponse $(VERBOSITY) @$(mktmp \ 56 -r -p \ 57 $(foreach,i,$(alllangiso) -lg$i \ 58 $(null,$(rescharset_{$i}) $(default$(LANG_GUI)) $(rescharset_{$i})) \ 59 -fs={$(BIN)/$(RESLIB$(TNR)NAME)$i.res} \ 60 $(foreach,j,$(subst,$(PRJ),$(SOLARSRC)/$(RSCDEFIMG)/$(PRJNAME) $(RESLIB$(TNR)IMAGES)) -lip={$j}/$i \ 61 -lip={$j} ) \ 62 -lip=$(SOLARSRC)/$(RSCDEFIMG)/res/$i -lip=$(SOLARSRC)/$(RSCDEFIMG)/res \ 63 -lip=$(SOLARSRC)/$(RSCDEFIMG)/$i -lip=$(SOLARSRC)/$(RSCDEFIMG) ) \ 64 -subMODULE=$(SOLARSRC)/$(RSCDEFIMG) \ 65 -subGLOBALRES=$(SOLARSRC)/$(RSCDEFIMG)/res \ 66 -oil=$(BIN) \ 67 -ft=$@ \ 68 $(RSC$(TNR)HEADER) $(RESLIB$(TNR)SRSFILES) \ 69 ) > $(NULLDEV) 70.ENDIF # "$(common_build_reslib)"!="" 71 72$(RESLIB$(TNR)TARGETN): \ 73 $(RESLIB$(TNR)SRSFILES) \ 74 $(RESLIB$(TNR)BMPS) 75 @echo "Making: " $(@:f) 76.IF "$(GUI)"=="UNX" 77.IF "$(common_build_reslib)"!="" 78 @@-$(RM) $(RSC_MULTI$(TNR)) 79.ELSE # "$(common_build_reslib)"!="" 80 @@-$(RM) $(RSC_MULTI$(TNR)) 81.ENDIF # "$(common_build_reslib)"!="" 82.ELSE # "$(GUI)"=="UNX" 83.IF "$(common_build_reslib)"!="" 84 @@-$(RM) $(RSC_MULTI$(TNR)) 85.ELSE # "$(common_build_reslib)"!="" 86 @@-$(RM) $(RSC_MULTI$(TNR)) 87.ENDIF # "$(common_build_reslib)"!="" 88.ENDIF # "$(GUI)"=="UNX" 89.ENDIF # "$(RESLIB$(TNR)TARGETN)"!="" 90 91 92# unroll end 93####################################################### 94 95