John Schmoller | bfe1881 | 2010-10-22 00:20:34 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2007-2008 Freescale Semiconductor, Inc. |
| 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
John Schmoller | bfe1881 | 2010-10-22 00:20:34 -0500 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 9 | LIB = $(obj)lib$(BOARD).o |
John Schmoller | bfe1881 | 2010-10-22 00:20:34 -0500 | [diff] [blame] | 10 | |
| 11 | COBJS-y += $(BOARD).o |
| 12 | COBJS-y += ddr.o |
| 13 | COBJS-y += law.o |
| 14 | COBJS-y += tlb.o |
| 15 | |
| 16 | SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
| 17 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 18 | SOBJS := $(addprefix $(obj),$(SOBJS-y)) |
| 19 | |
| 20 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 21 | $(call cmd_link_o_target, $(OBJS)) |
John Schmoller | bfe1881 | 2010-10-22 00:20:34 -0500 | [diff] [blame] | 22 | |
John Schmoller | bfe1881 | 2010-10-22 00:20:34 -0500 | [diff] [blame] | 23 | ######################################################################### |
| 24 | |
| 25 | # defines $(obj).depend target |
| 26 | include $(SRCTREE)/rules.mk |
| 27 | |
| 28 | sinclude $(obj).depend |
| 29 | |
| 30 | ######################################################################### |