2003-06-16 07:40:42 +09:00
|
|
|
#
|
|
|
|
#
|
2013-07-08 16:37:19 +09:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2003-06-16 07:40:42 +09:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 23:48:07 +09:00
|
|
|
LIB = $(obj)libfat.o
|
2003-06-16 07:40:42 +09:00
|
|
|
|
|
|
|
AOBJS =
|
2012-10-22 15:43:50 +09:00
|
|
|
COBJS-$(CONFIG_FS_FAT) := fat.o
|
2011-10-25 06:15:28 +09:00
|
|
|
COBJS-$(CONFIG_FAT_WRITE):= fat_write.o
|
2011-07-13 14:11:06 +09:00
|
|
|
|
|
|
|
ifndef CONFIG_SPL_BUILD
|
2012-10-22 15:43:50 +09:00
|
|
|
COBJS-$(CONFIG_FS_FAT) += file.o
|
2011-07-13 14:11:06 +09:00
|
|
|
endif
|
2003-06-16 07:40:42 +09:00
|
|
|
|
2008-08-31 11:24:56 +09:00
|
|
|
SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
|
2003-06-16 07:40:42 +09:00
|
|
|
|
|
|
|
all: $(LIB) $(AOBJS)
|
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
2010-11-05 23:48:07 +09:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2003-06-16 07:40:42 +09:00
|
|
|
|
2012-10-09 18:28:15 +09:00
|
|
|
# SEE README.arm-unaligned-accesses
|
|
|
|
$(obj)file.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
|
2003-06-16 07:40:42 +09:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2003-06-16 07:40:42 +09:00
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
sinclude $(obj).depend
|
2003-06-16 07:40:42 +09:00
|
|
|
|
|
|
|
#########################################################################
|