blob: 415ec3298f9229c07a60c2a995674b176662c69d [file] [log] [blame]
Dirk Eibachab4c62c2009-07-27 08:49:48 +02001#
2# (C) Copyright 2008
3# Stefan Roese, DENX Software Engineering, sr@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Dirk Eibachab4c62c2009-07-27 08:49:48 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Dirk Eibachab4c62c2009-07-27 08:49:48 +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 Denkee8028b2010-11-21 20:55:42 +010021all: $(LIB) $(SOBJS)
22
23$(LIB): $(OBJS)
24 $(call cmd_link_o_target, $^)
Dirk Eibachab4c62c2009-07-27 08:49:48 +020025
Dirk Eibachab4c62c2009-07-27 08:49:48 +020026#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################