Stefano Babic | 421834e | 2010-02-05 15:13:58 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2007, Guennadi Liakhovetski <lg@denx.de> |
| 3 | # |
| 4 | # (C) Copyright 2009 Freescale Semiconductor, Inc. |
| 5 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | # SPDX-License-Identifier: GPL-2.0+ |
Stefano Babic | 421834e | 2010-02-05 15:13:58 +0100 | [diff] [blame] | 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/config.mk |
| 10 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 11 | LIB = $(obj)lib$(BOARD).o |
Stefano Babic | 421834e | 2010-02-05 15:13:58 +0100 | [diff] [blame] | 12 | |
Vikram Narayanan | 9ddfa24 | 2012-11-10 02:28:52 +0000 | [diff] [blame] | 13 | COBJS-y += mx51evk.o |
| 14 | COBJS-$(CONFIG_VIDEO) += mx51evk_video.o |
Stefano Babic | 421834e | 2010-02-05 15:13:58 +0100 | [diff] [blame] | 15 | |
Vikram Narayanan | 9ddfa24 | 2012-11-10 02:28:52 +0000 | [diff] [blame] | 16 | COBJS := $(COBJS-y) |
Fabio Estevam | 4712163 | 2012-05-29 07:39:58 +0000 | [diff] [blame] | 17 | SRCS := $(COBJS:.o=.c) |
Stefano Babic | 421834e | 2010-02-05 15:13:58 +0100 | [diff] [blame] | 18 | OBJS := $(addprefix $(obj),$(COBJS)) |
Stefano Babic | 421834e | 2010-02-05 15:13:58 +0100 | [diff] [blame] | 19 | |
Fabio Estevam | 4712163 | 2012-05-29 07:39:58 +0000 | [diff] [blame] | 20 | $(LIB): $(obj).depend $(OBJS) |
| 21 | $(call cmd_link_o_target, $(OBJS)) |
Stefano Babic | 421834e | 2010-02-05 15:13:58 +0100 | [diff] [blame] | 22 | |
Stefano Babic | 421834e | 2010-02-05 15:13:58 +0100 | [diff] [blame] | 23 | ######################################################################### |
| 24 | |
| 25 | # defines $(obj).depend target |
| 26 | include $(SRCTREE)/rules.mk |
| 27 | |
| 28 | sinclude $(obj).depend |
| 29 | |
| 30 | ######################################################################### |