xref: /aoo42x/main/postprocess/rebase/makefile.mk (revision 7871dc3e)
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
34STARTADDRESS=0x68000000
35BASEADDRESSES=$(MISC)$/coffbase.txt
36EXCLUDELIST=no_rebase.txt
37LOGFILE=$(MISC)$/rebase_log.txt
38IMAGENAMES=$(SOLARBINDIR)$/*.dll $(SOLARBINDIR)$/so$/*.dll
39
40ALLTAR : REBASE
41
42REBASE .PHONY : $(BASEADDRESSES)
43.IF "$(GUI)"=="WNT"
44.IF "$(product)"=="full"
45	$(PERL) rebase.pl -C $(BASEADDRESSES) -b $(STARTADDRESS) -d -e 10000 -l $(LOGFILE) -m $(MISC) -v -R $(SOLARBINDIR) -N $(EXCLUDELIST) $(IMAGENAMES)
46.ELSE	# "$(product)"=="full"
47	@echo Doing nothing on non product builds ...
48.ENDIF	# "$(product)"=="full"
49.ELSE	# "$(GUI)"=="WNT"
50	@echo Nothing to do, 'rebase' is windows only.
51.ENDIF
52
53$(BASEADDRESSES) : coffbase.txt
54	$(COPY) coffbase.txt $@
55
56