blob: 6d736174dbb09e38b50c4b9432c91dc94b6795e6 [file] [log] [blame]
Jason Liudec11122011-11-25 00:18:02 +00001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2011 Freescale Semiconductor, Inc.
6#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Jason Liudec11122011-11-25 00:18:02 +00008#
9
10include $(TOPDIR)/config.mk
11
12LIB = $(obj)lib$(SOC).o
13
Stefano Babic83fd8582013-06-28 00:20:21 +020014COBJS-y = soc.o clock.o
15COBJS-$(CONFIG_SECURE_BOOT) += hab.o
Jason Liudec11122011-11-25 00:18:02 +000016
Stefano Babic83fd8582013-06-28 00:20:21 +020017SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
18OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
Jason Liudec11122011-11-25 00:18:02 +000019
20all: $(obj).depend $(LIB)
21
22$(LIB): $(OBJS)
23 $(call cmd_link_o_target, $(OBJS))
24
25#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################