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