# # Makefile for the linux kernel. # # Note! Dependencies are done automagically by 'make dep', which also # removes any old dependencies. DON'T put your own dependencies here # unless it's something special (ie not a .c file). # # Note 2! The CFLAGS definitions are now in the main makefile... .S.o: $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $*.o O_TARGET := kernel.o OX_OBJS := ppc_ksyms.o setup.o O_OBJS := traps.o irq.o idle.o time.o process.o signal.o syscalls.o misc.o \ bitops.o ptrace.o align.o ppc_htab.o ifdef CONFIG_PCI O_OBJS += pci.o endif ifdef CONFIG_KGDB O_OBJS += ppc-stub.o endif ifdef CONFIG_TOTALMP O_OBJS += totalmp.o endif ifeq ($(CONFIG_MBX),y) O_OBJS += mbx_setup.o mbx_pci.o softemu8xx.o i8259.o ppc8xx_pic.o else ifeq ($(CONFIG_APUS),y) O_OBJS += apus_setup.o prom.o openpic.o else ifneq ($(CONFIG_MBX),y) O_OBJS += prep_time.o pmac_time.o chrp_time.o \ pmac_setup.o pmac_support.o \ prep_pci.o pmac_pci.o chrp_pci.o \ residual.o prom.o openpic.o feature.o \ prep_nvram.o open_pic.o i8259.o pmac_pic.o indirect_pci.o OX_OBJS += chrp_setup.o prep_setup.o endif endif endif ifdef CONFIG_SMP O_OBJS += smp.o endif all: head.o kernel.o head.o: head.S $(TOPDIR)/include/linux/tasks.h ppc_defs.h ppc_defs.h: mk_defs.c ppc_defs.head \ $(TOPDIR)/include/asm/mmu.h \ $(TOPDIR)/include/asm/processor.h \ $(TOPDIR)/include/asm/pgtable.h \ $(TOPDIR)/include/asm/ptrace.h $(CC) ${CFLAGS} -S mk_defs.c cp ppc_defs.head ppc_defs.h grep '^#define' mk_defs.s >>ppc_defs.h rm mk_defs.s find_name : find_name.c $(HOSTCC) -o find_name find_name.c checks: checks.c $(HOSTCC) -fno-builtin -I$(TOPDIR)/include -D__KERNEL__ -o checks checks.c ./checks include $(TOPDIR)/Rules.make