blob: 47949c14be808995c082ed09b218bccf53e20469 [file] [log] [blame]
Stefan Roese9eefe2a2009-03-19 15:35:05 +01001#
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#
Wolfgang Denk1a459662013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Stefan Roese9eefe2a2009-03-19 15:35:05 +010010#
11
12include $(TOPDIR)/config.mk
13
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010014LIB = $(obj)libubifs.o
Stefan Roese9eefe2a2009-03-19 15:35:05 +010015
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)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010027 $(call cmd_link_o_target, $(OBJS))
Stefan Roese9eefe2a2009-03-19 15:35:05 +010028
Albert ARIBAUDb823fd92012-10-09 09:28:15 +000029# SEE README.arm-unaligned-accesses
30$(obj)super.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
31
Stefan Roese9eefe2a2009-03-19 15:35:05 +010032#########################################################################
33
34# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
36
37sinclude $(obj).depend
38
39#########################################################################