# $Id: Makefile,v 1.10 2003/04/02 01:53:37 m4 Exp $
# Makefile for the Linux/MIPS 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).
#

USE_STANDARD_AS_RULE := true

all:	kernel.o head.o init_task.o

O_TARGET := kernel.o

obj-y				+= branch.o process.o signal.o entry.o \
				   traps.o ptrace.o vm86.o ioport.o reset.o \
				   semaphore.o setup.o syscall.o sysmips.o \
				   ipc.o scall_o32.o unaligned.o

obj-$(CONFIG_MODULES)		+= mips_ksyms.o

export-objs			+= mips_ksyms.o

obj-$(CONFIG_CPU_MIPS32) += r2300_fpu.o r2300_switch.o

obj-$(CONFIG_MIPS_FPU_EMULATOR) += softfp.o

obj-$(CONFIG_REMOTE_DEBUG)	+= gdb-low.o gdb-stub.o
obj-$(CONFIG_NEW_PCI)		+= pci.o
ifndef	CONFIG_MAPPED_PCI_IO
  obj-$(CONFIG_PCI)		+= pci-dma.o
  export-objs			+= pci-dma.o
endif
obj-$(CONFIG_PCI_AUTO)		+= pci_auto.o
obj-$(CONFIG_PROC_FS)		+= proc.o

ifeq (${USER}, m4)
  obj-y += m4_testing.o
endif

include $(TOPDIR)/Rules.make
