Albert ARIBAUD | 1e5b995 | 2012-11-26 11:27:37 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011 Simon Guinot <sguinot@lacie.com> |
| 3 | # |
| 4 | # Based on Kirkwood support: |
| 5 | # (C) Copyright 2009 |
| 6 | # Marvell Semiconductor <www.marvell.com> |
| 7 | # Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
| 8 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | # SPDX-License-Identifier: GPL-2.0+ |
Albert ARIBAUD | 1e5b995 | 2012-11-26 11:27:37 +0000 | [diff] [blame] | 10 | # |
| 11 | |
| 12 | include $(TOPDIR)/config.mk |
| 13 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 14 | $(shell mkdir -p $(obj)../common) |
| 15 | endif |
| 16 | |
| 17 | LIB = $(obj)lib$(BOARD).o |
| 18 | |
| 19 | COBJS := $(BOARD).o ../common/common.o |
| 20 | |
| 21 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 22 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 23 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 24 | |
| 25 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 26 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
| 27 | |
| 28 | ######################################################################### |
| 29 | |
| 30 | # defines $(obj).depend target |
| 31 | include $(SRCTREE)/rules.mk |
| 32 | |
| 33 | sinclude $(obj).depend |
| 34 | |
| 35 | ######################################################################### |