2 DEST = $(if $(DESTDIR),$(DESTDIR),unspecified)
7 boot_LIBS += of1275/lib.a
8 boot_LIBS += common/lib.a
11 boot_LIBS += openfirmware/dummy.o
13 boot_LIBS += openfirmware/start.o
14 boot_LIBS += openfirmware/misc.o
15 boot_LIBS += openfirmware/common.o
17 boot_LIBS += openfirmware/crt0.o
18 boot_LIBS += openfirmware/coffcrt0.o
19 boot_LIBS += openfirmware/coffmain.o
20 boot_LIBS += openfirmware/newworldmain.o
21 boot_LIBS += openfirmware/chrpmain.o
23 boot_LIBS += simple/head.o
24 boot_LIBS += simple/relocate.o
25 boot_LIBS += simple/prepmap.o
26 boot_LIBS += simple/misc.o
27 boot_LIBS += simple/misc-prep.o
28 boot_LIBS += simple/mpc10x_memory.o
29 boot_LIBS += simple/dummy.o
31 boot_LIBS += ld.script
42 all: $(addprefix arch/ppc/boot/,$(boot_LIBS)) \
43 $(addprefix lib/,$(kernel_LIBS)) \
44 $(addprefix arch/ppc/boot/utils/,$(UTILS))
47 $(DESTDIR)/kernel/%: $(DEST) lib/%
50 $(DESTDIR)/utils/%: $(DEST) arch/ppc/boot/utils/%
51 $(INSTALL) arch/ppc/boot/utils/$* $@
53 $(DESTDIR)/%: $(DEST) arch/ppc/boot/%
54 $(INSTALL) arch/ppc/boot/$* $@
57 $(addprefix $(DESTDIR)/,$(boot_LIBS)) \
58 $(addprefix $(DESTDIR)/kernel/,$(kernel_LIBS)) \
59 $(addprefix $(DESTDIR)/utils/,$(UTILS))
65 @echo "DESTDIR must be specified"