blob: f45bb324ec3860c7a29e7c919cc14ae14272dd63 [file] [log] [blame]
stroese15be8132004-12-16 17:26:24 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
stroese15be8132004-12-16 17:26:24 +00005# (C) Copyright 2003
6# Pavel Bartusek, Sysgo Real-Time Solutions AG, pba@sysgo.de
7#
8#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
stroese15be8132004-12-16 17:26:24 +000010#
11
12include $(TOPDIR)/config.mk
13
Uma Shankar71014b62012-05-25 21:21:44 +053014LIB = $(obj)libext4fs.o
stroese15be8132004-12-16 17:26:24 +000015
16AOBJS =
Stephen Warren4f8662d2012-10-22 06:43:50 +000017COBJS-$(CONFIG_FS_EXT4) := ext4fs.o ext4_common.o dev.o
Simon Glass6c8f3aa2012-12-26 09:53:28 +000018COBJS-$(CONFIG_EXT4_WRITE) += ext4_write.o ext4_journal.o crc16.o
Marian Balakowiczd62379d2006-09-01 19:49:50 +020019
Jean-Christophe PLAGNIOL-VILLARD39b9fc92008-08-31 04:24:56 +020020SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
21OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
stroese15be8132004-12-16 17:26:24 +000022
stroese15be8132004-12-16 17:26:24 +000023
24all: $(LIB) $(AOBJS)
25
Marian Balakowiczd62379d2006-09-01 19:49:50 +020026$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010027 $(call cmd_link_o_target, $(OBJS))
stroese15be8132004-12-16 17:26:24 +000028
stroese15be8132004-12-16 17:26:24 +000029#########################################################################
30
Marian Balakowiczd62379d2006-09-01 19:49:50 +020031# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
stroese15be8132004-12-16 17:26:24 +000033
Marian Balakowiczd62379d2006-09-01 19:49:50 +020034sinclude $(obj).depend
stroese15be8132004-12-16 17:26:24 +000035
36#########################################################################