OSDN Git Service

90f97c2dca2f28861f57d3697537c24012e717d8
[uclinux-h8/linux.git] / arch / h8300 / Makefile
1 #
2 # arch/h8300/Makefile
3 #
4 # This file is subject to the terms and conditions of the GNU General Public
5 # License.  See the file "COPYING" in the main directory of this archive
6 # for more details.
7 #
8 # (C) Copyright 2002,2003 Yoshinori Sato <ysato@users.sourceforge.jp>
9 #
10
11 cflags-$(CONFIG_CPU_H8300H)     := -mh
12 ldflags-$(CONFIG_CPU_H8300H)    := -mh8300helf_linux
13 cflags-$(CONFIG_CPU_H8S)        := -ms
14 ldflags-$(CONFIG_CPU_H8S)       := -mh8300self_linux
15
16 KBUILD_CFLAGS += $(cflags-y)
17 KBUILD_CFLAGS += -mint32 -fno-builtin
18 KBUILD_CFLAGS += -g
19 KBUILD_CFLAGS += -D__linux__
20 KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
21 KBUILD_AFLAGS += $(cflags-y)
22 LDFLAGS += $(ldflags-y)
23
24 CROSS_COMPILE := h8300-unknown-linux-
25 LIBGCC := $(shell $(CROSS-COMPILE)$(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
26
27 core-y  += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/ arch/$(ARCH)/boards/
28
29 libs-y  += arch/$(ARCH)/lib/ $(LIBGCC)
30
31 boot := arch/h8300/boot
32
33 archmrproper:
34
35 archclean:
36         $(Q)$(MAKE) $(clean)=$(boot)
37
38 vmlinux.srec vmlinux.bin zImage: vmlinux
39         $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
40
41 define archhelp
42   @echo  'vmlinux.bin  - Create raw binary'
43   @echo  'vmlinux.srec - Create srec binary'
44   @echo  'zImage       - Compressed kernel image'
45 endef