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