Jason Liu | 938080d | 2011-05-13 01:58:55 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2011 Freescale Semiconductor, Inc. |
| 3 | # Jason Liu <r64343@freescale.com> |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Jason Liu | 938080d | 2011-05-13 01:58:55 +0000 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | LIB = $(obj)lib$(BOARD).o |
| 11 | |
Vikram Narayanan | 30ea4be | 2012-11-10 02:32:46 +0000 | [diff] [blame] | 12 | COBJS-y += mx53loco.o |
| 13 | COBJS-$(CONFIG_VIDEO) += mx53loco_video.o |
Jason Liu | 938080d | 2011-05-13 01:58:55 +0000 | [diff] [blame] | 14 | |
Vikram Narayanan | 30ea4be | 2012-11-10 02:32:46 +0000 | [diff] [blame] | 15 | COBJS := $(COBJS-y) |
Fabio Estevam | 2fb563f | 2012-05-29 07:39:54 +0000 | [diff] [blame] | 16 | SRCS := $(COBJS:.o=.c) |
Jason Liu | 938080d | 2011-05-13 01:58:55 +0000 | [diff] [blame] | 17 | OBJS := $(addprefix $(obj),$(COBJS)) |
Jason Liu | 938080d | 2011-05-13 01:58:55 +0000 | [diff] [blame] | 18 | |
Fabio Estevam | 2fb563f | 2012-05-29 07:39:54 +0000 | [diff] [blame] | 19 | $(LIB): $(obj).depend $(OBJS) |
| 20 | $(call cmd_link_o_target, $(OBJS)) |
Jason Liu | 938080d | 2011-05-13 01:58:55 +0000 | [diff] [blame] | 21 | |
Jason Liu | 938080d | 2011-05-13 01:58:55 +0000 | [diff] [blame] | 22 | ######################################################################### |
| 23 | |
| 24 | # defines $(obj).depend target |
| 25 | include $(SRCTREE)/rules.mk |
| 26 | |
| 27 | sinclude $(obj).depend |
| 28 | |
| 29 | ######################################################################### |