blob: 1eb27edbd801f77a18a10391116e4c78a5625560 [file] [log] [blame]
Cyril Chemparathy692a7af2010-06-07 14:13:32 -04001#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02002# SPDX-License-Identifier: GPL-2.0+
Cyril Chemparathy692a7af2010-06-07 14:13:32 -04003#
4
5include $(TOPDIR)/config.mk
6
Sebastien Carliera8d426f2010-11-05 15:48:07 +01007LIB = $(obj)lib$(SOC).o
Cyril Chemparathy692a7af2010-06-07 14:13:32 -04008
Marek Vasut1df69ec2012-07-21 05:02:21 +00009COBJS += aemif.o clock.o init.o mux.o timer.o
Cyril Chemparathy692a7af2010-06-07 14:13:32 -040010SOBJS += lowlevel_init.o
11
12SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
13
14OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
15START := $(addprefix $(obj),$(START))
16
17all: $(obj).depend $(LIB)
18
19$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS))
Cyril Chemparathy692a7af2010-06-07 14:13:32 -040021
22#########################################################################
23
24# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
26
27sinclude $(obj).depend
28
29#########################################################################