York Sun | 667ab1a | 2012-10-11 07:13:37 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2012 Freescale Semiconductor, Inc. |
| 3 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
York Sun | 667ab1a | 2012-10-11 07:13:37 +0000 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
| 9 | LIB = $(obj)lib$(BOARD).o |
| 10 | |
York Sun | 9b85a48 | 2013-06-27 10:48:29 -0700 | [diff] [blame^] | 11 | COBJS-$(CONFIG_T4240QDS) += t4240qds.o |
| 12 | COBJS-$(CONFIG_T4240EMU) += t4240emu.o |
York Sun | 667ab1a | 2012-10-11 07:13:37 +0000 | [diff] [blame] | 13 | COBJS-y += ddr.o |
| 14 | COBJS-$(CONFIG_T4240QDS)+= eth.o |
| 15 | COBJS-$(CONFIG_PCI) += pci.o |
| 16 | COBJS-y += law.o |
| 17 | COBJS-y += tlb.o |
| 18 | |
| 19 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 20 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 21 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 22 | |
| 23 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 24 | $(call cmd_link_o_target, $(OBJS)) |
| 25 | |
| 26 | clean: |
| 27 | rm -f $(OBJS) $(SOBJS) |
| 28 | |
| 29 | distclean: clean |
| 30 | rm -f $(LIB) core *.bak .depend |
| 31 | |
| 32 | ######################################################################### |
| 33 | |
| 34 | # defines $(obj).depend target |
| 35 | include $(SRCTREE)/rules.mk |
| 36 | |
| 37 | sinclude $(obj).depend |
| 38 | |
| 39 | ######################################################################### |