blob: 9549badce42433eae7205fa248a4b292005f7d61 [file] [log] [blame]
Marian Balakowicz991425f2006-03-14 16:24:38 +01001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Marian Balakowicz991425f2006-03-14 16:24:38 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Marian Balakowicz991425f2006-03-14 16:24:38 +010011
Kim Phillips9993e192009-07-18 18:42:13 -050012COBJS-y += $(BOARD).o
13COBJS-$(CONFIG_PCI) += pci.o
York Sund4b91062011-08-26 11:32:45 -070014COBJS-$(CONFIG_FSL_DDR2) += ddr.o
Marian Balakowicz991425f2006-03-14 16:24:38 +010015
Kim Phillips9993e192009-07-18 18:42:13 -050016COBJS := $(COBJS-y)
Marian Balakowiczf9328632006-09-01 19:49:50 +020017SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
20
21$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Marian Balakowicz991425f2006-03-14 16:24:38 +010023
Marian Balakowicz991425f2006-03-14 16:24:38 +010024#########################################################################
25
Marian Balakowiczf9328632006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
Marian Balakowicz991425f2006-03-14 16:24:38 +010028
Marian Balakowiczf9328632006-09-01 19:49:50 +020029sinclude $(obj).depend
Marian Balakowicz991425f2006-03-14 16:24:38 +010030
31#########################################################################