Import 2.4.0-test6pre10
[davej-history.git] / arch / sh / kernel / Makefile
blobc9de70daf7b9fe1f4f2acfe7c70390b47bada740
2 # Makefile for the Linux/SuperH 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) $(AFLAGS) -traditional -c $< -o $*.o
12 O_TARGET := kernel.o
13 O_OBJS := process.o signal.o entry.o traps.o irq.o irq_ipr.o \
14 ptrace.o setup.o time.o sys_sh.o semaphore.o \
15 irq_imask.o io.o
16 OX_OBJS := sh_ksyms.o
17 MX_OBJS :=
19 ifdef CONFIG_CF_ENABLER
20 O_OBJS += cf-enabler.o
21 endif
23 ifdef CONFIG_SH_GENERIC
25 O_OBJS += mach_se.o setup_se.o setup_cqreek.o io_se.o led_se.o \
26 mach_hp600.o io_hd64461.o \
27 mach_unknown.o io_unknown.o \
28 io_generic.o
30 else
32 ifdef CONFIG_SH_HP600
33 O_OBJS += mach_hp600.o io_hd64461.o io_generic.o
34 endif
36 ifdef CONFIG_SH_OVERDRIVE
37 O_OBJS += io_generic.o
38 endif
40 ifdef CONFIG_SH_SOLUTION_ENGINE
41 O_OBJS += mach_se.o setup_se.o io_se.o io_generic.o led_se.o
42 endif
44 ifdef CONFIG_SH_CQREEK
45 O_OBJS += setup_cqreek.o
46 endif
48 ifdef CONFIG_SH_UNKNOWN
49 O_OBJS += mach_unknown.o io_unknown.o io_generic.o
50 endif
52 endif
54 ifdef CONFIG_CPU_SH4
55 O_OBJS += fpu.o
56 endif
58 ifdef CONFIG_PCI
59 O_OBJS += pci-sh.o
60 endif
62 ifneq ($(CONFIG_SH_GENERIC)$(CONFIG_HD64461),)
63 O_OBJS += setup_hd64461.o
64 endif
66 ifdef CONFIG_SH_STANDARD_BIOS
67 O_OBJS += sh_bios.o
68 endif
70 all: kernel.o head.o init_task.o
72 entry.o: entry.S
74 head.o: head.S
76 clean:
78 include $(TOPDIR)/Rules.make