* better
[mascara-docs.git] / i386 / linux-2.3.21 / arch / mips / kernel / Makefile
blob66306b16b232e262e003ba67187d9e016293a915
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 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
22 M_OBJS += fpe.o
23 endif
26 # SGIs have very different interrupt/timer hardware.
28 ifndef CONFIG_SGI
29 ifndef CONFIG_DECSTATION
30 ifndef CONFIG_BAGET_MIPS
31 O_OBJS += irq.o time.o
32 endif
33 endif
34 endif
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
41 endif
44 # Kernel debugging
46 ifdef CONFIG_REMOTE_DEBUG
47 O_OBJS += gdb-low.o gdb-stub.o
48 endif
51 # Depending from some other kernel option
53 ifdef CONFIG_PROC_FS
54 O_OBJS += proc.o
55 endif
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))
65 all: kernel.o head.o
67 entry.o: entry.S
69 head.o: head.S
71 #r4k_switch.o: r4k_switch.S
73 #r4k_misc.o: r4k_misc.S
75 #r4k_fpu.o: r4k_fpu.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
85 clean:
87 include $(TOPDIR)/Rules.make