Stefan Roese | 9eefe2a | 2009-03-19 15:35:05 +0100 | [diff] [blame] | 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 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | # SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | 9eefe2a | 2009-03-19 15:35:05 +0100 | [diff] [blame] | 10 | # |
| 11 | |
| 12 | include $(TOPDIR)/config.mk |
| 13 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 14 | LIB = $(obj)libubifs.o |
Stefan Roese | 9eefe2a | 2009-03-19 15:35:05 +0100 | [diff] [blame] | 15 | |
| 16 | COBJS-$(CONFIG_CMD_UBIFS) := ubifs.o io.o super.o sb.o master.o lpt.o |
| 17 | COBJS-$(CONFIG_CMD_UBIFS) += lpt_commit.o scan.o lprops.o |
| 18 | COBJS-$(CONFIG_CMD_UBIFS) += tnc.o tnc_misc.o debug.o crc16.o budget.o |
| 19 | COBJS-$(CONFIG_CMD_UBIFS) += log.o orphan.o recovery.o replay.o |
| 20 | |
| 21 | SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 22 | OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y)) |
| 23 | |
| 24 | all: $(LIB) $(AOBJS) |
| 25 | |
| 26 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 27 | $(call cmd_link_o_target, $(OBJS)) |
Stefan Roese | 9eefe2a | 2009-03-19 15:35:05 +0100 | [diff] [blame] | 28 | |
Albert ARIBAUD | b823fd9 | 2012-10-09 09:28:15 +0000 | [diff] [blame] | 29 | # SEE README.arm-unaligned-accesses |
| 30 | $(obj)super.o: CFLAGS += $(PLATFORM_NO_UNALIGNED) |
| 31 | |
Stefan Roese | 9eefe2a | 2009-03-19 15:35:05 +0100 | [diff] [blame] | 32 | ######################################################################### |
| 33 | |
| 34 | # defines $(obj).depend target |
| 35 | include $(SRCTREE)/rules.mk |
| 36 | |
| 37 | sinclude $(obj).depend |
| 38 | |
| 39 | ######################################################################### |