]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - fs/fat/Makefile
Merge branch 'u-boot/master' into u-boot-arm/master
[karo-tx-uboot.git] / fs / fat / Makefile
1 #
2 #
3 # SPDX-License-Identifier:      GPL-2.0+
4 #
5
6 include $(TOPDIR)/config.mk
7
8 LIB     = $(obj)libfat.o
9
10 AOBJS   =
11 COBJS-$(CONFIG_FS_FAT)  := fat.o
12 COBJS-$(CONFIG_FAT_WRITE):= fat_write.o
13
14 ifndef CONFIG_SPL_BUILD
15 COBJS-$(CONFIG_FS_FAT)  += file.o
16 endif
17
18 SRCS    := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
19 OBJS    := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
20
21 all:    $(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
32 include $(SRCTREE)/rules.mk
33
34 sinclude $(obj).depend
35
36 #########################################################################