blob: 3125164ca91da2131e1e23c5b571b648d3dccce8 [file] [log] [blame]
Reinhard Meyerd55c5c32010-10-30 23:09:58 +00001#
2# (C) Copyright 2003-2008
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2010
6# Reinhard Meyer, EMK Elektronik, reinhard.meyer@emk-elektronik.de
7#
Wolfgang Denk1a459662013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
Reinhard Meyerd55c5c32010-10-30 23:09:58 +00009#
10
11include $(TOPDIR)/config.mk
12
Reinhard Meyerf8055482010-12-09 10:07:31 +010013LIB = $(obj)lib$(BOARD).o
Reinhard Meyerd55c5c32010-10-30 23:09:58 +000014
Reinhard Meyerf8055482010-12-09 10:07:31 +010015COBJS-y += $(BOARD).o
Reinhard Meyerd55c5c32010-10-30 23:09:58 +000016COBJS-$(CONFIG_ATMEL_SPI) += spi.o
17
18SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS-y))
20SOBJS := $(addprefix $(obj),$(SOBJS))
21
22$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Reinhard Meyerf8055482010-12-09 10:07:31 +010023 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Reinhard Meyerd55c5c32010-10-30 23:09:58 +000024
Reinhard Meyerd55c5c32010-10-30 23:09:58 +000025#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################