blob: b86fbfbdad0d87e58d3efe9cfb3d3fe05d68d335 [file] [log] [blame]
wdenk3d3befa2004-03-14 15:06:13 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk3d3befa2004-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 Denk1a459662013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
wdenk3d3befa2004-03-14 15:06:13 +000010#
11
12include $(TOPDIR)/config.mk
13
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010014LIB = $(obj)lib$(BOARD).o
wdenk3d3befa2004-03-14 15:06:13 +000015
Jean-Christophe PLAGNIOL-VILLARD86baa082009-05-17 00:58:36 +020016SOBJS-y := lowlevel_init.o
wdenk3d3befa2004-03-14 15:06:13 +000017
Jean-Christophe PLAGNIOL-VILLARD576afd42009-05-17 00:58:37 +020018COBJS-y := integrator.o
Jean-Christophe PLAGNIOL-VILLARD86baa082009-05-17 00:58:36 +020019COBJS-$(CONFIG_PCI) += pci.o
Jean-Christophe PLAGNIOL-VILLARD2bcef072009-05-17 00:58:36 +020020COBJS-y += timer.o
Marian Balakowiczf9328632006-09-01 19:49:50 +020021
Jean-Christophe PLAGNIOL-VILLARD86baa082009-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 Carlier6d8962e2010-11-05 15:48:07 +010027 $(call cmd_link_o_target, $(COBJS) $(SOBJS))
wdenk3d3befa2004-03-14 15:06:13 +000028
wdenk3d3befa2004-03-14 15:06:13 +000029#########################################################################
30
Marian Balakowiczf9328632006-09-01 19:49:50 +020031# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
wdenk3d3befa2004-03-14 15:06:13 +000033
Marian Balakowiczf9328632006-09-01 19:49:50 +020034sinclude $(obj).depend
wdenk3d3befa2004-03-14 15:06:13 +000035
36#########################################################################