xref: /openbmc/u-boot/drivers/watchdog/Makefile (revision 425faf74)
1#
2# (C) Copyright 2008
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8include $(TOPDIR)/config.mk
9
10LIB	:= $(obj)libwatchdog.o
11
12COBJS-$(CONFIG_AT91SAM9_WATCHDOG) += at91sam9_wdt.o
13COBJS-$(CONFIG_FTWDT010_WATCHDOG) += ftwdt010_wdt.o
14ifneq (,$(filter $(SOC), mx31 mx35 mx5 mx6 vf610))
15COBJS-y += imx_watchdog.o
16endif
17COBJS-$(CONFIG_TNETV107X_WATCHDOG) += tnetv107x_wdt.o
18COBJS-$(CONFIG_S5P)               += s5p_wdt.o
19COBJS-$(CONFIG_XILINX_TB_WATCHDOG) += xilinx_tb_wdt.o
20COBJS-$(CONFIG_BFIN_WATCHDOG)  += bfin_wdt.o
21
22COBJS	:= $(COBJS-y)
23SRCS	:= $(COBJS:.o=.c)
24OBJS	:= $(addprefix $(obj),$(COBJS))
25
26all:	$(LIB)
27
28$(LIB):	$(obj).depend $(OBJS)
29	$(call cmd_link_o_target, $(OBJS))
30
31#########################################################################
32
33# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
35
36sinclude $(obj).depend
37
38#########################################################################
39