OSDN Git Service

aaeae96d47580907ce090beb52bced340910d913
[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 <<<<<<< HEAD
28 core-y  += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/ arch/$(ARCH)/boards/
29 =======
30 head-y := arch/$(ARCH)/platform/$(PLATFORM)/$(BOARD)/crt0_$(MODEL).o
31
32 core-y  += arch/$(ARCH)/kernel/ \
33            arch/$(ARCH)/mm/
34 ifdef PLATFORM
35 core-y  += arch/$(ARCH)/platform/$(PLATFORM)/ 
36 endif
37 >>>>>>> master
38
39 libs-y  += arch/$(ARCH)/lib/ $(LIBGCC)
40
41 boot := arch/h8300/boot
42
43 archmrproper:
44
45 archclean:
46         $(Q)$(MAKE) $(clean)=$(boot)
47
48 vmlinux.srec vmlinux.bin zImage: vmlinux
49         $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
50
51 define archhelp
52   @echo  'vmlinux.bin  - Create raw binary'
53   @echo  'vmlinux.srec - Create srec binary'
54   @echo  'zImage       - Compressed kernel image'
55 endef