blob: 093457f591dd968498744d8cad62eb90084cae01 [file] [log] [blame]
Stefan Roese34447422010-05-19 11:11:15 +02001#
2# (C) Copyright 2010
3# Stefan Roese, DENX Software Engineering, sr@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Stefan Roese34447422010-05-19 11:11:15 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Stefan Roese34447422010-05-19 11:11:15 +020011
12COBJS-y := $(BOARD).o
13COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o
14SOBJS := init.o
15
16COBJS := $(COBJS-y)
17SRCS := $(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 Roese34447422010-05-19 11:11:15 +020025
Stefan Roese34447422010-05-19 11:11:15 +020026#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################