blob: 851859d0456cb5a2f2d933989442fea88087d326 [file] [log] [blame]
Stefan Roesea4c8d132006-06-02 16:18:04 +02001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Stefan Roesea4c8d132006-06-02 16:18:04 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Stefan Roesea4c8d132006-06-02 16:18:04 +020011
Marian Balakowiczf9328632006-09-01 19:49:50 +020012COBJS = $(BOARD).o flash.o
Stefan Roesea4c8d132006-06-02 16:18:04 +020013SOBJS = init.o
14
Marian Balakowiczf9328632006-09-01 19:49:50 +020015SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
Stefan Roesea4c8d132006-06-02 16:18:04 +020019$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS))
Stefan Roesea4c8d132006-06-02 16:18:04 +020021
Stefan Roesea4c8d132006-06-02 16:18:04 +020022#########################################################################
23
Marian Balakowiczf9328632006-09-01 19:49:50 +020024# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
Stefan Roesea4c8d132006-06-02 16:18:04 +020026
Marian Balakowiczf9328632006-09-01 19:49:50 +020027sinclude $(obj).depend
Stefan Roesea4c8d132006-06-02 16:18:04 +020028
29#########################################################################