]> git.pld-linux.org Git - packages/kernel.git/blob - kernel-ppclibs.Makefile
- remove from HEAD
[packages/kernel.git] / kernel-ppclibs.Makefile
1
2 DEST = $(if $(DESTDIR),$(DESTDIR),unspecified)
3
4 INSTALL = install -D
5 MKDIR = install -d
6
7 boot_LIBS += of1275/lib.a
8 boot_LIBS += common/lib.a
9 boot_LIBS += lib/lib.a
10
11 boot_LIBS += openfirmware/dummy.o
12
13 boot_LIBS += openfirmware/start.o
14 boot_LIBS += openfirmware/misc.o
15 boot_LIBS += openfirmware/common.o
16         
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
22
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
30
31 boot_LIBS += ld.script
32
33 kernel_LIBS += lib.a
34
35 UTILS += addnote
36 UTILS += hack-coff
37 UTILS += mkbugboot
38 UTILS += mknote
39 UTILS += mkprep
40
41
42 all: $(addprefix arch/ppc/boot/,$(boot_LIBS)) \
43         $(addprefix lib/,$(kernel_LIBS)) \
44         $(addprefix arch/ppc/boot/utils/,$(UTILS))
45
46
47 $(DESTDIR)/kernel/%: $(DEST) lib/%
48         $(INSTALL) lib/$* $@
49
50 $(DESTDIR)/utils/%: $(DEST) arch/ppc/boot/utils/%
51         $(INSTALL) arch/ppc/boot/utils/$* $@
52
53 $(DESTDIR)/%: $(DEST) arch/ppc/boot/%
54         $(INSTALL) arch/ppc/boot/$* $@
55
56 install: all \
57         $(addprefix $(DESTDIR)/,$(boot_LIBS)) \
58         $(addprefix $(DESTDIR)/kernel/,$(kernel_LIBS)) \
59         $(addprefix $(DESTDIR)/utils/,$(UTILS))
60         
61 $(DESTDIR):
62         $(MKDIR) $@
63
64 unspecified:
65         @echo "DESTDIR must be specified"
66         @exit 10
67
68 #vim:syntax=make
This page took 0.048549 seconds and 3 git commands to generate.