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 21COBJS-$(CONFIG_OMAP_WATCHDOG) += omap_wdt.o 22 23COBJS := $(COBJS-y) 24SRCS := $(COBJS:.o=.c) 25OBJS := $(addprefix $(obj),$(COBJS)) 26 27all: $(LIB) 28 29$(LIB): $(obj).depend $(OBJS) 30 $(call cmd_link_o_target, $(OBJS)) 31 32######################################################################### 33 34# defines $(obj).depend target 35include $(SRCTREE)/rules.mk 36 37sinclude $(obj).depend 38 39######################################################################### 40