19eefe2a2SStefan Roese# 29eefe2a2SStefan Roese# (C) Copyright 2006 39eefe2a2SStefan Roese# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 49eefe2a2SStefan Roese# 59eefe2a2SStefan Roese# (C) Copyright 2003 69eefe2a2SStefan Roese# Pavel Bartusek, Sysgo Real-Time Solutions AG, pba@sysgo.de 79eefe2a2SStefan Roese# 89eefe2a2SStefan Roese# 9*1a459660SWolfgang Denk# SPDX-License-Identifier: GPL-2.0+ 109eefe2a2SStefan Roese# 119eefe2a2SStefan Roese 129eefe2a2SStefan Roeseinclude $(TOPDIR)/config.mk 139eefe2a2SStefan Roese 146d8962e8SSebastien CarlierLIB = $(obj)libubifs.o 159eefe2a2SStefan Roese 169eefe2a2SStefan RoeseCOBJS-$(CONFIG_CMD_UBIFS) := ubifs.o io.o super.o sb.o master.o lpt.o 179eefe2a2SStefan RoeseCOBJS-$(CONFIG_CMD_UBIFS) += lpt_commit.o scan.o lprops.o 189eefe2a2SStefan RoeseCOBJS-$(CONFIG_CMD_UBIFS) += tnc.o tnc_misc.o debug.o crc16.o budget.o 199eefe2a2SStefan RoeseCOBJS-$(CONFIG_CMD_UBIFS) += log.o orphan.o recovery.o replay.o 209eefe2a2SStefan Roese 219eefe2a2SStefan RoeseSRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c) 229eefe2a2SStefan RoeseOBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y)) 239eefe2a2SStefan Roese 249eefe2a2SStefan Roeseall: $(LIB) $(AOBJS) 259eefe2a2SStefan Roese 269eefe2a2SStefan Roese$(LIB): $(obj).depend $(OBJS) 276d8962e8SSebastien Carlier $(call cmd_link_o_target, $(OBJS)) 289eefe2a2SStefan Roese 29b823fd9bSAlbert ARIBAUD# SEE README.arm-unaligned-accesses 30b823fd9bSAlbert ARIBAUD$(obj)super.o: CFLAGS += $(PLATFORM_NO_UNALIGNED) 31b823fd9bSAlbert ARIBAUD 329eefe2a2SStefan Roese######################################################################### 339eefe2a2SStefan Roese 349eefe2a2SStefan Roese# defines $(obj).depend target 359eefe2a2SStefan Roeseinclude $(SRCTREE)/rules.mk 369eefe2a2SStefan Roese 379eefe2a2SStefan Roesesinclude $(obj).depend 389eefe2a2SStefan Roese 399eefe2a2SStefan Roese######################################################################### 40