blob: 05cb635c9f18f227567d59be65ca404b4e145684 [file] [log] [blame]
Stefan Roeseade5a512007-06-15 08:18:01 +02001#
2# (C) Copyright 2002-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Stefan Roeseade5a512007-06-15 08:18:01 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Stefan Roeseade5a512007-06-15 08:18:01 +020011
Stefan Roesef55a22c2007-08-21 16:27:57 +020012COBJS = $(BOARD).o kbd.o sdram.o
Stefan Roeseade5a512007-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 Denkfe33e6e2010-11-21 20:55:42 +010019all: $(LIB) $(SOBJS)
20
21$(LIB): $(OBJS)
22 $(call cmd_link_o_target, $^)
Stefan Roeseade5a512007-06-15 08:18:01 +020023
Stefan Roeseade5a512007-06-15 08:18:01 +020024#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################