Open Firmware

Open Firmware Svn Source Tree

Root/cpu/arm/build/Makefile

  • Property svn:executable set to *
Source at commit 3725 created 3 years 6 months ago.
By tooch, core - Tiny lint fixes, detected on Apple LLVM-based SDK. And one not so tiny, as OS X dropped support for sbrk().
1BASEDIR= $(shell cd ../../../; pwd)
2
3OS := $(shell uname)
4HOSTCPU= $(shell ${BASEDIR}/forth/lib/hostcpu.sh)
5HOSTDIR= ${BASEDIR}/cpu/${HOSTCPU}/${OS}
6BUILDSH= ${BASEDIR}/forth/lib/build.sh
7
8all: basefw.dic
9
10.PHONY: FORCE all clean
11
12.PRECIOUS: builder.dic
13
14${HOSTDIR}/forth: FORCE
15@make -C ${HOSTDIR} forth
16
17${HOSTDIR}/armforth: FORCE
18@make -C ${HOSTDIR} armforth
19
20build: ${HOSTDIR}/forth ${HOSTDIR}/armforth
21@ln -sf ${BUILDSH} build
22
23%.dic: FORCE build
24./build $@
25
26builder.dic: FORCE build
27-[ ! -f builder.sav ] && cp builder.dic builder.sav
28./build builder.dic
29
30inflate.bin:
31make -C ../${OS} ../build/inflate.bin
32
33# Don't use *.dic so as not to remove builder.dic
34clean:
35rm -f tools.dic kernel.dic basefw.dic
36rm -f *.tag *.log headers *~ inflate.bin build
37@make -C ../${OS} clean
38@make -C ${HOSTDIR} clean

Archive Download this file

Revision: 3725