xref: /openbmc/u-boot/fs/ubifs/Makefile (revision c0dcece7)
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)libubifs.o
15
16COBJS-$(CONFIG_CMD_UBIFS) := ubifs.o io.o super.o sb.o master.o lpt.o
17COBJS-$(CONFIG_CMD_UBIFS) += lpt_commit.o scan.o lprops.o
18COBJS-$(CONFIG_CMD_UBIFS) += tnc.o tnc_misc.o debug.o crc16.o budget.o
19COBJS-$(CONFIG_CMD_UBIFS) += log.o orphan.o recovery.o replay.o
20
21SRCS	:= $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
22OBJS	:= $(addprefix $(obj),$(AOBJS) $(COBJS-y))
23
24all:	$(LIB) $(AOBJS)
25
26$(LIB):	$(obj).depend $(OBJS)
27	$(call cmd_link_o_target, $(OBJS))
28
29# SEE README.arm-unaligned-accesses
30$(obj)super.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
31
32#########################################################################
33
34# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
36
37sinclude $(obj).depend
38
39#########################################################################
40