Simon Kagstrom | e92daeb | 2009-09-22 04:01:01 +0530 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2009 |
| 3 | # Net Insight <www.netinsight.net> |
| 4 | # Written-by: Simon Kagstrom <simon.kagstrom@netinsight.net> |
| 5 | # |
| 6 | # Based on sheevaplug: |
| 7 | # (C) Copyright 2009 |
| 8 | # Marvell Semiconductor <www.marvell.com> |
| 9 | # Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
| 10 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 11 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Kagstrom | e92daeb | 2009-09-22 04:01:01 +0530 | [diff] [blame] | 12 | # |
| 13 | |
| 14 | include $(TOPDIR)/config.mk |
| 15 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 16 | LIB = $(obj)lib$(BOARD).o |
Simon Kagstrom | e92daeb | 2009-09-22 04:01:01 +0530 | [diff] [blame] | 17 | |
Clint Adams | f846604 | 2011-05-06 22:06:47 +0530 | [diff] [blame] | 18 | COBJS := openrd.o |
Simon Kagstrom | e92daeb | 2009-09-22 04:01:01 +0530 | [diff] [blame] | 19 | |
| 20 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 21 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 22 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 23 | |
| 24 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 25 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Simon Kagstrom | e92daeb | 2009-09-22 04:01:01 +0530 | [diff] [blame] | 26 | |
Simon Kagstrom | e92daeb | 2009-09-22 04:01:01 +0530 | [diff] [blame] | 27 | ######################################################################### |
| 28 | |
| 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |