blob: 7c86ae3ea5b301e8b153fa285f32075da81f6e2c [file] [log] [blame]
Stefano Babica521a772010-01-20 18:19:32 +01001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2009 Freescale Semiconductor, Inc.
6#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Stefano Babica521a772010-01-20 18:19:32 +01008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carliera8d426f2010-11-05 15:48:07 +010012LIB = $(obj)lib$(SOC).o
Stefano Babica521a772010-01-20 18:19:32 +010013
Benoît Thébaudeau1aedde42013-05-03 10:32:37 +000014COBJS = soc.o clock.o
Stefano Babica521a772010-01-20 18:19:32 +010015SOBJS = lowlevel_init.o
16
17SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
19
20all: $(obj).depend $(LIB)
21
22$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
Stefano Babica521a772010-01-20 18:19:32 +010024
25#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
Stefano Babica521a772010-01-20 18:19:32 +010032#########################################################################