1*445a886dSMacpaul Lin# 2*445a886dSMacpaul Lin# (C) Copyright 2009 3*445a886dSMacpaul Lin# Marvell Semiconductor <www.marvell.com> 4*445a886dSMacpaul Lin# Written-by: Prafulla Wadaskar <prafulla@marvell.com> 5*445a886dSMacpaul Lin# 6*445a886dSMacpaul Lin# Copyright (C) 2011 Andes Technology Corporation 7*445a886dSMacpaul Lin# Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com> 8*445a886dSMacpaul Lin# Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com> 9*445a886dSMacpaul Lin# 10*445a886dSMacpaul Lin# See file CREDITS for list of people who contributed to this 11*445a886dSMacpaul Lin# project. 12*445a886dSMacpaul Lin# 13*445a886dSMacpaul Lin# This program is free software; you can redistribute it and/or 14*445a886dSMacpaul Lin# modify it under the terms of the GNU General Public License as 15*445a886dSMacpaul Lin# published by the Free Software Foundation; either version 2 of 16*445a886dSMacpaul Lin# the License, or (at your option) any later version. 17*445a886dSMacpaul Lin# 18*445a886dSMacpaul Lin# This program is distributed in the hope that it will be useful, 19*445a886dSMacpaul Lin# but WITHOUT ANY WARRANTY; without even the implied warranty of 20*445a886dSMacpaul Lin# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21*445a886dSMacpaul Lin# GNU General Public License for more details. 22*445a886dSMacpaul Lin# 23*445a886dSMacpaul Lin# You should have received a copy of the GNU General Public License 24*445a886dSMacpaul Lin# along with this program; if not, write to the Free Software 25*445a886dSMacpaul Lin# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 26*445a886dSMacpaul Lin# MA 02110-1301 USA 27*445a886dSMacpaul Lin# 28*445a886dSMacpaul Lin 29*445a886dSMacpaul Lininclude $(TOPDIR)/config.mk 30*445a886dSMacpaul Lin 31*445a886dSMacpaul LinLIB = $(obj)lib$(SOC).o 32*445a886dSMacpaul Lin 33*445a886dSMacpaul LinCOBJS-y := cpu.o timer.o 34*445a886dSMacpaul Lin 35*445a886dSMacpaul Linifndef CONFIG_SKIP_LOWLEVEL_INIT 36*445a886dSMacpaul LinSOBJS := lowlevel_init.o 37*445a886dSMacpaul Linendif 38*445a886dSMacpaul Lin 39*445a886dSMacpaul Linifndef CONFIG_SKIP_TRUNOFF_WATCHDOG 40*445a886dSMacpaul LinSOBJS += watchdog.o 41*445a886dSMacpaul Linendif 42*445a886dSMacpaul Lin 43*445a886dSMacpaul LinSRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) 44*445a886dSMacpaul LinOBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y)) 45*445a886dSMacpaul Lin 46*445a886dSMacpaul Linall: $(obj).depend $(LIB) 47*445a886dSMacpaul Lin 48*445a886dSMacpaul Lin$(LIB): $(OBJS) 49*445a886dSMacpaul Lin $(call cmd_link_o_target, $(OBJS)) 50*445a886dSMacpaul Lin 51*445a886dSMacpaul Lin######################################################################### 52*445a886dSMacpaul Lin 53*445a886dSMacpaul Lin# defines $(obj).depend target 54*445a886dSMacpaul Lininclude $(SRCTREE)/rules.mk 55*445a886dSMacpaul Lin 56*445a886dSMacpaul Linsinclude $(obj).depend 57*445a886dSMacpaul Lin 58*445a886dSMacpaul Lin######################################################################### 59