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