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...
11 $(CC
) $(CFLAGS
) -D__ASSEMBLY__
-c
$< -o
$*.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
32 ifeq ($(CONFIG_MBX
),y
)
33 O_OBJS
+= mbx_setup.o mbx_pci.o i8259.o ppc8xx_pic.o
35 ifeq ($(CONFIG_APUS
),y
)
36 O_OBJS
+= apus_setup.o prom.o open_pic.o
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
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
68 find_name
: find_name.c
69 $(HOSTCC
) $(HOSTCFLAGS
) -o find_name find_name.c
72 $(HOSTCC
) -I
$(HPATH
) $(HOSTCFLAGS
) -D__KERNEL__
-fno-builtin
-o checks checks.c
75 include $(TOPDIR
)/Rules.make