import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / arch / sh64 / kernel / Makefile
1 #
2 # This file is subject to the terms and conditions of the GNU General Public
3 # License.  See the file "COPYING" in the main directory of this archive
4 # for more details.
5 #
6 # Copyright (C) 2000, 2001  Paolo Alberelli
7 #
8 # Makefile for the Linux SH-5 kernel.
9 #
10 # Note! Dependencies are done automagically by 'make dep', which also
11 # removes any old dependencies. DON'T put your own dependencies here
12 # unless it's something special (ie not a .c file).
13 #
14
15 .S.o:
16         $(CC) $(CFLAGS) $(AFLAGS) -c $< -o $*.o
17
18 O_TARGET := kernel.o
19
20 obj-y   := process.o signal.o entry.o traps.o irq.o irq_intc.o \
21             ptrace.o setup.o time.o sys_sh64.o semaphore.o sh_ksyms.o
22
23 obj-$(CONFIG_HEARTBEAT)         += led.o
24 obj-$(CONFIG_PCI)               += pci-dma.o pcibios.o
25
26 ifeq ($(CONFIG_PCI),y)
27 obj-$(CONFIG_CPU_SH5)           += pci_sh5.o
28 endif
29
30 obj-$(CONFIG_SH_DMA)            += dma.o
31
32 export-objs := sh_ksyms.o dma.o
33
34 ifndef CONFIG_NOFPU_SUPPORT
35 obj-y   += fpu.o
36 endif
37
38 all: $(O_TARGET) head.o init_task.o
39
40 include $(TOPDIR)/Rules.make