blob: 1eb27edbd801f77a18a10391116e4c78a5625560 [file] [log] [blame]
Cyril Chemparathy37123672010-06-07 14:13:32 -04001#
Wolfgang Denk1a459662013-07-08 09:37:19 +02002# SPDX-License-Identifier: GPL-2.0+
Cyril Chemparathy37123672010-06-07 14:13:32 -04003#
4
5include $(TOPDIR)/config.mk
6
Sebastien Carlier6d8962e2010-11-05 15:48:07 +01007LIB = $(obj)lib$(SOC).o
Cyril Chemparathy37123672010-06-07 14:13:32 -04008
Marek Vasutd7312822012-07-21 05:02:21 +00009COBJS += aemif.o clock.o init.o mux.o timer.o
Cyril Chemparathy37123672010-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 Carlier6d8962e2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS))
Cyril Chemparathy37123672010-06-07 14:13:32 -040021
22#########################################################################
23
24# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
26
27sinclude $(obj).depend
28
29#########################################################################