blob: 7e255ce8aef987daf37f52e0f00d41292162946a [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARD843a2652009-03-27 23:26:42 +01001#
2# (C) Copyright 2008
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Jean-Christophe PLAGNIOL-VILLARD843a2652009-03-27 23:26:42 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB := $(obj)libwatchdog.o
Jean-Christophe PLAGNIOL-VILLARD843a2652009-03-27 23:26:42 +010011
12COBJS-$(CONFIG_AT91SAM9_WATCHDOG) += at91sam9_wdt.o
Macpaul Lin90969632011-01-26 18:46:28 +080013COBJS-$(CONFIG_FTWDT010_WATCHDOG) += ftwdt010_wdt.o
Alison Wang3a36c6b2013-05-27 22:55:44 +000014ifneq (,$(filter $(SOC), mx31 mx35 mx5 mx6 vf610))
Troy Kiskyabbab702012-10-22 15:19:01 +000015COBJS-y += imx_watchdog.o
16endif
Marek Vasutd7312822012-07-21 05:02:21 +000017COBJS-$(CONFIG_TNETV107X_WATCHDOG) += tnetv107x_wdt.o
Marek Vasut2b5fdd02012-07-21 05:02:24 +000018COBJS-$(CONFIG_S5P) += s5p_wdt.o
Michal Simek0f21f982013-04-22 11:23:16 +020019COBJS-$(CONFIG_XILINX_TB_WATCHDOG) += xilinx_tb_wdt.o
Sonic Zhange9a389a2013-04-07 18:02:37 +080020COBJS-$(CONFIG_BFIN_WATCHDOG) += bfin_wdt.o
Jean-Christophe PLAGNIOL-VILLARD843a2652009-03-27 23:26:42 +010021
22COBJS := $(COBJS-y)
23SRCS := $(COBJS:.o=.c)
24OBJS := $(addprefix $(obj),$(COBJS))
25
26all: $(LIB)
27
28$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010029 $(call cmd_link_o_target, $(OBJS))
Jean-Christophe PLAGNIOL-VILLARD843a2652009-03-27 23:26:42 +010030
31#########################################################################
32
33# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
35
36sinclude $(obj).depend
37
38#########################################################################