blob: c9b145527bf0145873a33d5c3ab74fd759d24ce7 [file] [log] [blame]
Stefano Babic421834e2010-02-05 15:13:58 +01001#
2# Copyright (C) 2007, Guennadi Liakhovetski <lg@denx.de>
3#
4# (C) Copyright 2009 Freescale Semiconductor, Inc.
5#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Stefano Babic421834e2010-02-05 15:13:58 +01007#
8
9include $(TOPDIR)/config.mk
10
Sebastien Carliera8d426f2010-11-05 15:48:07 +010011LIB = $(obj)lib$(BOARD).o
Stefano Babic421834e2010-02-05 15:13:58 +010012
Vikram Narayanan9ddfa242012-11-10 02:28:52 +000013COBJS-y += mx51evk.o
14COBJS-$(CONFIG_VIDEO) += mx51evk_video.o
Stefano Babic421834e2010-02-05 15:13:58 +010015
Vikram Narayanan9ddfa242012-11-10 02:28:52 +000016COBJS := $(COBJS-y)
Fabio Estevam47121632012-05-29 07:39:58 +000017SRCS := $(COBJS:.o=.c)
Stefano Babic421834e2010-02-05 15:13:58 +010018OBJS := $(addprefix $(obj),$(COBJS))
Stefano Babic421834e2010-02-05 15:13:58 +010019
Fabio Estevam47121632012-05-29 07:39:58 +000020$(LIB): $(obj).depend $(OBJS)
21 $(call cmd_link_o_target, $(OBJS))
Stefano Babic421834e2010-02-05 15:13:58 +010022
Stefano Babic421834e2010-02-05 15:13:58 +010023#########################################################################
24
25# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude $(obj).depend
29
30#########################################################################