xref: /openbmc/u-boot/drivers/bootcount/Makefile (revision 0044c42e)
1*0044c42eSStefan Roese#
2*0044c42eSStefan Roese# See file CREDITS for list of people who contributed to this
3*0044c42eSStefan Roese# project.
4*0044c42eSStefan Roese#
5*0044c42eSStefan Roese# This program is free software; you can redistribute it and/or
6*0044c42eSStefan Roese# modify it under the terms of the GNU General Public License as
7*0044c42eSStefan Roese# published by the Free Software Foundation; either version 2 of
8*0044c42eSStefan Roese# the License, or (at your option) any later version.
9*0044c42eSStefan Roese#
10*0044c42eSStefan Roese# This program is distributed in the hope that it will be useful,
11*0044c42eSStefan Roese# but WITHOUT ANY WARRANTY; without even the implied warranty of
12*0044c42eSStefan Roese# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
13*0044c42eSStefan Roese# GNU General Public License for more details.
14*0044c42eSStefan Roese#
15*0044c42eSStefan Roese# You should have received a copy of the GNU General Public License
16*0044c42eSStefan Roese# along with this program; if not, write to the Free Software
17*0044c42eSStefan Roese# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18*0044c42eSStefan Roese# MA 02111-1307 USA
19*0044c42eSStefan Roese#
20*0044c42eSStefan Roese
21*0044c42eSStefan Roeseinclude $(TOPDIR)/config.mk
22*0044c42eSStefan Roese
23*0044c42eSStefan RoeseLIB 	:= $(obj)libbootcount.o
24*0044c42eSStefan Roese
25*0044c42eSStefan RoeseCOBJS-y				+= bootcount.o
26*0044c42eSStefan RoeseCOBJS-$(CONFIG_AT91SAM9XE)	+= bootcount_at91.o
27*0044c42eSStefan RoeseCOBJS-$(CONFIG_BLACKFIN)	+= bootcount_blackfin.o
28*0044c42eSStefan RoeseCOBJS-$(CONFIG_SOC_DA8XX)	+= bootcount_davinci.o
29*0044c42eSStefan RoeseCOBJS-$(CONFIG_BOOTCOUNT_RAM)	+= bootcount_ram.o
30*0044c42eSStefan Roese
31*0044c42eSStefan RoeseCOBJS	:= $(COBJS-y)
32*0044c42eSStefan RoeseSRCS 	:= $(COBJS:.o=.c)
33*0044c42eSStefan RoeseOBJS 	:= $(addprefix $(obj),$(COBJS))
34*0044c42eSStefan Roese
35*0044c42eSStefan Roese$(LIB):	$(obj).depend $(OBJS)
36*0044c42eSStefan Roese	$(call cmd_link_o_target, $(OBJS))
37*0044c42eSStefan Roese
38*0044c42eSStefan Roese#########################################################################
39*0044c42eSStefan Roese
40*0044c42eSStefan Roese# defines $(obj).depend target
41*0044c42eSStefan Roeseinclude $(SRCTREE)/rules.mk
42*0044c42eSStefan Roese
43*0044c42eSStefan Roesesinclude $(obj).depend
44*0044c42eSStefan Roese
45*0044c42eSStefan Roese########################################################################
46