blob: 98f283e3990c122a066af72f8bf2fde507b8391d [file] [log] [blame]
Guennadi Liakhovetski61525f22008-03-31 01:32:15 +02001#
2# (C) Copyright 2001
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Guennadi Liakhovetski61525f22008-03-31 01:32:15 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Guennadi Liakhovetski61525f22008-03-31 01:32:15 +020011
12OBJS = $(BOARD).o ide.o hwctl.o avr.o
13
Wolfgang Denkcf39b072008-05-14 12:21:48 +020014SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
15OBJS := $(addprefix $(obj),$(OBJS))
16
17$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010018 $(call cmd_link_o_target, $(OBJS))
Guennadi Liakhovetski61525f22008-03-31 01:32:15 +020019
20#########################################################################
21
Wolfgang Denkcf39b072008-05-14 12:21:48 +020022# defines $(obj).depend target
23include $(SRCTREE)/rules.mk
Guennadi Liakhovetski61525f22008-03-31 01:32:15 +020024
Wolfgang Denkcf39b072008-05-14 12:21:48 +020025sinclude $(obj).depend
Guennadi Liakhovetski61525f22008-03-31 01:32:15 +020026
27#########################################################################