xref: /openbmc/u-boot/drivers/watchdog/Makefile (revision abbab703)
1843a2654SJean-Christophe PLAGNIOL-VILLARD#
2843a2654SJean-Christophe PLAGNIOL-VILLARD# (C) Copyright 2008
3843a2654SJean-Christophe PLAGNIOL-VILLARD# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4843a2654SJean-Christophe PLAGNIOL-VILLARD#
5843a2654SJean-Christophe PLAGNIOL-VILLARD# See file CREDITS for list of people who contributed to this
6843a2654SJean-Christophe PLAGNIOL-VILLARD# project.
7843a2654SJean-Christophe PLAGNIOL-VILLARD#
8843a2654SJean-Christophe PLAGNIOL-VILLARD# This program is free software; you can redistribute it and/or
9843a2654SJean-Christophe PLAGNIOL-VILLARD# modify it under the terms of the GNU General Public License as
10843a2654SJean-Christophe PLAGNIOL-VILLARD# published by the Free Software Foundation; either version 2 of
11843a2654SJean-Christophe PLAGNIOL-VILLARD# the License, or (at your option) any later version.
12843a2654SJean-Christophe PLAGNIOL-VILLARD#
13843a2654SJean-Christophe PLAGNIOL-VILLARD# This program is distributed in the hope that it will be useful,
14843a2654SJean-Christophe PLAGNIOL-VILLARD# but WITHOUT ANY WARRANTY; without even the implied warranty of
15843a2654SJean-Christophe PLAGNIOL-VILLARD# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
16843a2654SJean-Christophe PLAGNIOL-VILLARD# GNU General Public License for more details.
17843a2654SJean-Christophe PLAGNIOL-VILLARD#
18843a2654SJean-Christophe PLAGNIOL-VILLARD# You should have received a copy of the GNU General Public License
19843a2654SJean-Christophe PLAGNIOL-VILLARD# along with this program; if not, write to the Free Software
20843a2654SJean-Christophe PLAGNIOL-VILLARD# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21843a2654SJean-Christophe PLAGNIOL-VILLARD# MA 02111-1307 USA
22843a2654SJean-Christophe PLAGNIOL-VILLARD#
23843a2654SJean-Christophe PLAGNIOL-VILLARD
24843a2654SJean-Christophe PLAGNIOL-VILLARDinclude $(TOPDIR)/config.mk
25843a2654SJean-Christophe PLAGNIOL-VILLARD
266d8962e8SSebastien CarlierLIB	:= $(obj)libwatchdog.o
27843a2654SJean-Christophe PLAGNIOL-VILLARD
28843a2654SJean-Christophe PLAGNIOL-VILLARDCOBJS-$(CONFIG_AT91SAM9_WATCHDOG) += at91sam9_wdt.o
299096963cSMacpaul LinCOBJS-$(CONFIG_FTWDT010_WATCHDOG) += ftwdt010_wdt.o
30*abbab703STroy Kiskyifneq (,$(filter $(SOC), mx31 mx35 mx5 mx6))
31*abbab703STroy KiskyCOBJS-y += imx_watchdog.o
32*abbab703STroy Kiskyendif
33d731282eSMarek VasutCOBJS-$(CONFIG_TNETV107X_WATCHDOG) += tnetv107x_wdt.o
342b5fdd07SMarek VasutCOBJS-$(CONFIG_S5P)               += s5p_wdt.o
35843a2654SJean-Christophe PLAGNIOL-VILLARD
36843a2654SJean-Christophe PLAGNIOL-VILLARDCOBJS	:= $(COBJS-y)
37843a2654SJean-Christophe PLAGNIOL-VILLARDSRCS	:= $(COBJS:.o=.c)
38843a2654SJean-Christophe PLAGNIOL-VILLARDOBJS	:= $(addprefix $(obj),$(COBJS))
39843a2654SJean-Christophe PLAGNIOL-VILLARD
40843a2654SJean-Christophe PLAGNIOL-VILLARDall:	$(LIB)
41843a2654SJean-Christophe PLAGNIOL-VILLARD
42843a2654SJean-Christophe PLAGNIOL-VILLARD$(LIB):	$(obj).depend $(OBJS)
436d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
44843a2654SJean-Christophe PLAGNIOL-VILLARD
45843a2654SJean-Christophe PLAGNIOL-VILLARD#########################################################################
46843a2654SJean-Christophe PLAGNIOL-VILLARD
47843a2654SJean-Christophe PLAGNIOL-VILLARD# defines $(obj).depend target
48843a2654SJean-Christophe PLAGNIOL-VILLARDinclude $(SRCTREE)/rules.mk
49843a2654SJean-Christophe PLAGNIOL-VILLARD
50843a2654SJean-Christophe PLAGNIOL-VILLARDsinclude $(obj).depend
51843a2654SJean-Christophe PLAGNIOL-VILLARD
52843a2654SJean-Christophe PLAGNIOL-VILLARD#########################################################################
53