]> git.pld-linux.org Git - packages/kernel.git/blame - kernel-ppclibs.Makefile
- fix _alt_kernel logic, thnx glen
[packages/kernel.git] / kernel-ppclibs.Makefile
CommitLineData
4d77a3ac 1
2DEST = $(if $(DESTDIR),$(DESTDIR),unspecified)
3
4INSTALL = install -D
5MKDIR = install -d
6
7boot_LIBS += of1275/lib.a
8boot_LIBS += common/lib.a
9boot_LIBS += lib/lib.a
10
11boot_LIBS += openfirmware/dummy.o
12
13boot_LIBS += openfirmware/start.o
14boot_LIBS += openfirmware/misc.o
15boot_LIBS += openfirmware/common.o
16
17boot_LIBS += openfirmware/crt0.o
18boot_LIBS += openfirmware/coffcrt0.o
19boot_LIBS += openfirmware/coffmain.o
20boot_LIBS += openfirmware/newworldmain.o
21boot_LIBS += openfirmware/chrpmain.o
22
23boot_LIBS += simple/head.o
24boot_LIBS += simple/relocate.o
25boot_LIBS += simple/prepmap.o
26boot_LIBS += simple/misc.o
27boot_LIBS += simple/misc-prep.o
28boot_LIBS += simple/mpc10x_memory.o
0ad1a97e 29boot_LIBS += simple/dummy.o
4d77a3ac 30
5988a4c5 31boot_LIBS += ld.script
32
4d77a3ac 33kernel_LIBS += lib.a
34
35UTILS += addnote
36UTILS += hack-coff
37UTILS += mkbugboot
38UTILS += mknote
39UTILS += mkprep
40
41
42all: $(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
56install: all \
57 $(addprefix $(DESTDIR)/,$(boot_LIBS)) \
58 $(addprefix $(DESTDIR)/kernel/,$(kernel_LIBS)) \
59 $(addprefix $(DESTDIR)/utils/,$(UTILS))
60
61$(DESTDIR):
62 $(MKDIR) $@
63
64unspecified:
65 @echo "DESTDIR must be specified"
66 @exit 10
67
68#vim:syntax=make
This page took 0.103591 seconds and 4 git commands to generate.