blob: b2b1e56a96e2ba6aa4bd42292b04a218181b1c83 [file] [log] [blame]
Jens Scharsig9bbaae32010-02-03 22:47:35 +01001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Jens Scharsig9bbaae32010-02-03 22:47:35 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(SOC).o
Jens Scharsig9bbaae32010-02-03 22:47:35 +010011
12SOBJS += lowlevel_init.o
13COBJS += reset.o
14COBJS += timer.o
Andreas Bießmannf4c9f922011-06-12 01:49:11 +000015COBJS += clock.o
Andreas Bießmannc2a1f0f2011-06-12 01:49:12 +000016COBJS += cpu.o
Andreas Bießmann5e1f6c82011-06-12 01:49:13 +000017COBJS += at91rm9200_devices.o
Jens Scharsig9bbaae32010-02-03 22:47:35 +010018
19SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
20OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
21
22all: $(obj).depend $(LIB)
23
24$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS))
Jens Scharsig9bbaae32010-02-03 22:47:35 +010026
27#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################