blob: 4ee8e5baf3670e9c9099dca27487e84f497cdcf5 [file] [log] [blame]
Tom Warren3f82b1d2011-01-27 10:58:05 +00001#
2# (C) Copyright 2010,2011 Nvidia Corporation.
3#
4# (C) Copyright 2000-2003
5# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6#
Wolfgang Denk1a459662013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Tom Warren3f82b1d2011-01-27 10:58:05 +00008#
9
10include $(TOPDIR)/config.mk
11
12LIB = $(obj)lib$(SOC).o
13
Simon Glasse1ae0d12012-10-17 13:24:49 +000014COBJS-$(CONFIG_PWM_TEGRA) += pwm.o
Wei Ni87540de2012-10-17 13:24:50 +000015COBJS-$(CONFIG_VIDEO_TEGRA) += display.o
Tom Warren3f82b1d2011-01-27 10:58:05 +000016
Simon Glass87f938c2012-02-27 10:52:49 +000017COBJS := $(COBJS-y)
Allen Martind9e73a82012-08-31 08:30:01 +000018SRCS := $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
Tom Warren3f82b1d2011-01-27 10:58:05 +000020
21all: $(obj).depend $(LIB)
22
23$(LIB): $(OBJS)
Mike Frysinger26ddff22011-10-18 05:30:17 +000024 $(call cmd_link_o_target, $(OBJS))
Tom Warren3f82b1d2011-01-27 10:58:05 +000025
26#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################