blob: 09fed66bfdee300c90bed2fbd0e5da8284ca03d4 [file] [log] [blame]
Minkyu Kang87649982009-10-01 17:20:01 +09001#
2# (C) Copyright 2000-2003
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2008
6# Guennadi Liakhovetki, DENX Software Engineering, <lg@denx.de>
7#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
Minkyu Kang87649982009-10-01 17:20:01 +09009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(SOC).o
Minkyu Kang87649982009-10-01 17:20:01 +090014
Minkyu Kange3191f42009-12-18 15:03:51 +090015SOBJS = cache.o
16SOBJS += reset.o
Minkyu Kang87649982009-10-01 17:20:01 +090017
Minkyu Kang87649982009-10-01 17:20:01 +090018COBJS += clock.o
Minkyu Kang87649982009-10-01 17:20:01 +090019
20SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
22
23all: $(obj).depend $(LIB)
24
25$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010026 $(call cmd_link_o_target, $(OBJS))
Minkyu Kang87649982009-10-01 17:20:01 +090027
28#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################