Nobuhiro Iwamatsu | 69df3c4 | 2007-05-13 21:01:03 +0900 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2007 |
| 3 | # Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 69df3c4 | 2007-05-13 21:01:03 +0900 | [diff] [blame] | 6 | # |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 9 | LIB = $(obj)lib$(BOARD).o |
Nobuhiro Iwamatsu | 69df3c4 | 2007-05-13 21:01:03 +0900 | [diff] [blame] | 10 | |
Nobuhiro Iwamatsu | 9e23fe0 | 2008-07-08 12:03:24 +0900 | [diff] [blame] | 11 | COBJS := ms7750se.o |
Nobuhiro Iwamatsu | 69df3c4 | 2007-05-13 21:01:03 +0900 | [diff] [blame] | 12 | SOBJS := lowlevel_init.o |
| 13 | |
Wolfgang Denk | a30cc5a | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 14 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 15 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 16 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 17 | |
Nobuhiro Iwamatsu | 69df3c4 | 2007-05-13 21:01:03 +0900 | [diff] [blame] | 18 | $(LIB): $(OBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 19 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Nobuhiro Iwamatsu | 69df3c4 | 2007-05-13 21:01:03 +0900 | [diff] [blame] | 20 | |
Wolfgang Denk | a30cc5a | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 21 | ######################################################################### |
Nobuhiro Iwamatsu | 69df3c4 | 2007-05-13 21:01:03 +0900 | [diff] [blame] | 22 | |
Wolfgang Denk | a30cc5a | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 23 | # defines $(obj).depend target |
| 24 | include $(SRCTREE)/rules.mk |
Nobuhiro Iwamatsu | 69df3c4 | 2007-05-13 21:01:03 +0900 | [diff] [blame] | 25 | |
Wolfgang Denk | a30cc5a | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 26 | sinclude $(obj).depend |
Nobuhiro Iwamatsu | 69df3c4 | 2007-05-13 21:01:03 +0900 | [diff] [blame] | 27 | |
Wolfgang Denk | a30cc5a | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 28 | ######################################################################### |