summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/Makefile
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1995-11-14 08:00:00 +0000
committer <ralf@linux-mips.org>1995-11-14 08:00:00 +0000
commite7c2a72e2680827d6a733931273a93461c0d8d1b (patch)
treec9abeda78ef7504062bb2e816bcf3e3c9d680112 /arch/mips/kernel/Makefile
parentec6044459060a8c9ce7f64405c465d141898548c (diff)
Import of Linux/MIPS 1.3.0
Diffstat (limited to 'arch/mips/kernel/Makefile')
-rw-r--r--arch/mips/kernel/Makefile94
1 files changed, 94 insertions, 0 deletions
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile
new file mode 100644
index 000000000..0086f60cf
--- /dev/null
+++ b/arch/mips/kernel/Makefile
@@ -0,0 +1,94 @@
+#
+# Makefile for the linux 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).
+#
+
+.c.s:
+ $(CC) $(CFLAGS) -S $<
+.s.o:
+ $(AS) $(ASFLAGS) -o $*.o $<
+.c.o:
+ $(CC) $(CFLAGS) -c $<
+.S.s:
+ $(CPP) $(CFLAGS) $< -o $*.s
+.S.o:
+ $(CC) $(CFLAGS) -c $< -o $*.o
+
+OBJS = process.o signal.o entry.o traps.o irq.o ptrace.o vm86.o ioport.o \
+ setup.o bios32.o tynedma.o
+
+include ../../../.config
+
+#
+# Kernel debugging
+#
+
+ifdef CONFIG_REMOTE_DEBUG
+OBJS += gdb-low.o gdb-stub.o
+endif
+
+#
+# Board specific code
+#
+
+ifdef CONFIG_MIPS_JAZZ
+OBJS += jazzdma.o
+endif
+
+ifdef CONFIG_ACER_PICA_61
+OBJS += pica.o
+endif
+
+ifdef CONFIG_DESKSTATION_TYNE
+OBJS += tyne.o
+endif
+
+ifdef CONFIG_MIPS_MAGNUM_4000
+OBJS += magnum4000.o
+endif
+
+#
+# CPU model specific code
+#
+ifdef CONFIG_CPU_R4X00
+OBJS += r4xx0.o
+endif
+
+ifdef CONFIG_CPU_R4600
+OBJS += r4xx0.o
+endif
+
+all: kernel.o head.o
+
+entry.o: entry.S
+
+head.o: head.S
+
+magnum4000.o: magnum4000.S
+
+pica.o: pica.S
+
+r4xx0.o: r4xx0.S
+
+tyne.o: tyne.S
+
+kernel.o: $(OBJS)
+ $(LD) -r -o kernel.o $(OBJS)
+ sync
+
+dep:
+ $(CPP) -M *.[cS] > .depend
+
+modules:
+
+dummy:
+
+#
+# include a dependency file if one exists
+#
+ifeq (.depend,$(wildcard .depend))
+include .depend
+endif