2 # Makefile for the Linux/MIPS 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).
10 $(CC
) $(CFLAGS
) -c
$< -o
$*.o
12 all: kernel.o head.o init_task.o
13 EXTRA_ASFLAGS
= -mips3
-mcpu
=r4000
15 O_OBJS
:= branch.o process.o signal.o entry.o traps.o ptrace.o vm86.o \
16 ioport.o pci.o reset.o setup.o syscall.o sysmips.o ipc.o \
17 r4k_switch.o r4k_misc.o r4k_fpu.o r2300_switch.o r2300_misc.o \
18 r2300_fpu.o r6000_fpu.o scall_o32.o softfp.o unaligned.o
19 OX_OBJS
:= mips_ksyms.o
21 ifdef CONFIG_MIPS_FPE_MODULE
26 # SGIs have very different interrupt/timer hardware.
29 ifndef CONFIG_DECSTATION
30 ifndef CONFIG_BAGET_MIPS
31 O_OBJS
+= irq.o time.o
37 # Do we want to be able to execute IRIX elf binaries?
39 ifdef CONFIG_BINFMT_IRIX
40 O_OBJS
+= irixelf.o irixioctl.o irixsig.o sysirix.o irixinv.o
46 ifdef CONFIG_REMOTE_DEBUG
47 O_OBJS
+= gdb-low.o gdb-stub.o
51 # Depending from some other kernel option
58 # Since we add the same object files to O_OBJS for different configurations.
59 # O_OBJS might contain duplicate files. We correct this by filtering out
60 # duplicate files. Just to avoid users having to know about all the
61 # compatibility stuff between various boards and boards.
63 O_OBJS
:= $(sort $(O_OBJS
))
71 #r4k_switch.o: r4k_switch.S
73 #r4k_misc.o: r4k_misc.S
77 #r2300_switch.o: r2300_switch.S
79 #r2300_misc.o: r2300_misc.S
81 #r2300_fpu.o: r2300_fpu.S
83 #r6000_fpu.o: r6000_fpu.S
87 include $(TOPDIR
)/Rules.make