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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [m68k/] [Makefile_elf] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1625 jcastillo
#
2
# m68k/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) 1994 by Hamish Macdonald
14
#
15
 
16
# override top level makefile
17
AS      = as -m68020
18
#CC     := $(CC) -b m68kelf
19
LD      = ld -m m68kelf
20
 
21
 
22
#
23
# Set these to indicate how to link it..
24
#
25
# -zmagic:
26
#
27
# LINKFLAGS    = -Ttext 0x100000
28
#
29
# -qmagic (we need to remove the 32 byte header for bootup purposes)
30
#
31
 
32
LINKFLAGS = -qmagic -Ttext 0xFE0
33
 
34
HEAD := arch/m68k/kernel/head.o
35
 
36
SUBDIRS := $(SUBDIRS) arch/m68k/kernel arch/m68k/mm arch/m68k/lib
37
ARCHIVES := arch/m68k/kernel/kernel.o arch/m68k/mm/mm.o $(ARCHIVES)
38
LIBS := $(TOPDIR)/arch/m68k/lib/lib.a $(LIBS) $(TOPDIR)/arch/m68k/lib/lib.a
39
 
40
ifdef CONFIG_AMIGA
41
ARCHIVES := $(ARCHIVES) arch/m68k/amiga/amiga.o
42
SUBDIRS := $(SUBDIRS) arch/m68k/amiga
43
endif
44
 
45
ifdef CONFIG_ATARI
46
ARCHIVES := $(ARCHIVES) arch/m68k/atari/atari.o
47
SUBDIRS := $(SUBDIRS) arch/m68k/atari
48
endif
49
 
50
ifdef CONFIG_MAC
51
ARCHIVES := $(ARCHIVES) arch/m68k/mac/mac.o
52
SUBDIRS := $(SUBDIRS) arch/m68k/mac
53
endif
54
 
55
ifdef CONFIG_FPSP_040
56
ARCHIVES := $(ARCHIVES) arch/m68k/fpsp040/fpsp.o
57
SUBDIRS := $(SUBDIRS) arch/m68k/fpsp040
58
endif
59
 
60
arch/m68k/kernel: dummy
61
        $(MAKE) linuxsubdirs SUBDIRS=arch/m68k/kernel
62
 
63
arch/m68k/mm: dummy
64
        $(MAKE) linuxsubdirs SUBDIRS=arch/m68k/mm
65
 
66
arch/m68k/lib: dummy
67
        $(MAKE) linuxsubdirs SUBDIRS=arch/m68k/lib
68
 
69
arch/m68k/amiga: dummy
70
        $(MAKE) linuxsubdirs SUBDIRS=arch/m68k/amiga
71
 
72
arch/m68k/atari: dummy
73
        $(MAKE) linuxsubdirs SUBDIRS=arch/m68k/atari
74
 
75
MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
76
 
77
lilo:   vmlinux
78
        if [ -f $(INSTALL_PATH)/vmlinux ]; then mv -f $(INSTALL_PATH)/vmlinux $(INSTALL_PATH)/vmlinux.old; fi
79
        if [ -f $(INSTALL_PATH)/System.map ]; then mv -f $(INSTALL_PATH)/System.map $(INSTALL_PATH)/System.old; fi
80
        cat vmlinux > $(INSTALL_PATH)/vmlinux
81
        cp System.map $(INSTALL_PATH)/System.map
82
        if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi
83
 
84
bootstrap:
85
        @$(MAKEBOOT) bootstrap
86
 
87
archclean:
88
        @$(MAKEBOOT) clean
89
 
90
archdep:
91
        $(MAKEBOOT) dep

powered by: WebSVN 2.1.0

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