1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24PRJ=.. 25 26 27PRJNAME=postprocess 28TARGET=rebase 29 30.INCLUDE : settings.mk 31 32.INCLUDE : target.mk 33 34.IF "$(COMEX)"=="14" 35# Microsoft's rebase.exe is in Platform SDK v7.0 and NOT in the Windows 10 SDK, 36# and Cygwin has an unrelated tool of the same name earlier on PATH. Name the 37# one we mean rather than letting PATH decide. Empty on VC9, where the old 38# SDK's Bin directory is on PATH anyway and "rebase" already resolves to it. 39# := and not =, so the value is expanded HERE. .EXPORT puts the macro's text 40# into the environment, and a lazily-expanded one arrives at the shell still 41# spelled $(FRAME_HOME), which sh then treats as a command substitution. 42REBASE_EXE:=$(FRAME_HOME)/Bin/rebase.exe 43.EXPORT : REBASE_EXE 44.ENDIF 45 46STARTADDRESS=0x68000000 47BASEADDRESSES=$(MISC)$/coffbase.txt 48EXCLUDELIST=no_rebase.txt 49LOGFILE=$(MISC)$/rebase_log.txt 50IMAGENAMES=$(SOLARBINDIR)$/*.dll $(SOLARBINDIR)$/so$/*.dll 51 52ALLTAR : REBASE 53 54REBASE .PHONY : $(BASEADDRESSES) 55.IF "$(GUI)"=="WNT" 56.IF "$(product)"=="full" 57 $(PERL) rebase.pl -C $(BASEADDRESSES) -b $(STARTADDRESS) -d -e 10000 -l $(LOGFILE) -m $(MISC) -v -R $(SOLARBINDIR) -N $(EXCLUDELIST) $(IMAGENAMES) 58.ELSE # "$(product)"=="full" 59 @echo Doing nothing on non product builds ... 60.ENDIF # "$(product)"=="full" 61.ELSE # "$(GUI)"=="WNT" 62 @echo Nothing to do, 'rebase' is windows only. 63.ENDIF 64 65$(BASEADDRESSES) : coffbase.txt 66 $(COPY) coffbase.txt $@ 67