blob: 0692bb181fefd2a6eecf60af26a74b760028d118 [file] [log] [blame]
Marian Balakowicz513b4a12005-10-11 19:09:42 +02001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Wolfgang Denk4df0da52006-10-09 00:42:01 +02004#
Marian Balakowicz513b4a12005-10-11 19:09:42 +02005# Copyright 2004 Freescale Semiconductor, Inc.
6#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Marian Balakowicz513b4a12005-10-11 19:09:42 +02008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carliera8d426f2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
Marian Balakowicz513b4a12005-10-11 19:09:42 +020013
Kim Phillips57a2af32009-07-18 18:42:13 -050014COBJS-y += $(BOARD).o
15COBJS-$(CONFIG_PCI) += pci.o
Marian Balakowicz513b4a12005-10-11 19:09:42 +020016
Kim Phillips57a2af32009-07-18 18:42:13 -050017COBJS := $(COBJS-y)
Marian Balakowiczd62379d2006-09-01 19:49:50 +020018SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
21
22$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
Marian Balakowicz513b4a12005-10-11 19:09:42 +020024
Marian Balakowicz513b4a12005-10-11 19:09:42 +020025#########################################################################
26
Marian Balakowiczd62379d2006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
Marian Balakowicz513b4a12005-10-11 19:09:42 +020029
Marian Balakowiczd62379d2006-09-01 19:49:50 +020030sinclude $(obj).depend
Marian Balakowicz513b4a12005-10-11 19:09:42 +020031
32#########################################################################