This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / arch / m32r / Makefile
1 #
2 # m32r/Makefile
3 #
4
5 LDFLAGS         :=
6 OBJCOPYFLAGS    := -O binary -R .note -R .comment -S
7 LDFLAGS_vmlinux := -e startup_32
8 LDFLAGS_BLOB    := --format binary --oformat elf32-m32r
9
10 CFLAGS += -pipe -fno-schedule-insns
11 CFLAGS_KERNEL += -mmodel=medium
12 CFLAGS_MODULE += -mmodel=large
13
14 ifdef CONFIG_CHIP_VDEC2
15 cflags-$(CONFIG_ISA_M32R2)      += -DNO_FPU -Wa,-bitinst
16 aflags-$(CONFIG_ISA_M32R2)      += -DNO_FPU -Wa,-bitinst
17 else
18 cflags-$(CONFIG_ISA_M32R2)      += -DNO_FPU -m32r2
19 aflags-$(CONFIG_ISA_M32R2)      += -DNO_FPU -m32r2
20 endif
21
22 cflags-$(CONFIG_ISA_M32R)       += -DNO_FPU
23 aflags-$(CONFIG_ISA_M32R)       += -DNO_FPU -Wa,-no-bitinst
24
25 CFLAGS += $(cflags-y)
26 AFLAGS += $(aflags-y)
27
28 CHECKFLAGS      := $(CHECK) -D__m32r__
29
30 head-y  := arch/m32r/kernel/head.o arch/m32r/kernel/init_task.o
31
32 LIBGCC  := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
33
34 libs-y  += arch/m32r/lib/ $(LIBGCC)
35 core-y  += arch/m32r/kernel/    \
36            arch/m32r/mm/        \
37            arch/m32r/boot/
38
39 drivers-$(CONFIG_OPROFILE)      += arch/m32r/oprofile/
40
41 boot := arch/m32r/boot
42
43 .PHONY: zImage
44
45 zImage: vmlinux
46         $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
47
48 compressed: zImage
49
50 archclean:
51         $(Q)$(MAKE) $(clean)=$(boot)
52
53 define archhelp
54         @echo '  zImage                 - Compressed kernel image (arch/m32r/boot/zImage)'
55 endef