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