2004-12-16 17:26:24 +00:00
|
|
|
#
|
2006-09-01 17:49:50 +00:00
|
|
|
# (C) Copyright 2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2004-12-16 17:26:24 +00:00
|
|
|
# (C) Copyright 2003
|
|
|
|
# Pavel Bartusek, Sysgo Real-Time Solutions AG, pba@sysgo.de
|
|
|
|
#
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2004-12-16 17:26:24 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2012-05-25 15:51:44 +00:00
|
|
|
LIB = $(obj)libext4fs.o
|
2004-12-16 17:26:24 +00:00
|
|
|
|
|
|
|
AOBJS =
|
2012-10-22 06:43:50 +00:00
|
|
|
COBJS-$(CONFIG_FS_EXT4) := ext4fs.o ext4_common.o dev.o
|
2012-12-26 09:53:28 +00:00
|
|
|
COBJS-$(CONFIG_EXT4_WRITE) += ext4_write.o ext4_journal.o crc16.o
|
2006-09-01 17:49:50 +00:00
|
|
|
|
2008-08-31 02:24:56 +00:00
|
|
|
SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
|
2004-12-16 17:26:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
all: $(LIB) $(AOBJS)
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2004-12-16 17:26:24 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2004-12-16 17:26:24 +00:00
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
sinclude $(obj).depend
|
2004-12-16 17:26:24 +00:00
|
|
|
|
|
|
|
#########################################################################
|