Prabhakar Kushwaha | 7d43607 | 2013-09-12 11:11:28 +0530 | [diff] [blame^] | 1 | # |
| 2 | # Copyright 2013 Freescale Semiconductor, Inc. |
| 3 | # |
| 4 | # SPDX-License-Identifier: GPL-2.0+ |
| 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-$(CONFIG_PCI) += pci.o |
| 14 | COBJS-y += law.o |
| 15 | COBJS-y += tlb.o |
| 16 | |
| 17 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 18 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 19 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 20 | |
| 21 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 22 | $(call cmd_link_o_target, $(OBJS)) |
| 23 | |
| 24 | clean: |
| 25 | rm -f $(OBJS) $(SOBJS) |
| 26 | |
| 27 | distclean: clean |
| 28 | rm -f $(LIB) core *.bak .depend |
| 29 | |
| 30 | ######################################################################### |
| 31 | |
| 32 | # defines $(obj).depend target |
| 33 | include $(SRCTREE)/rules.mk |
| 34 | |
| 35 | sinclude $(obj).depend |
| 36 | |
| 37 | ######################################################################### |