blob: b1fbbbd0bb5800eb7a14a212d1b4527175655f00 [file] [log] [blame]
Tom Rix0419d912009-05-15 23:48:36 +02001#
2# (C) Copyright 2000, 2001, 2002
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Tom Rix0419d912009-05-15 23:48:36 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Tom Rix0419d912009-05-15 23:48:36 +020011
Tom Rix6c66b662009-05-31 12:44:39 +020012COBJS-y := $(BOARD).o
13COBJS-y += debug_board.o
14COBJS-y += zoom2_serial.o
15COBJS-$(CONFIG_STATUS_LED) += led.o
Tom Rix0419d912009-05-15 23:48:36 +020016
Tom Rix6c66b662009-05-31 12:44:39 +020017COBJS := $(sort $(COBJS-y))
Tom Rix0419d912009-05-15 23:48:36 +020018SRCS := $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20
21$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Tom Rix0419d912009-05-15 23:48:36 +020023
Tom Rix0419d912009-05-15 23:48:36 +020024#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################