blob: 0b3ebe3e6735d8f582eff3592619a9e643f9da29 [file] [log] [blame]
Hans-Christian Egtvedt0eb57172008-08-06 14:42:13 +02001#
2# (C) Copyright 2001-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# Copyright (C) 2008 Atmel Corporation
6#
Wolfgang Denk1a459662013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Hans-Christian Egtvedt0eb57172008-08-06 14:42:13 +02008
9include $(TOPDIR)/config.mk
10
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010011LIB := $(obj)lib$(BOARD).o
Hans-Christian Egtvedt0eb57172008-08-06 14:42:13 +020012
13COBJS := $(BOARD).o flash.o
14
15SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
17
18$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010019 $(call cmd_link_o_target, $(OBJS))
Hans-Christian Egtvedt0eb57172008-08-06 14:42:13 +020020
21#########################################################################
22
23# defines $(obj).depend target
24include $(SRCTREE)/rules.mk
25
26sinclude $(obj).depend
27
28#########################################################################