Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2010,2011 Nvidia Corporation. |
| 3 | # |
| 4 | # (C) Copyright 2000-2003 |
| 5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 8 | # |
| 9 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
| 12 | LIB = $(obj)lib$(SOC).o |
| 13 | |
Simon Glass | e1ae0d1 | 2012-10-17 13:24:49 +0000 | [diff] [blame] | 14 | COBJS-$(CONFIG_PWM_TEGRA) += pwm.o |
Wei Ni | 87540de | 2012-10-17 13:24:50 +0000 | [diff] [blame] | 15 | COBJS-$(CONFIG_VIDEO_TEGRA) += display.o |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 16 | |
Simon Glass | 87f938c | 2012-02-27 10:52:49 +0000 | [diff] [blame] | 17 | COBJS := $(COBJS-y) |
Allen Martin | d9e73a8 | 2012-08-31 08:30:01 +0000 | [diff] [blame] | 18 | SRCS := $(COBJS:.o=.c) |
| 19 | OBJS := $(addprefix $(obj),$(COBJS)) |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 20 | |
| 21 | all: $(obj).depend $(LIB) |
| 22 | |
| 23 | $(LIB): $(OBJS) |
Mike Frysinger | 26ddff2 | 2011-10-18 05:30:17 +0000 | [diff] [blame] | 24 | $(call cmd_link_o_target, $(OBJS)) |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 25 | |
| 26 | ######################################################################### |
| 27 | |
| 28 | # defines $(obj).depend target |
| 29 | include $(SRCTREE)/rules.mk |
| 30 | |
| 31 | sinclude $(obj).depend |
| 32 | |
| 33 | ######################################################################### |