xref: /openbmc/u-boot/drivers/watchdog/Makefile (revision 3a36c6b2)
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*3a36c6b2SAlison Wangifneq (,$(filter $(SOC), mx31 mx35 mx5 mx6 vf610))
31abbab703STroy KiskyCOBJS-y += imx_watchdog.o
32abbab703STroy Kiskyendif
33d731282eSMarek VasutCOBJS-$(CONFIG_TNETV107X_WATCHDOG) += tnetv107x_wdt.o
342b5fdd07SMarek VasutCOBJS-$(CONFIG_S5P)               += s5p_wdt.o
350f21f98dSMichal SimekCOBJS-$(CONFIG_XILINX_TB_WATCHDOG) += xilinx_tb_wdt.o
36843a2654SJean-Christophe PLAGNIOL-VILLARD
37843a2654SJean-Christophe PLAGNIOL-VILLARDCOBJS	:= $(COBJS-y)
38843a2654SJean-Christophe PLAGNIOL-VILLARDSRCS	:= $(COBJS:.o=.c)
39843a2654SJean-Christophe PLAGNIOL-VILLARDOBJS	:= $(addprefix $(obj),$(COBJS))
40843a2654SJean-Christophe PLAGNIOL-VILLARD
41843a2654SJean-Christophe PLAGNIOL-VILLARDall:	$(LIB)
42843a2654SJean-Christophe PLAGNIOL-VILLARD
43843a2654SJean-Christophe PLAGNIOL-VILLARD$(LIB):	$(obj).depend $(OBJS)
446d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
45843a2654SJean-Christophe PLAGNIOL-VILLARD
46843a2654SJean-Christophe PLAGNIOL-VILLARD#########################################################################
47843a2654SJean-Christophe PLAGNIOL-VILLARD
48843a2654SJean-Christophe PLAGNIOL-VILLARD# defines $(obj).depend target
49843a2654SJean-Christophe PLAGNIOL-VILLARDinclude $(SRCTREE)/rules.mk
50843a2654SJean-Christophe PLAGNIOL-VILLARD
51843a2654SJean-Christophe PLAGNIOL-VILLARDsinclude $(obj).depend
52843a2654SJean-Christophe PLAGNIOL-VILLARD
53843a2654SJean-Christophe PLAGNIOL-VILLARD#########################################################################
54