URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [m68k/] [Makefile] - Rev 1765
Compare with Previous | Blame | View Log
## m68k/Makefile## This file is included by the global makefile so that you can add your own# architecture-specific flags and dependencies. Remember to do have actions# for "archclean" and "archdep" for cleaning up and making dependencies for# this architecture## This file is subject to the terms and conditions of the GNU General Public# License. See the file "COPYING" in the main directory of this archive# for more details.## Copyright (C) 1994 by Hamish Macdonald## override top level makefileifdef CONFIG_KERNEL_ELFAS = as -m68020LD = ld -m m68kelfCC := $(CC)# set up for cross compilingCOMPILE_ARCH = $(shell uname -m)ifneq ($(COMPILE_ARCH),$(ARCH))CROSSDIR=/usr/$(ARCH)-linuxCC := $(CROSSDIR)/$(CC)AS := $(CROSSDIR)/$(AS)LD := $(CROSSDIR)/$(LD)AR := $(CROSSDIR)/$(AR)NM := $(CROSSDIR)/$(NM)STRIP := $(CROSSDIR)/$(STRIP)endifelseAS = /usr/m68k-linuxaout/bin/as -m68020CC := $(CC) -pipe -b m68k-linuxaoutLD = ld -m m68klinuxendif## Set these to indicate how to link it..## -zmagic:## LINKFLAGS = -Ttext 0x100000## -qmagic (we need to remove the 32 byte header for bootup purposes)#ifdef CONFIG_KERNEL_ELFLINKFLAGS = -Ttext 0x1000elseLINKFLAGS = -qmagic -Ttext 0xFE0endifCFLAGS := $(CFLAGS) -pipeHEAD := arch/m68k/kernel/head.oSUBDIRS += arch/m68k/kernel arch/m68k/mm arch/m68k/console arch/m68k/lib#SUBDIRS += arch/m68k/kernel arch/m68k/mm arch/m68k/libARCHIVES := arch/m68k/kernel/kernel.o arch/m68k/mm/mm.o $(ARCHIVES)LIBS += arch/m68k/lib/lib.aifdef CONFIG_AMIGAARCHIVES := $(ARCHIVES) arch/m68k/amiga/amiga.oSUBDIRS := $(SUBDIRS) arch/m68k/amigaendififdef CONFIG_ATARIARCHIVES := $(ARCHIVES) arch/m68k/atari/atari.oSUBDIRS := $(SUBDIRS) arch/m68k/atariendififdef CONFIG_MACARCHIVES := $(ARCHIVES) arch/m68k/mac/mac.oSUBDIRS := $(SUBDIRS) arch/m68k/macendif# add in console.a after {amiga,atari}.o that need itARCHIVES := $(ARCHIVES) arch/m68k/console/console.aifdef CONFIG_FPSP_040ARCHIVES := $(ARCHIVES) arch/m68k/fpsp040/fpsp.oSUBDIRS := $(SUBDIRS) arch/m68k/fpsp040endififdef CONFIG_IFPSP_060ARCHIVES := $(ARCHIVES) arch/m68k/ifpsp060/ifpsp.oSUBDIRS := $(SUBDIRS) arch/m68k/ifpsp060endifMAKEBOOT = $(MAKE) -C arch/$(ARCH)/bootlilo: vmlinuxif [ -f $(INSTALL_PATH)/vmlinux ]; then mv -f $(INSTALL_PATH)/vmlinux $(INSTALL_PATH)/vmlinux.old; fiif [ -f $(INSTALL_PATH)/System.map ]; then mv -f $(INSTALL_PATH)/System.map $(INSTALL_PATH)/System.old; ficat vmlinux > $(INSTALL_PATH)/vmlinuxcp System.map $(INSTALL_PATH)/System.mapif [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fibootstrap:@$(MAKEBOOT) bootstraparchclean:@$(MAKEBOOT) cleanarchdep:$(MAKEBOOT) dep
