blob: 05cb635c9f18f227567d59be65ca404b4e145684 [file] [log] [blame]
Stefan Roeseb765ffb2007-06-15 08:18:01 +02001#
2# (C) Copyright 2002-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 Roeseb765ffb2007-06-15 08:18:01 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Stefan Roeseb765ffb2007-06-15 08:18:01 +020011
Stefan Roese3ad63872007-08-21 16:27:57 +020012COBJS = $(BOARD).o kbd.o sdram.o
Stefan Roeseb765ffb2007-06-15 08:18:01 +020013SOBJS = init.o
14
15SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
Wolfgang Denkee8028b2010-11-21 20:55:42 +010019all: $(LIB) $(SOBJS)
20
21$(LIB): $(OBJS)
22 $(call cmd_link_o_target, $^)
Stefan Roeseb765ffb2007-06-15 08:18:01 +020023
Stefan Roeseb765ffb2007-06-15 08:18:01 +020024#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################