Sergei Poselenov | 5d108ac | 2008-04-30 11:42:50 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2008 |
| 3 | # Sergei Poselenov, Emcraft Systems, sposelenov@emcraft.com. |
| 4 | # (C) Copyright 2001-2006 |
| 5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
Sergei Poselenov | 5d108ac | 2008-04-30 11:42:50 +0200 | [diff] [blame] | 8 | # |
| 9 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 12 | LIB = $(obj)lib$(BOARD).o |
Sergei Poselenov | 5d108ac | 2008-04-30 11:42:50 +0200 | [diff] [blame] | 13 | # |
| 14 | |
Kumar Gala | be0bd82 | 2008-08-26 22:56:56 -0500 | [diff] [blame] | 15 | COBJS-y += $(BOARD).o |
| 16 | COBJS-y += law.o |
| 17 | COBJS-y += tlb.o |
| 18 | COBJS-y += nand.o |
| 19 | COBJS-y += sdram.o |
| 20 | COBJS-$(CONFIG_FSL_DDR2) += ddr.o |
Sergei Poselenov | 5d108ac | 2008-04-30 11:42:50 +0200 | [diff] [blame] | 21 | |
Kumar Gala | be0bd82 | 2008-08-26 22:56:56 -0500 | [diff] [blame] | 22 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 23 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
Sergei Poselenov | 5d108ac | 2008-04-30 11:42:50 +0200 | [diff] [blame] | 24 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 25 | |
| 26 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 27 | $(call cmd_link_o_target, $(OBJS)) |
Sergei Poselenov | 5d108ac | 2008-04-30 11:42:50 +0200 | [diff] [blame] | 28 | |
Sergei Poselenov | 5d108ac | 2008-04-30 11:42:50 +0200 | [diff] [blame] | 29 | ######################################################################### |
| 30 | |
| 31 | # defines $(obj).depend target |
| 32 | include $(SRCTREE)/rules.mk |
| 33 | |
| 34 | sinclude $(obj).depend |
| 35 | |
| 36 | ######################################################################### |