1*2996e2dcSStephen Warren# 2*2996e2dcSStephen Warren# Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved. 3*2996e2dcSStephen Warren# 4*2996e2dcSStephen Warren# See file CREDITS for list of people who contributed to this 5*2996e2dcSStephen Warren# project. 6*2996e2dcSStephen Warren# 7*2996e2dcSStephen Warren# This program is free software; you can redistribute it and/or modify it 8*2996e2dcSStephen Warren# under the terms and conditions of the GNU General Public License, 9*2996e2dcSStephen Warren# version 2, as published by the Free Software Foundation. 10*2996e2dcSStephen Warren# 11*2996e2dcSStephen Warren# This program is distributed in the hope it will be useful, but WITHOUT 12*2996e2dcSStephen Warren# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13*2996e2dcSStephen Warren# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 14*2996e2dcSStephen Warren# more details. 15*2996e2dcSStephen Warren# 16*2996e2dcSStephen Warren 17*2996e2dcSStephen Warreninclude $(TOPDIR)/config.mk 18*2996e2dcSStephen Warren 19*2996e2dcSStephen Warrenifneq ($(OBJTREE),$(SRCTREE)) 20*2996e2dcSStephen Warren$(shell mkdir -p $(obj)../../nvidia/common) 21*2996e2dcSStephen Warrenendif 22*2996e2dcSStephen Warren 23*2996e2dcSStephen WarrenLIB = $(obj)lib$(BOARD).o 24*2996e2dcSStephen Warren 25*2996e2dcSStephen WarrenCOBJS := $(BOARD).o 26*2996e2dcSStephen WarrenCOBJS += ../../nvidia/common/board.o 27*2996e2dcSStephen Warren 28*2996e2dcSStephen WarrenSRCS := $(COBJS:.o=.c) 29*2996e2dcSStephen WarrenOBJS := $(addprefix $(obj),$(COBJS)) 30*2996e2dcSStephen Warren 31*2996e2dcSStephen Warren$(LIB): $(obj).depend $(OBJS) 32*2996e2dcSStephen Warren $(call cmd_link_o_target, $(OBJS)) 33*2996e2dcSStephen Warren 34*2996e2dcSStephen Warren######################################################################### 35*2996e2dcSStephen Warren 36*2996e2dcSStephen Warren# defines $(obj).depend target 37*2996e2dcSStephen Warreninclude $(SRCTREE)/rules.mk 38*2996e2dcSStephen Warren 39*2996e2dcSStephen Warrensinclude $(obj).depend 40*2996e2dcSStephen Warren 41*2996e2dcSStephen Warren######################################################################### 42