Nobuhiro Iwamatsu | 0d53a47 | 2008-08-31 22:45:08 +0900 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2008 Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> |
| 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 0d53a47 | 2008-08-31 22:45:08 +0900 | [diff] [blame] | 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 8 | LIB = $(obj)lib$(BOARD).o |
Nobuhiro Iwamatsu | 0d53a47 | 2008-08-31 22:45:08 +0900 | [diff] [blame] | 9 | |
| 10 | COBJS := sh7785lcr.o selfcheck.o rtl8169_mac.o |
| 11 | SOBJS := lowlevel_init.o |
| 12 | |
Nobuhiro Iwamatsu | e72f467 | 2011-02-03 16:27:45 +0900 | [diff] [blame] | 13 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 14 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 15 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 16 | |
| 17 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 18 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Nobuhiro Iwamatsu | 0d53a47 | 2008-08-31 22:45:08 +0900 | [diff] [blame] | 19 | |
Nobuhiro Iwamatsu | 0d53a47 | 2008-08-31 22:45:08 +0900 | [diff] [blame] | 20 | ######################################################################### |
| 21 | |
Nobuhiro Iwamatsu | 0d53a47 | 2008-08-31 22:45:08 +0900 | [diff] [blame] | 22 | # defines $(obj).depend target |
| 23 | include $(SRCTREE)/rules.mk |
| 24 | |
| 25 | sinclude $(obj).depend |
| 26 | |
| 27 | ######################################################################### |