wdenk | 3d3befa | 2004-03-14 15:06:13 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2000-2006 |
wdenk | 3d3befa | 2004-03-14 15:06:13 +0000 | [diff] [blame] | 3 | # 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 Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 3d3befa | 2004-03-14 15:06:13 +0000 | [diff] [blame] | 10 | # |
| 11 | |
| 12 | include $(TOPDIR)/config.mk |
| 13 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 14 | LIB = $(obj)lib$(BOARD).o |
wdenk | 3d3befa | 2004-03-14 15:06:13 +0000 | [diff] [blame] | 15 | |
Jean-Christophe PLAGNIOL-VILLARD | 86baa08 | 2009-05-17 00:58:36 +0200 | [diff] [blame] | 16 | SOBJS-y := lowlevel_init.o |
wdenk | 3d3befa | 2004-03-14 15:06:13 +0000 | [diff] [blame] | 17 | |
Jean-Christophe PLAGNIOL-VILLARD | 576afd4 | 2009-05-17 00:58:37 +0200 | [diff] [blame] | 18 | COBJS-y := integrator.o |
Jean-Christophe PLAGNIOL-VILLARD | 86baa08 | 2009-05-17 00:58:36 +0200 | [diff] [blame] | 19 | COBJS-$(CONFIG_PCI) += pci.o |
Jean-Christophe PLAGNIOL-VILLARD | 2bcef07 | 2009-05-17 00:58:36 +0200 | [diff] [blame] | 20 | COBJS-y += timer.o |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 21 | |
Jean-Christophe PLAGNIOL-VILLARD | 86baa08 | 2009-05-17 00:58:36 +0200 | [diff] [blame] | 22 | SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
| 23 | COBJS := $(addprefix $(obj),$(COBJS-y)) |
| 24 | SOBJS := $(addprefix $(obj),$(SOBJS-y)) |
| 25 | |
| 26 | $(LIB): $(obj).depend $(COBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 27 | $(call cmd_link_o_target, $(COBJS) $(SOBJS)) |
wdenk | 3d3befa | 2004-03-14 15:06:13 +0000 | [diff] [blame] | 28 | |
wdenk | 3d3befa | 2004-03-14 15:06:13 +0000 | [diff] [blame] | 29 | ######################################################################### |
| 30 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 31 | # defines $(obj).depend target |
| 32 | include $(SRCTREE)/rules.mk |
wdenk | 3d3befa | 2004-03-14 15:06:13 +0000 | [diff] [blame] | 33 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 34 | sinclude $(obj).depend |
wdenk | 3d3befa | 2004-03-14 15:06:13 +0000 | [diff] [blame] | 35 | |
| 36 | ######################################################################### |