Xie Xiaobo | 49f5bef | 2013-06-24 15:01:30 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2013 Freescale Semiconductor, Inc. |
| 3 | # |
York Sun | 3aab0cd | 2013-08-12 14:57:12 -0700 | [diff] [blame^] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Xie Xiaobo | 49f5bef | 2013-06-24 15:01:30 +0800 | [diff] [blame] | 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
| 8 | LIB = $(obj)lib$(BOARD).o |
| 9 | |
| 10 | COBJS-y += $(BOARD).o |
| 11 | COBJS-y += ddr.o |
| 12 | COBJS-y += law.o |
| 13 | COBJS-y += tlb.o |
| 14 | |
| 15 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 16 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 17 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 18 | |
| 19 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 20 | $(call cmd_link_o_target, $(OBJS)) |
| 21 | |
| 22 | clean: |
| 23 | rm -f $(OBJS) $(SOBJS) |
| 24 | |
| 25 | distclean: clean |
| 26 | rm -f $(LIB) core *.bak .depend |
| 27 | |
| 28 | ######################################################################### |
| 29 | |
| 30 | # defines $(obj).depend target |
| 31 | include $(SRCTREE)/rules.mk |
| 32 | |
| 33 | sinclude $(obj).depend |
| 34 | |
| 35 | ######################################################################### |