Albert Aribaud | ce9c227 | 2010-06-17 19:38:21 +0530 | [diff] [blame] | 1 | # |
Albert ARIBAUD | 57b4bce | 2011-04-22 19:41:02 +0200 | [diff] [blame] | 2 | # Copyright (C) 2010 Albert ARIBAUD <albert.u.boot@aribaud.net> |
Albert Aribaud | ce9c227 | 2010-06-17 19:38:21 +0530 | [diff] [blame] | 3 | # |
| 4 | # Based on original Kirkwood support which is |
| 5 | # (C) Copyright 2009 |
| 6 | # Marvell Semiconductor <www.marvell.com> |
| 7 | # Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
| 8 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | # SPDX-License-Identifier: GPL-2.0+ |
Albert Aribaud | ce9c227 | 2010-06-17 19:38:21 +0530 | [diff] [blame] | 10 | # |
| 11 | |
| 12 | include $(TOPDIR)/config.mk |
Simon Guinot | 77ea071 | 2011-11-21 19:25:47 +0530 | [diff] [blame] | 13 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 14 | $(shell mkdir -p $(obj)../common) |
| 15 | endif |
Albert Aribaud | ce9c227 | 2010-06-17 19:38:21 +0530 | [diff] [blame] | 16 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 17 | LIB = $(obj)lib$(BOARD).o |
Albert Aribaud | ce9c227 | 2010-06-17 19:38:21 +0530 | [diff] [blame] | 18 | |
Simon Guinot | 77ea071 | 2011-11-21 19:25:47 +0530 | [diff] [blame] | 19 | COBJS := edminiv2.o ../common/common.o |
Albert Aribaud | ce9c227 | 2010-06-17 19:38:21 +0530 | [diff] [blame] | 20 | |
| 21 | SRCS := $(COBJS:.o=.c) |
| 22 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 23 | |
| 24 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 25 | $(call cmd_link_o_target, $(OBJS)) |
Albert Aribaud | ce9c227 | 2010-06-17 19:38:21 +0530 | [diff] [blame] | 26 | |
Albert Aribaud | ce9c227 | 2010-06-17 19:38:21 +0530 | [diff] [blame] | 27 | ######################################################################### |
| 28 | |
| 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |