Alessandro Rubini | bb930d1 | 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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | # SPDX-License-Identifier: GPL-2.0+ |
Alessandro Rubini | bb930d1 | 2009-01-24 18:10:37 +0100 | [diff] [blame] | 10 | # |
| 11 | |
| 12 | include $(TOPDIR)/config.mk |
| 13 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 14 | LIB = $(obj)lib$(BOARD).o |
Alessandro Rubini | bb930d1 | 2009-01-24 18:10:37 +0100 | [diff] [blame] | 15 | |
Alessandro Rubini | 42a9801 | 2009-06-22 09:18:37 +0200 | [diff] [blame] | 16 | COBJS := nhk8815.o |
Alessandro Rubini | 348c3c4 | 2011-04-16 07:49:40 +0000 | [diff] [blame] | 17 | SOBJS := |
Alessandro Rubini | bb930d1 | 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 | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 24 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Alessandro Rubini | bb930d1 | 2009-01-24 18:10:37 +0100 | [diff] [blame] | 25 | |
Alessandro Rubini | bb930d1 | 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 | ######################################################################### |