xref: /openbmc/u-boot/drivers/watchdog/Makefile (revision 9096963c)
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
29*9096963cSMacpaul LinCOBJS-$(CONFIG_FTWDT010_WATCHDOG) += ftwdt010_wdt.o
30843a2654SJean-Christophe PLAGNIOL-VILLARD
31843a2654SJean-Christophe PLAGNIOL-VILLARDCOBJS	:= $(COBJS-y)
32843a2654SJean-Christophe PLAGNIOL-VILLARDSRCS	:= $(COBJS:.o=.c)
33843a2654SJean-Christophe PLAGNIOL-VILLARDOBJS	:= $(addprefix $(obj),$(COBJS))
34843a2654SJean-Christophe PLAGNIOL-VILLARD
35843a2654SJean-Christophe PLAGNIOL-VILLARDall:	$(LIB)
36843a2654SJean-Christophe PLAGNIOL-VILLARD
37843a2654SJean-Christophe PLAGNIOL-VILLARD$(LIB):	$(obj).depend $(OBJS)
386d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
39843a2654SJean-Christophe PLAGNIOL-VILLARD
40843a2654SJean-Christophe PLAGNIOL-VILLARD#########################################################################
41843a2654SJean-Christophe PLAGNIOL-VILLARD
42843a2654SJean-Christophe PLAGNIOL-VILLARD# defines $(obj).depend target
43843a2654SJean-Christophe PLAGNIOL-VILLARDinclude $(SRCTREE)/rules.mk
44843a2654SJean-Christophe PLAGNIOL-VILLARD
45843a2654SJean-Christophe PLAGNIOL-VILLARDsinclude $(obj).depend
46843a2654SJean-Christophe PLAGNIOL-VILLARD
47843a2654SJean-Christophe PLAGNIOL-VILLARD#########################################################################
48