blob: 31127f082bf241c84e080f392f17c7ae8065281f [file] [log] [blame]
Ilya Yanokbc8f8c22010-09-17 23:41:50 +02001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4# (C) Copyright 2010
5# Ilya Yanok, Emcraft Systems, yanok@emcraft.com
6#
Wolfgang Denk1a459662013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Ilya Yanokbc8f8c22010-09-17 23:41:50 +02008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
Ilya Yanokbc8f8c22010-09-17 23:41:50 +020013
14COBJS := $(BOARD).o sdram.o
15
16SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS))
18SOBJS := $(addprefix $(obj),$(SOBJS))
19
20$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS))
Ilya Yanokbc8f8c22010-09-17 23:41:50 +020022
Ilya Yanokbc8f8c22010-09-17 23:41:50 +020023#########################################################################
24
25# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude $(obj).depend
29
30#########################################################################