167fa8c25SHeiko Schocher# 267fa8c25SHeiko Schocher# (C) Copyright 2009 367fa8c25SHeiko Schocher# Marvell Semiconductor <www.marvell.com> 467fa8c25SHeiko Schocher# Prafulla Wadaskar <prafulla@marvell.com> 567fa8c25SHeiko Schocher# 667fa8c25SHeiko Schocher# See file CREDITS for list of people who contributed to this 767fa8c25SHeiko Schocher# project. 867fa8c25SHeiko Schocher# 967fa8c25SHeiko Schocher# This program is free software; you can redistribute it and/or 1067fa8c25SHeiko Schocher# modify it under the terms of the GNU General Public License as 1167fa8c25SHeiko Schocher# published by the Free Software Foundation; either version 2 of 1267fa8c25SHeiko Schocher# the License, or (at your option) any later version. 1367fa8c25SHeiko Schocher# 1467fa8c25SHeiko Schocher# This program is distributed in the hope that it will be useful, 1567fa8c25SHeiko Schocher# but WITHOUT ANY WARRANTY; without even the implied warranty of 1667fa8c25SHeiko Schocher# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1767fa8c25SHeiko Schocher# GNU General Public License for more details. 1867fa8c25SHeiko Schocher# 1967fa8c25SHeiko Schocher# You should have received a copy of the GNU General Public License 2067fa8c25SHeiko Schocher# along with this program; if not, write to the Free Software 2167fa8c25SHeiko Schocher# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 2267fa8c25SHeiko Schocher# MA 02110-1301 USA 2367fa8c25SHeiko Schocher# 2467fa8c25SHeiko Schocher 2567fa8c25SHeiko Schocherinclude $(TOPDIR)/config.mk 26*cc0b53c8SHeiko Schocherifneq ($(OBJTREE),$(SRCTREE)) 27*cc0b53c8SHeiko Schocher$(shell mkdir -p $(obj)../common) 28*cc0b53c8SHeiko Schocherendif 2967fa8c25SHeiko Schocher 3067fa8c25SHeiko SchocherLIB = $(obj)lib$(BOARD).a 3167fa8c25SHeiko Schocher 3267fa8c25SHeiko SchocherCOBJS := $(BOARD).o ../common/common.o 3367fa8c25SHeiko Schocher 3467fa8c25SHeiko SchocherSRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 3567fa8c25SHeiko SchocherOBJS := $(addprefix $(obj),$(COBJS)) 3667fa8c25SHeiko SchocherSOBJS := $(addprefix $(obj),$(SOBJS)) 3767fa8c25SHeiko Schocher 3867fa8c25SHeiko Schocher$(LIB): $(obj).depend $(OBJS) $(SOBJS) 3967fa8c25SHeiko Schocher $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) 4067fa8c25SHeiko Schocher 4167fa8c25SHeiko Schocherclean: 4267fa8c25SHeiko Schocher rm -f $(SOBJS) $(OBJS) 4367fa8c25SHeiko Schocher 4467fa8c25SHeiko Schocherdistclean: clean 4567fa8c25SHeiko Schocher rm -f $(LIB) core *.bak .depend 4667fa8c25SHeiko Schocher 4767fa8c25SHeiko Schocher######################################################################### 4867fa8c25SHeiko Schocher 4967fa8c25SHeiko Schocher# defines $(obj).depend target 5067fa8c25SHeiko Schocherinclude $(SRCTREE)/rules.mk 5167fa8c25SHeiko Schocher 5267fa8c25SHeiko Schochersinclude $(obj).depend 5367fa8c25SHeiko Schocher 5467fa8c25SHeiko Schocher######################################################################### 55