Stephen Warren | a69a33d | 2012-05-16 13:54:07 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2010-2012 |
| 3 | # NVIDIA Corporation <www.nvidia.com> |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Stephen Warren | a69a33d | 2012-05-16 13:54:07 +0000 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Stephen Warren | a69a33d | 2012-05-16 13:54:07 +0000 | [diff] [blame] | 10 | $(shell mkdir -p $(obj)../../nvidia/common) |
Stephen Warren | a69a33d | 2012-05-16 13:54:07 +0000 | [diff] [blame] | 11 | |
| 12 | LIB = $(obj)lib$(BOARD).o |
| 13 | |
Marc Dietrich | 611ca64 | 2012-10-03 04:26:28 +0000 | [diff] [blame] | 14 | COBJS-y := $(BOARD).o |
| 15 | |
| 16 | include ../../nvidia/common/common.mk |
Stephen Warren | a69a33d | 2012-05-16 13:54:07 +0000 | [diff] [blame] | 17 | |
Marc Dietrich | 611ca64 | 2012-10-03 04:26:28 +0000 | [diff] [blame] | 18 | COBJS := $(COBJS-y) |
Stephen Warren | a69a33d | 2012-05-16 13:54:07 +0000 | [diff] [blame] | 19 | SRCS := $(COBJS:.o=.c) |
| 20 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 21 | |
| 22 | $(LIB): $(obj).depend $(OBJS) |
| 23 | $(call cmd_link_o_target, $(OBJS)) |
| 24 | |
| 25 | ######################################################################### |
| 26 | |
| 27 | # defines $(obj).depend target |
| 28 | include $(SRCTREE)/rules.mk |
| 29 | |
| 30 | sinclude $(obj).depend |
| 31 | |
| 32 | ######################################################################### |