Stephen Warren | 2996e2d | 2012-01-06 12:14:42 +0000 | [diff] [blame] | 1 | # |
| 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 | |
| 17 | include $(TOPDIR)/config.mk |
| 18 | |
Stephen Warren | 2996e2d | 2012-01-06 12:14:42 +0000 | [diff] [blame] | 19 | $(shell mkdir -p $(obj)../../nvidia/common) |
Stephen Warren | 2996e2d | 2012-01-06 12:14:42 +0000 | [diff] [blame] | 20 | |
| 21 | LIB = $(obj)lib$(BOARD).o |
| 22 | |
Marc Dietrich | 73286d8 | 2012-10-03 04:26:28 +0000 | [diff] [blame] | 23 | COBJS-y := $(BOARD).o |
Stephen Warren | 2996e2d | 2012-01-06 12:14:42 +0000 | [diff] [blame] | 24 | |
Marc Dietrich | 73286d8 | 2012-10-03 04:26:28 +0000 | [diff] [blame] | 25 | include ../../nvidia/common/common.mk |
| 26 | |
| 27 | COBJS := $(COBJS-y) |
Stephen Warren | 2996e2d | 2012-01-06 12:14:42 +0000 | [diff] [blame] | 28 | SRCS := $(COBJS:.o=.c) |
| 29 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 30 | |
| 31 | $(LIB): $(obj).depend $(OBJS) |
| 32 | $(call cmd_link_o_target, $(OBJS)) |
| 33 | |
| 34 | ######################################################################### |
| 35 | |
| 36 | # defines $(obj).depend target |
| 37 | include $(SRCTREE)/rules.mk |
| 38 | |
| 39 | sinclude $(obj).depend |
| 40 | |
| 41 | ######################################################################### |