2008-01-30 21:15:54 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2008
|
2008-05-08 20:52:09 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
2008-01-30 21:15:54 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)lib$(SOC).o
|
2008-01-30 21:15:54 +00:00
|
|
|
|
2009-05-13 19:01:13 +00:00
|
|
|
COBJS-$(CONFIG_AT91CAP9) += at91cap9_devices.o
|
|
|
|
COBJS-$(CONFIG_AT91SAM9260) += at91sam9260_devices.o
|
|
|
|
COBJS-$(CONFIG_AT91SAM9G20) += at91sam9260_devices.o
|
2010-11-03 14:39:55 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9XE) += at91sam9260_devices.o
|
2009-05-13 19:01:13 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9261) += at91sam9261_devices.o
|
2009-06-25 15:04:15 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9G10) += at91sam9261_devices.o
|
2009-05-13 19:01:13 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9263) += at91sam9263_devices.o
|
|
|
|
COBJS-$(CONFIG_AT91SAM9RL) += at91sam9rl_devices.o
|
2009-07-09 08:16:29 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9M10G45) += at91sam9m10g45_devices.o
|
|
|
|
COBJS-$(CONFIG_AT91SAM9G45) += at91sam9m10g45_devices.o
|
2013-04-16 23:42:44 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9N12) += at91sam9n12_devices.o
|
2012-07-05 17:21:46 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9X5) += at91sam9x5_devices.o
|
2010-07-27 13:18:38 +00:00
|
|
|
COBJS-$(CONFIG_AT91_EFLASH) += eflash.o
|
2009-03-21 20:08:00 +00:00
|
|
|
COBJS-$(CONFIG_AT91_LED) += led.o
|
2009-04-16 19:30:44 +00:00
|
|
|
COBJS-y += clock.o
|
|
|
|
COBJS-y += cpu.o
|
2009-05-31 10:44:45 +00:00
|
|
|
COBJS-y += reset.o
|
2008-03-31 19:20:49 +00:00
|
|
|
COBJS-y += timer.o
|
2008-01-30 21:15:54 +00:00
|
|
|
|
2009-06-13 10:50:04 +00:00
|
|
|
ifndef CONFIG_SKIP_LOWLEVEL_INIT
|
|
|
|
SOBJS-y := lowlevel_init.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
|
2008-01-30 21:15:54 +00:00
|
|
|
|
2009-05-01 13:38:06 +00:00
|
|
|
all: $(obj).depend $(LIB)
|
2008-01-30 21:15:54 +00:00
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2008-01-30 21:15:54 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|