blob: 9a5b84a5a705d105bb908b7500281bd8fde8e6d1 [file] [log] [blame]
Paul Gortmaker91e25762007-01-16 11:38:14 -05001#
2# Copyright (c) 2006 Wind River Systems, Inc.
3#
Wolfgang Denk1a459662013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Paul Gortmaker91e25762007-01-16 11:38:14 -05005#
6
7include $(TOPDIR)/config.mk
8
Sebastien Carlier6d8962e2010-11-05 15:48:07 +01009LIB = $(obj)lib$(BOARD).o
Paul Gortmaker91e25762007-01-16 11:38:14 -050010
Kim Phillips9993e192009-07-18 18:42:13 -050011COBJS-y += $(BOARD).o
12COBJS-$(CONFIG_PCI) += pci.o
Paul Gortmaker91e25762007-01-16 11:38:14 -050013
Kim Phillips9993e192009-07-18 18:42:13 -050014COBJS := $(COBJS-y)
Paul Gortmaker91e25762007-01-16 11:38:14 -050015SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
19$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS))
Paul Gortmaker91e25762007-01-16 11:38:14 -050021
Paul Gortmaker91e25762007-01-16 11:38:14 -050022#########################################################################
23
24# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
26
27sinclude $(obj).depend
28
29#########################################################################