2003-12-08 09:34:36 +08:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2002
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
|
|
|
# See file CREDITS for list of people who contributed to this
|
|
|
|
# project.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
|
2009-06-15 11:33:14 +08:00
|
|
|
CROSS_COMPILE ?= m68k-elf-
|
|
|
|
|
2009-09-04 11:12:47 +08:00
|
|
|
clibdir = $(shell dirname `$(CC) $(CFLAGS) -print-file-name=libc.a`)
|
2011-02-04 21:25:17 +08:00
|
|
|
CONFIG_STANDALONE_LOAD_ADDR ?= 0x20000 -L $(clibdir)
|
2009-09-04 11:12:47 +08:00
|
|
|
|
2003-12-08 09:34:36 +08:00
|
|
|
PLATFORM_CPPFLAGS += -DCONFIG_M68K -D__M68K__
|
|
|
|
PLATFORM_LDFLAGS += -n
|
2011-08-22 17:24:45 +08:00
|
|
|
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
|
|
|
|
LDFLAGS_FINAL += --gc-sections
|