blob: b86fbfbdad0d87e58d3efe9cfb3d3fe05d68d335 [file] [log] [blame]
wdenk4989f872004-03-14 15:06:13 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk4989f872004-03-14 15:06:13 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2004
6# ARM Ltd.
7# Philippe Robin, <philippe.robin@arm.com>
8#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
wdenk4989f872004-03-14 15:06:13 +000010#
11
12include $(TOPDIR)/config.mk
13
Sebastien Carliera8d426f2010-11-05 15:48:07 +010014LIB = $(obj)lib$(BOARD).o
wdenk4989f872004-03-14 15:06:13 +000015
Jean-Christophe PLAGNIOL-VILLARD29383e52009-05-17 00:58:36 +020016SOBJS-y := lowlevel_init.o
wdenk4989f872004-03-14 15:06:13 +000017
Jean-Christophe PLAGNIOL-VILLARD693a7ae2009-05-17 00:58:37 +020018COBJS-y := integrator.o
Jean-Christophe PLAGNIOL-VILLARD29383e52009-05-17 00:58:36 +020019COBJS-$(CONFIG_PCI) += pci.o
Jean-Christophe PLAGNIOL-VILLARDb0dfeac2009-05-17 00:58:36 +020020COBJS-y += timer.o
Marian Balakowiczd62379d2006-09-01 19:49:50 +020021
Jean-Christophe PLAGNIOL-VILLARD29383e52009-05-17 00:58:36 +020022SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
23COBJS := $(addprefix $(obj),$(COBJS-y))
24SOBJS := $(addprefix $(obj),$(SOBJS-y))
25
26$(LIB): $(obj).depend $(COBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010027 $(call cmd_link_o_target, $(COBJS) $(SOBJS))
wdenk4989f872004-03-14 15:06:13 +000028
wdenk4989f872004-03-14 15:06:13 +000029#########################################################################
30
Marian Balakowiczd62379d2006-09-01 19:49:50 +020031# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
wdenk4989f872004-03-14 15:06:13 +000033
Marian Balakowiczd62379d2006-09-01 19:49:50 +020034sinclude $(obj).depend
wdenk4989f872004-03-14 15:06:13 +000035
36#########################################################################