Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # (C) Copyright 2011 Freescale Semiconductor, Inc. |
| 6 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 8 | # |
| 9 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
| 12 | LIB = $(obj)lib$(SOC).o |
| 13 | |
Stefano Babic | 83fd858 | 2013-06-28 00:20:21 +0200 | [diff] [blame] | 14 | COBJS-y = soc.o clock.o |
| 15 | COBJS-$(CONFIG_SECURE_BOOT) += hab.o |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 16 | |
Stefano Babic | 83fd858 | 2013-06-28 00:20:21 +0200 | [diff] [blame] | 17 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 18 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y)) |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 19 | |
| 20 | all: $(obj).depend $(LIB) |
| 21 | |
| 22 | $(LIB): $(OBJS) |
| 23 | $(call cmd_link_o_target, $(OBJS)) |
| 24 | |
| 25 | ######################################################################### |
| 26 | |
| 27 | # defines $(obj).depend target |
| 28 | include $(SRCTREE)/rules.mk |
| 29 | |
| 30 | sinclude $(obj).depend |
| 31 | |
| 32 | ######################################################################### |