blob: 4dd47b7cdcf489b3ebc9c56ce545ace833b144c4 [file] [log] [blame]
Reinhard Arltc2e49f72009-07-25 06:19:12 +02001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# Copyright (c) 2009 esd gmbh hannover germany.
6#
Wolfgang Denk1a459662013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Reinhard Arltc2e49f72009-07-25 06:19:12 +02008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
Reinhard Arltc2e49f72009-07-25 06:19:12 +020013
14COBJS-y += $(BOARD).o caddy.o
15COBJS-$(CONFIG_PCI) += pci.o
16
17COBJS := $(COBJS-y)
18SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
21
22$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
Reinhard Arltc2e49f72009-07-25 06:19:12 +020024
Reinhard Arltc2e49f72009-07-25 06:19:12 +020025#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################