xref: /openbmc/u-boot/fs/fat/Makefile (revision b823fd9b)
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	=
2705bad4aaSAneesh VCOBJS-$(CONFIG_CMD_FAT)	:= fat.o
28c30a15e5SDonggeun KimCOBJS-$(CONFIG_FAT_WRITE):= fat_write.o
2905bad4aaSAneesh V
3005bad4aaSAneesh Vifndef CONFIG_SPL_BUILD
3105bad4aaSAneesh VCOBJS-$(CONFIG_CMD_FAT)	+= file.o
3205bad4aaSAneesh Vendif
3371f95118Swdenk
3408ab4e17SJean-Christophe PLAGNIOL-VILLARDSRCS	:= $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
3508ab4e17SJean-Christophe PLAGNIOL-VILLARDOBJS	:= $(addprefix $(obj),$(AOBJS) $(COBJS-y))
3671f95118Swdenk
3771f95118Swdenkall:	$(LIB) $(AOBJS)
3871f95118Swdenk
39f9328639SMarian Balakowicz$(LIB):	$(obj).depend $(OBJS)
406d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
4171f95118Swdenk
42*b823fd9bSAlbert ARIBAUD# SEE README.arm-unaligned-accesses
43*b823fd9bSAlbert ARIBAUD$(obj)file.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
4471f95118Swdenk
4571f95118Swdenk#########################################################################
4671f95118Swdenk
47f9328639SMarian Balakowicz# defines $(obj).depend target
48f9328639SMarian Balakowiczinclude $(SRCTREE)/rules.mk
4971f95118Swdenk
50f9328639SMarian Balakowiczsinclude $(obj).depend
5171f95118Swdenk
5271f95118Swdenk#########################################################################
53