Import 2.3.18pre1
[davej-history.git] / arch / ppc / kernel / Makefile
bloba177a3642f826476ab425b8097a1916c9ebdc75e
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 := entry.o traps.o irq.o idle.o time.o process.o signal.o syscalls.o \
18 misc.o bitops.o ptrace.o align.o ppc_htab.o semaphore.o
19 ifndef CONFIG_8xx
20 O_OBJS += hashtable.o
21 endif
22 ifdef CONFIG_PCI
23 O_OBJS += pci.o
24 endif
25 ifdef CONFIG_KGDB
26 O_OBJS += ppc-stub.o
27 endif
28 ifdef CONFIG_TOTALMP
29 O_OBJS += totalmp.o
30 endif
32 ifeq ($(CONFIG_MBX),y)
33 O_OBJS += mbx_setup.o mbx_pci.o i8259.o ppc8xx_pic.o
34 else
35 ifeq ($(CONFIG_APUS),y)
36 O_OBJS += apus_setup.o prom.o open_pic.o
37 else
38 ifneq ($(CONFIG_MBX),y)
39 O_OBJS += prep_time.o pmac_time.o chrp_time.o \
40 pmac_setup.o pmac_support.o \
41 prep_pci.o pmac_pci.o chrp_pci.o \
42 residual.o prom.o open_pic.o feature.o \
43 prep_nvram.o i8259.o pmac_pic.o indirect_pci.o \
44 gemini_pci.o gemini_prom.o gemini_setup.o
45 OX_OBJS += chrp_setup.o prep_setup.o
46 endif
47 endif
48 endif
50 ifdef CONFIG_SMP
51 O_OBJS += smp.o
52 endif
54 all: head.o kernel.o
56 head.o: head.S ppc_defs.h
58 ppc_defs.h: mk_defs.c ppc_defs.head \
59 $(TOPDIR)/include/asm/mmu.h \
60 $(TOPDIR)/include/asm/processor.h \
61 $(TOPDIR)/include/asm/pgtable.h \
62 $(TOPDIR)/include/asm/ptrace.h
63 $(CC) $(CFLAGS) -S mk_defs.c
64 cp ppc_defs.head ppc_defs.h
65 grep '^#define' mk_defs.s >>ppc_defs.h
66 rm mk_defs.s
68 find_name : find_name.c
69 $(HOSTCC) $(HOSTCFLAGS) -o find_name find_name.c
71 checks: checks.c
72 $(HOSTCC) -I$(HPATH) $(HOSTCFLAGS) -D__KERNEL__ -fno-builtin -o checks checks.c
73 ./checks
75 include $(TOPDIR)/Rules.make