xref: /openbmc/u-boot/fs/fat/Makefile (revision 3765b3e7)
1#
2#
3# SPDX-License-Identifier:	GPL-2.0+
4#
5
6include $(TOPDIR)/config.mk
7
8LIB	= $(obj)libfat.o
9
10AOBJS	=
11COBJS-$(CONFIG_FS_FAT)	:= fat.o
12COBJS-$(CONFIG_FAT_WRITE):= fat_write.o
13
14ifndef CONFIG_SPL_BUILD
15COBJS-$(CONFIG_FS_FAT)	+= file.o
16endif
17
18SRCS	:= $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
19OBJS	:= $(addprefix $(obj),$(AOBJS) $(COBJS-y))
20
21all:	$(LIB) $(AOBJS)
22
23$(LIB):	$(obj).depend $(OBJS)
24	$(call cmd_link_o_target, $(OBJS))
25
26# SEE README.arm-unaligned-accesses
27$(obj)file.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
28
29#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################
37