Ok. I didn't make 2.4.0 in 2000. Tough. I tried, but we had some
[davej-history.git] / arch / ppc / kernel / Makefile
blob4a9852612549cd938a1bfc6cca9d24e73f9c6bc4
2 # Makefile for the linux kernel.
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (ie not a .c file).
8 # Note 2! The CFLAGS definitions are now in the main makefile...
10 ifdef CONFIG_PPC64BRIDGE
11 .S.o:
12 $(CC) $(CFLAGS) -D__ASSEMBLY__ -mppc64bridge -c $< -o $*.o
13 else
14 .S.o:
15 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $*.o
16 endif
18 ifeq ($(CONFIG_4xx),y)
19 KHEAD := head_4xx.o
20 else
21 ifeq ($(CONFIG_8xx),y)
22 KHEAD := head_8xx.o
23 else
24 KHEAD := head.o
25 endif
26 endif
28 all: $(KHEAD) kernel.o
30 O_TARGET := kernel.o
32 export-objs := ppc_ksyms.o prep_setup.o
34 obj-$(CONFIG_PPC) := entry.o traps.o irq.o idle.o time.o misc.o \
35 process.o signal.o bitops.o ptrace.o \
36 ppc_htab.o semaphore.o syscalls.o \
37 align.o setup.o
38 obj-$(CONFIG_POWER4) += xics.o
39 obj-$(CONFIG_PCI) += pci.o pci-dma.o
40 obj-$(CONFIG_KGDB) += ppc-stub.o
41 obj-$(CONFIG_PMAC_PBOOK) += sleep.o
42 obj-$(CONFIG_SMP) += smp.o
43 obj-$(CONFIG_PPC_RTAS) += error_log.o proc_rtas.o
44 obj-$(CONFIG_NVRAM) += pmac_nvram.o
45 obj-$(CONFIG_PREP_RESIDUAL) += residual.o
46 obj-$(CONFIG_4xx) += ppc4xx_pic.o
47 obj-$(CONFIG_OAK) += oak_setup.o
48 obj-$(CONFIG_WALNUT) += walnut_setup.o
49 ifeq ($(CONFIG_WALNUT),y)
50 obj-$(CONFIG_PCI) += galaxy_pci.o
51 endif
52 obj-$(CONFIG_8xx) += m8xx_setup.o ppc8xx_pic.o
53 ifeq ($(CONFIG_8xx),y)
54 obj-$(CONFIG_PCI) += qspan_pci.c
55 else
56 obj-$(CONFIG_PPC) += hashtable.o
57 endif
58 obj-$(CONFIG_MATH_EMULATION) += softemu8xx.o
59 obj-$(CONFIG_MBX) += i8259.o
60 obj-$(CONFIG_APUS) += apus_setup.o
61 obj-$(CONFIG_ALL_PPC) += pmac_pic.o pmac_setup.o pmac_time.o prom.o \
62 feature.o pmac_pci.o chrp_setup.o \
63 chrp_time.o chrp_pci.o open_pic.o \
64 indirect_pci.o i8259.o prep_pci.o \
65 prep_time.o prep_nvram.o ppc_ksyms.o \
66 prep_setup.o
67 obj-$(CONFIG_PMAC_BACKLIGHT) += pmac_backlight.o
68 obj-$(CONFIG_GEMINI) += gemini_prom.o gemini_pci.o gemini_setup.o \
69 open_pic.o
70 obj-$(CONFIG_8260) += m8260_setup.o ppc8260_pic.o
73 include $(TOPDIR)/Rules.make
75 head.o: head.S ppc_defs.h
76 head_4xx.o: head_4xx.S ppc_defs.h
77 head_8xx.o: head_8xx.S ppc_defs.h
79 ppc_defs.h: mk_defs.c ppc_defs.head \
80 $(TOPDIR)/include/asm/mmu.h \
81 $(TOPDIR)/include/asm/processor.h \
82 $(TOPDIR)/include/asm/pgtable.h \
83 $(TOPDIR)/include/asm/ptrace.h
84 $(CC) $(CFLAGS) -S mk_defs.c
85 cp ppc_defs.head ppc_defs.h
86 # for bk, this way we can write to the file even if it's not checked out
87 chmod u+w ppc_defs.h
88 grep '^#define' mk_defs.s >> ppc_defs.h
89 rm mk_defs.s
91 find_name : find_name.c
92 $(HOSTCC) $(HOSTCFLAGS) -o find_name find_name.c
94 checks: checks.c
95 $(HOSTCC) -I$(HPATH) $(HOSTCFLAGS) -D__KERNEL__ -fno-builtin -o checks checks.c
96 ./checks