Import 2.4.0-test4pre1
[davej-history.git] / arch / mips / kernel / Makefile
blobd140184a63798f197be2bedbb8082943c31b4410
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).
9 .S.o:
10 $(CC) $(CFLAGS) -c $< -o $*.o
12 all: kernel.o head.o init_task.o
13 EXTRA_ASFLAGS = -mips3 -mcpu=r4000
14 O_TARGET := kernel.o
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
22 else
23 O_OBJS += r4k_misc.o r4k_switch.o
24 ifdef CONFIG_CPU_R6000
25 O_OBJS += r6000_fpu.o
26 else
27 O_OBJS += r4k_fpu.o
28 endif
29 endif
31 ifdef CONFIG_MIPS_FPE_MODULE
32 M_OBJS += fpe.o
33 endif
36 # SGIs have very different interrupt/timer hardware.
38 ifndef CONFIG_DECSTATION
39 ifndef CONFIG_BAGET_MIPS
40 O_OBJS += time.o
41 ifndef CONFIG_SGI_IP22
42 ifndef CONFIG_ORION
43 OX_OBJS += irq.o
44 endif
45 endif
46 endif
47 endif
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
54 endif
57 # Kernel debugging
59 ifdef CONFIG_REMOTE_DEBUG
60 O_OBJS += gdb-low.o gdb-stub.o
61 endif
64 # Depending from some other kernel option
66 ifdef CONFIG_PROC_FS
67 O_OBJS += proc.o
68 endif
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))
78 entry.o: entry.S
80 head.o: head.S
82 #r4k_switch.o: r4k_switch.S
84 #r4k_misc.o: r4k_misc.S
86 #r4k_fpu.o: r4k_fpu.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
96 clean:
98 include $(TOPDIR)/Rules.make