xref: /openbmc/u-boot/fs/ext4/Makefile (revision 425faf74)
1#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2003
6# Pavel Bartusek, Sysgo Real-Time Solutions AG, pba@sysgo.de
7#
8#
9# SPDX-License-Identifier:	GPL-2.0+
10#
11
12include $(TOPDIR)/config.mk
13
14LIB	= $(obj)libext4fs.o
15
16AOBJS	=
17COBJS-$(CONFIG_FS_EXT4) := ext4fs.o ext4_common.o dev.o
18COBJS-$(CONFIG_EXT4_WRITE) += ext4_write.o ext4_journal.o crc16.o
19
20SRCS	:= $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
21OBJS	:= $(addprefix $(obj),$(AOBJS) $(COBJS-y))
22
23
24all:	$(LIB) $(AOBJS)
25
26$(LIB):	$(obj).depend $(OBJS)
27	$(call cmd_link_o_target, $(OBJS))
28
29#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################
37