Simon Kagstrom | 258c330 | 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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 11 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Kagstrom | 258c330 | 2009-09-22 04:01:01 +0530 | [diff] [blame] | 12 | # |
| 13 | |
| 14 | include $(TOPDIR)/config.mk |
| 15 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 16 | LIB = $(obj)lib$(BOARD).o |
Simon Kagstrom | 258c330 | 2009-09-22 04:01:01 +0530 | [diff] [blame] | 17 | |
Clint Adams | 564dff7 | 2011-05-06 22:06:47 +0530 | [diff] [blame] | 18 | COBJS := openrd.o |
Simon Kagstrom | 258c330 | 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 | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 25 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Simon Kagstrom | 258c330 | 2009-09-22 04:01:01 +0530 | [diff] [blame] | 26 | |
Simon Kagstrom | 258c330 | 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 | ######################################################################### |