blob: 289b3796ad5eeceb7b41addb29a150d34f85ad12 [file] [log] [blame]
Tirumala Marrid0e66652010-09-28 14:15:21 -07001#
2# Copyright (c) 2010, Applied Micro Circuits Corporation
3# Author: Tirumala R Marri <tmarri@apm.com>
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Tirumala Marrid0e66652010-09-28 14:15:21 -07006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Tirumala Marrid0e66652010-09-28 14:15:21 -070011
12COBJS-y := $(BOARD).o
13SOBJS := init.o
14
15COBJS := $(COBJS-y)
16SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS))
18SOBJS := $(addprefix $(obj),$(SOBJS))
19
Wolfgang Denkee8028b2010-11-21 20:55:42 +010020all: $(LIB) $(SOBJS)
21
22$(LIB): $(OBJS)
23 $(call cmd_link_o_target, $^)
Tirumala Marrid0e66652010-09-28 14:15:21 -070024
Tirumala Marrid0e66652010-09-28 14:15:21 -070025#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################