Jason Liu | f5b81c8 | 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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Jason Liu | f5b81c8 | 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 | 8bb48d6 | 2012-11-10 02:32:46 +0000 | [diff] [blame] | 12 | COBJS-y += mx53loco.o |
| 13 | COBJS-$(CONFIG_VIDEO) += mx53loco_video.o |
Jason Liu | f5b81c8 | 2011-05-13 01:58:55 +0000 | [diff] [blame] | 14 | |
Vikram Narayanan | 8bb48d6 | 2012-11-10 02:32:46 +0000 | [diff] [blame] | 15 | COBJS := $(COBJS-y) |
Fabio Estevam | fa4c18c | 2012-05-29 07:39:54 +0000 | [diff] [blame] | 16 | SRCS := $(COBJS:.o=.c) |
Jason Liu | f5b81c8 | 2011-05-13 01:58:55 +0000 | [diff] [blame] | 17 | OBJS := $(addprefix $(obj),$(COBJS)) |
Jason Liu | f5b81c8 | 2011-05-13 01:58:55 +0000 | [diff] [blame] | 18 | |
Fabio Estevam | fa4c18c | 2012-05-29 07:39:54 +0000 | [diff] [blame] | 19 | $(LIB): $(obj).depend $(OBJS) |
| 20 | $(call cmd_link_o_target, $(OBJS)) |
Jason Liu | f5b81c8 | 2011-05-13 01:58:55 +0000 | [diff] [blame] | 21 | |
Jason Liu | f5b81c8 | 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 | ######################################################################### |