15628fb75SSimon Guinot# 25628fb75SSimon Guinot# Copyright (C) 2011 Simon Guinot <sguinot@lacie.com> 35628fb75SSimon Guinot# 45628fb75SSimon Guinot# Based on Kirkwood support: 55628fb75SSimon Guinot# (C) Copyright 2009 65628fb75SSimon Guinot# Marvell Semiconductor <www.marvell.com> 75628fb75SSimon Guinot# Written-by: Prafulla Wadaskar <prafulla@marvell.com> 85628fb75SSimon Guinot# 95628fb75SSimon Guinot# See file CREDITS for list of people who contributed to this 105628fb75SSimon Guinot# project. 115628fb75SSimon Guinot# 125628fb75SSimon Guinot# This program is free software; you can redistribute it and/or 135628fb75SSimon Guinot# modify it under the terms of the GNU General Public License as 145628fb75SSimon Guinot# published by the Free Software Foundation; either version 2 of 155628fb75SSimon Guinot# the License, or (at your option) any later version. 165628fb75SSimon Guinot# 175628fb75SSimon Guinot# This program is distributed in the hope that it will be useful, 185628fb75SSimon Guinot# but WITHOUT ANY WARRANTY; without even the implied warranty of 195628fb75SSimon Guinot# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 205628fb75SSimon Guinot# GNU General Public License for more details. 215628fb75SSimon Guinot# 225628fb75SSimon Guinot 235628fb75SSimon Guinotinclude $(TOPDIR)/config.mk 2477ea071fSSimon Guinotifneq ($(OBJTREE),$(SRCTREE)) 2577ea071fSSimon Guinot$(shell mkdir -p $(obj)../common) 2677ea071fSSimon Guinotendif 275628fb75SSimon Guinot 285628fb75SSimon GuinotLIB = $(obj)lib$(BOARD).o 295628fb75SSimon Guinot 3077ea071fSSimon GuinotCOBJS := $(BOARD).o ../common/common.o 31*7737c994SSimon Guinotifneq ($(and $(CONFIG_KIRKWOOD_GPIO),$(CONFIG_NET2BIG_V2)),) 32*7737c994SSimon GuinotCOBJS += ../common/cpld-gpio-bus.o 33*7737c994SSimon Guinotendif 345628fb75SSimon Guinot 355628fb75SSimon GuinotSRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 365628fb75SSimon GuinotOBJS := $(addprefix $(obj),$(COBJS)) 375628fb75SSimon GuinotSOBJS := $(addprefix $(obj),$(SOBJS)) 385628fb75SSimon Guinot 395628fb75SSimon Guinot$(LIB): $(obj).depend $(OBJS) $(SOBJS) 405628fb75SSimon Guinot $(call cmd_link_o_target, $(OBJS) $(SOBJS)) 415628fb75SSimon Guinot 425628fb75SSimon Guinotclean: 435628fb75SSimon Guinot rm -f $(SOBJS) $(OBJS) 445628fb75SSimon Guinot 455628fb75SSimon Guinotdistclean: clean 465628fb75SSimon Guinot rm -f $(LIB) core *.bak .depend 475628fb75SSimon Guinot 485628fb75SSimon Guinot######################################################################### 495628fb75SSimon Guinot 505628fb75SSimon Guinot# defines $(obj).depend target 515628fb75SSimon Guinotinclude $(SRCTREE)/rules.mk 525628fb75SSimon Guinot 535628fb75SSimon Guinotsinclude $(obj).depend 545628fb75SSimon Guinot 555628fb75SSimon Guinot######################################################################### 56