Import 2.3.9pre7
[davej-history.git] / arch / ppc / kernel / Makefile
blob635dd91b57e22e9ced5134ebd54e138a7e2d6567
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 .S.o:
11 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $*.o
13 O_TARGET := kernel.o
14 OX_OBJS := ppc_ksyms.o setup.o
17 O_OBJS := traps.o irq.o idle.o time.o process.o signal.o syscalls.o misc.o \
18 bitops.o ptrace.o align.o ppc_htab.o
19 ifdef CONFIG_PCI
20 O_OBJS += pci.o
21 endif
22 ifdef CONFIG_KGDB
23 O_OBJS += ppc-stub.o
24 endif
25 ifdef CONFIG_TOTALMP
26 O_OBJS += totalmp.o
27 endif
29 ifeq ($(CONFIG_MBX),y)
30 O_OBJS += mbx_setup.o mbx_pci.o softemu8xx.o i8259.o ppc8xx_pic.o
31 else
32 ifeq ($(CONFIG_APUS),y)
33 O_OBJS += apus_setup.o prom.o openpic.o
34 else
35 ifneq ($(CONFIG_MBX),y)
36 O_OBJS += prep_time.o pmac_time.o chrp_time.o \
37 pmac_setup.o pmac_support.o \
38 prep_pci.o pmac_pci.o chrp_pci.o \
39 residual.o prom.o openpic.o feature.o \
40 prep_nvram.o open_pic.o i8259.o pmac_pic.o indirect_pci.o
41 OX_OBJS += chrp_setup.o prep_setup.o
42 endif
43 endif
44 endif
46 ifdef CONFIG_SMP
47 O_OBJS += smp.o
48 endif
50 all: head.o kernel.o
52 head.o: head.S $(TOPDIR)/include/linux/tasks.h ppc_defs.h
54 ppc_defs.h: mk_defs.c ppc_defs.head \
55 $(TOPDIR)/include/asm/mmu.h \
56 $(TOPDIR)/include/asm/processor.h \
57 $(TOPDIR)/include/asm/pgtable.h \
58 $(TOPDIR)/include/asm/ptrace.h
59 $(CC) $(CFLAGS) -S mk_defs.c
60 cp ppc_defs.head ppc_defs.h
61 grep '^#define' mk_defs.s >>ppc_defs.h
62 rm mk_defs.s
64 find_name : find_name.c
65 $(HOSTCC) $(HOSTCFLAGS) -o find_name find_name.c
67 checks: checks.c
68 $(HOSTCC) $(HOSTCFLAGS) -D__KERNEL__ -o checks checks.c
69 ./checks
71 include $(TOPDIR)/Rules.make