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 reset.o semaphore.o setup.o syscall.o sysmips.o ipc.o \
17 scall_o32.o softfp.o unaligned.o
18 OX_OBJS
:= mips_ksyms.o
20 ifdef CONFIG_CPU_R3000
21 O_OBJS
+= r2300_misc.o r2300_fpu.o r2300_switch.o
23 O_OBJS
+= r4k_misc.o r4k_switch.o
24 ifdef CONFIG_CPU_R6000
31 ifdef CONFIG_MIPS_FPE_MODULE
36 # SGIs have very different interrupt/timer hardware.
38 ifndef CONFIG_DECSTATION
39 ifndef CONFIG_BAGET_MIPS
41 ifndef CONFIG_SGI_IP22
50 # Do we want to be able to execute IRIX elf binaries?
52 ifdef CONFIG_BINFMT_IRIX
53 O_OBJS
+= irixelf.o irixioctl.o irixsig.o sysirix.o irixinv.o
59 ifdef CONFIG_REMOTE_DEBUG
60 O_OBJS
+= gdb-low.o gdb-stub.o
64 # Depending from some other kernel option
71 # Since we add the same object files to O_OBJS for different configurations.
72 # O_OBJS might contain duplicate files. We correct this by filtering out
73 # duplicate files. Just to avoid users having to know about all the
74 # compatibility stuff between various boards and boards.
76 O_OBJS
:= $(sort $(O_OBJS
))
82 #r4k_switch.o: r4k_switch.S
84 #r4k_misc.o: r4k_misc.S
88 #r2300_switch.o: r2300_switch.S
90 #r2300_misc.o: r2300_misc.S
92 #r2300_fpu.o: r2300_fpu.S
94 #r6000_fpu.o: r6000_fpu.S
98 include $(TOPDIR
)/Rules.make