Ira W. Snyder | 9839709 | 2011-11-23 08:25:58 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2009 Freescale Semiconductor, Inc. |
| 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Ira W. Snyder | 9839709 | 2011-11-23 08:25:58 -0800 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
| 9 | LIB = $(obj)lib$(BOARD).o |
| 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:.o=.S) $(COBJS-y:.o=.c) |
| 17 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 18 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 19 | |
| 20 | $(LIB): $(obj).depend $(OBJS) |
| 21 | $(call cmd_link_o_target, $(OBJS)) |
| 22 | |
| 23 | ######################################################################### |
| 24 | |
| 25 | # defines $(obj).depend target |
| 26 | include $(SRCTREE)/rules.mk |
| 27 | |
| 28 | sinclude $(obj).depend |
| 29 | |
| 30 | ######################################################################### |