blob: 415ec3298f9229c07a60c2a995674b176662c69d [file] [log] [blame]
Stefan Roese105350e2008-03-11 16:51:17 +01001#
2# (C) Copyright 2008
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 Roese105350e2008-03-11 16:51:17 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Stefan Roese105350e2008-03-11 16:51:17 +010011
Stefan Roese9693c3d2009-07-20 06:57:27 +020012COBJS-y := $(BOARD).o
13COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o
Stefan Roese105350e2008-03-11 16:51:17 +010014SOBJS := init.o
15
Stefan Roese9693c3d2009-07-20 06:57:27 +020016COBJS := $(COBJS-y)
Stefan Roese105350e2008-03-11 16:51:17 +010017SRCS := $(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 Roese105350e2008-03-11 16:51:17 +010025
Stefan Roese105350e2008-03-11 16:51:17 +010026#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################