xref: /openbmc/u-boot/fs/fat/Makefile (revision 05bad4aa)
171f95118Swdenk#
271f95118Swdenk#
371f95118Swdenk# See file CREDITS for list of people who contributed to this
471f95118Swdenk# project.
571f95118Swdenk#
671f95118Swdenk# This program is free software; you can redistribute it and/or
771f95118Swdenk# modify it under the terms of the GNU General Public License as
871f95118Swdenk# published by the Free Software Foundation; either version 2 of
971f95118Swdenk# the License, or (at your option) any later version.
1071f95118Swdenk#
1171f95118Swdenk# This program is distributed in the hope that it will be useful,
1271f95118Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
1371f95118Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1471f95118Swdenk# GNU General Public License for more details.
1571f95118Swdenk#
1671f95118Swdenk# You should have received a copy of the GNU General Public License
1771f95118Swdenk# along with this program; if not, write to the Free Software
1871f95118Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
1971f95118Swdenk# MA 02111-1307 USA
2071f95118Swdenk#
2171f95118Swdenk
2271f95118Swdenkinclude $(TOPDIR)/config.mk
2371f95118Swdenk
246d8962e8SSebastien CarlierLIB	= $(obj)libfat.o
2571f95118Swdenk
2671f95118SwdenkAOBJS	=
27*05bad4aaSAneesh VCOBJS-$(CONFIG_CMD_FAT)	:= fat.o
28*05bad4aaSAneesh V
29*05bad4aaSAneesh Vifndef CONFIG_SPL_BUILD
30*05bad4aaSAneesh VCOBJS-$(CONFIG_CMD_FAT)	+= file.o
31*05bad4aaSAneesh Vendif
3271f95118Swdenk
3308ab4e17SJean-Christophe PLAGNIOL-VILLARDSRCS	:= $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
3408ab4e17SJean-Christophe PLAGNIOL-VILLARDOBJS	:= $(addprefix $(obj),$(AOBJS) $(COBJS-y))
3571f95118Swdenk
3671f95118Swdenkall:	$(LIB) $(AOBJS)
3771f95118Swdenk
38f9328639SMarian Balakowicz$(LIB):	$(obj).depend $(OBJS)
396d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
4071f95118Swdenk
4171f95118Swdenk
4271f95118Swdenk#########################################################################
4371f95118Swdenk
44f9328639SMarian Balakowicz# defines $(obj).depend target
45f9328639SMarian Balakowiczinclude $(SRCTREE)/rules.mk
4671f95118Swdenk
47f9328639SMarian Balakowiczsinclude $(obj).depend
4871f95118Swdenk
4971f95118Swdenk#########################################################################
50