Nobuhiro Iwamatsu | 06d4c6d | 2012-06-21 14:55:07 +0900 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> |
| 3 | # (C) Copyright 2012 Renesas Solutions Corp. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 06d4c6d | 2012-06-21 14:55:07 +0900 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | LIB = $(obj)lib$(BOARD).o |
| 11 | |
| 12 | COBJS := kzm9g.o |
| 13 | |
| 14 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 15 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 16 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 17 | |
| 18 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 19 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
| 20 | |
| 21 | clean: |
| 22 | rm -f $(SOBJS) $(OBJS) |
| 23 | |
| 24 | distclean: clean |
| 25 | rm -f $(LIB) core *.bak $(obj) .depend |
| 26 | |
| 27 | ######################################################################### |
| 28 | |
| 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |