blob: c2a4c4b67524f7bb1697f2dec8a786e13599e867 [file] [log] [blame]
Stefan Roese42fbddd2006-09-07 11:51:23 +02001#
2# (C) Copyright 2002-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Stefan Roese42fbddd2006-09-07 11:51:23 +02006#
7
8include $(TOPDIR)/config.mk
Stefan Roese42fbddd2006-09-07 11:51:23 +02009
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Stefan Roese42fbddd2006-09-07 11:51:23 +020011
Stefan Roeseef28e732009-10-19 16:19:36 +020012COBJS-y = $(BOARD).o sdram.o
13COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o
Stefan Roese42fbddd2006-09-07 11:51:23 +020014SOBJS = init.o
15
Stefan Roeseef28e732009-10-19 16:19:36 +020016COBJS := $(COBJS-y)
Stefan Roese42fbddd2006-09-07 11:51:23 +020017SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
20
Wolfgang Denkfe33e6e2010-11-21 20:55:42 +010021all: $(LIB) $(SOBJS)
22
23$(LIB): $(OBJS)
24 $(call cmd_link_o_target, $^)
Stefan Roese42fbddd2006-09-07 11:51:23 +020025
Stefan Roese42fbddd2006-09-07 11:51:23 +020026#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################