Alessandro Rubini | d5254f1 | 2009-01-24 18:10:37 +0100 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2004 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # (C) Copyright 2004 |
| 6 | # ARM Ltd. |
| 7 | # Philippe Robin, <philippe.robin@arm.com> |
| 8 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 9 | # SPDX-License-Identifier: GPL-2.0+ |
Alessandro Rubini | d5254f1 | 2009-01-24 18:10:37 +0100 | [diff] [blame] | 10 | # |
| 11 | |
| 12 | include $(TOPDIR)/config.mk |
| 13 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 14 | LIB = $(obj)lib$(BOARD).o |
Alessandro Rubini | d5254f1 | 2009-01-24 18:10:37 +0100 | [diff] [blame] | 15 | |
Alessandro Rubini | ee1363f | 2009-06-22 09:18:37 +0200 | [diff] [blame] | 16 | COBJS := nhk8815.o |
Alessandro Rubini | cb8948e | 2011-04-16 07:49:40 +0000 | [diff] [blame] | 17 | SOBJS := |
Alessandro Rubini | d5254f1 | 2009-01-24 18:10:37 +0100 | [diff] [blame] | 18 | |
| 19 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 20 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 21 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 22 | |
| 23 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 24 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Alessandro Rubini | d5254f1 | 2009-01-24 18:10:37 +0100 | [diff] [blame] | 25 | |
Alessandro Rubini | d5254f1 | 2009-01-24 18:10:37 +0100 | [diff] [blame] | 26 | ######################################################################### |
| 27 | |
| 28 | # defines $(obj).depend target |
| 29 | include $(SRCTREE)/rules.mk |
| 30 | |
| 31 | sinclude $(obj).depend |
| 32 | |
| 33 | ######################################################################### |