OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [i960/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1625 jcastillo
#
2
# i960/Makefile
3
#
4
# This file is included by the global makefile so that you can add your own
5
# architecture-specific flags and dependencies. Remember to do have actions
6
# for "archclean" and "archdep" for cleaning up and making dependencies for
7
# this architecture
8
#
9
# This file is subject to the terms and conditions of the GNU General Public
10
# License.  See the file "COPYING" in the main directory of this archive
11
# for more details.
12
#
13
# Copyright (C) 1999    Keith Adams ,
14
#                       Erik Walthinsen ,
15
#                       Oregon Graduate Institute
16
#
17
# based on uClinux for the m68knommu (pilot/shglcore) by:
18
# Copyright (C) 1998,1999  D. Jeff Dionne ,
19
#                          Kenneth Albanowski ,
20
#                          The Silver Hammer Group, Ltd.
21
#
22
# Based on arch/m68k/Makefile:
23
# Copyright (C) 1994 by Hamish Macdonald
24
#
25
 
26
# test for cross compiling
27
COMPILE_ARCH = $(shell uname -m)
28
CROSS_COMPILE=y
29
XAS     =gas960
30
XLD     =gld960
31
XCC     =gcc960
32
XAR     =gar960
33
XNM     =gnm960
34
XSTRIP  =gstrip960
35
 
36
# even though i960 is COFF, don't define __COFF__; gcc960 still uses the
37
# _ prefixes, so __COFF__ makes linkage.h do the wrong thing
38
CFLAGS += -pipe $(DBG_FLAGS) -DNO_MM -DNO_FPU -DNO_FORGET -DUTS_SYSNAME='"uClinux-i960"' -DMAGIC_ROM_PTR -mabi
39
AFLAGS += -pipe -DNO_MM -DNO_FPU -DUTS_SYSNAME='"uClinux-i960"'
40
 
41
ifeq ($(CONFIG_CYVH),y)
42
LINKFLAGS = -T arch/$(ARCH)/init_cyjx.ld
43
endif
44
 
45
ifeq ($(CONFIG_I960VH),y)
46
GCC960ARCH=-AJF
47
CFLAGS += $(GCC960ARCH)
48
AFLAGS += $(GCC960ARCH)
49
endif
50
 
51
HEAD := arch/$(ARCH)/kernel/head.o
52
 
53
SUBDIRS=arch/$(ARCH)/kernel arch/$(ARCH)/mm arch/$(ARCH)/lib
54
ARCHIVES=arch/$(ARCH)/kernel/kernel.o arch/$(ARCH)/mm/mm.o
55
LIBS=arch/$(ARCH)/lib/lib.a $(LIBGCC)
56
 
57
ifeq ($(CONFIG_ROMFS_FS),y)
58
ARCHIVES+=arch/$(ARCH)/romfs/romfs.o
59
endif
60
 
61
MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
62
 
63
debug:
64
        $(MAKE) coff DBG_FLAGS="-DDEBUG"
65
 
66
coff: vmlinux
67
        cof960 -Fcoff -JS vmlinux
68
 
69
bootstrap:
70
        @$(MAKEBOOT) bootstrap
71
 
72
archclean:
73
        @$(MAKEBOOT) clean
74
 
75
archdep:
76
        $(MAKEBOOT) dep

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.