blob: f0023abe860ada51ff544e9054154976aa3fa6bf [file] [log] [blame]
Nobuhiro Iwamatsuf5e24662008-03-25 17:11:24 +09001#
2# Copyright (C) 2007,2008
3# Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsuf5e24662008-03-25 17:11:24 +09006#
7include $(TOPDIR)/config.mk
8
Sebastien Carlier6d8962e2010-11-05 15:48:07 +01009LIB = $(obj)lib$(BOARD).o
Nobuhiro Iwamatsuf5e24662008-03-25 17:11:24 +090010
Nobuhiro Iwamatsu9e23fe02008-07-08 12:03:24 +090011COBJS := r2dplus.o
Nobuhiro Iwamatsuf5e24662008-03-25 17:11:24 +090012SOBJS := lowlevel_init.o
13
Wolfgang Denka30cc5a2008-07-02 23:38:50 +020014SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
15OBJS := $(addprefix $(obj),$(COBJS))
16SOBJS := $(addprefix $(obj),$(SOBJS))
17
Nobuhiro Iwamatsuf5e24662008-03-25 17:11:24 +090018$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010019 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Nobuhiro Iwamatsuf5e24662008-03-25 17:11:24 +090020
Wolfgang Denka30cc5a2008-07-02 23:38:50 +020021#########################################################################
Nobuhiro Iwamatsuf5e24662008-03-25 17:11:24 +090022
Wolfgang Denka30cc5a2008-07-02 23:38:50 +020023# defines $(obj).depend target
24include $(SRCTREE)/rules.mk
Nobuhiro Iwamatsuf5e24662008-03-25 17:11:24 +090025
Wolfgang Denka30cc5a2008-07-02 23:38:50 +020026sinclude $(obj).depend
Nobuhiro Iwamatsuf5e24662008-03-25 17:11:24 +090027
Wolfgang Denka30cc5a2008-07-02 23:38:50 +020028#########################################################################