xref: /openbmc/u-boot/fs/ubifs/Makefile (revision b823fd9b)
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#
99eefe2a2SStefan Roese# See file CREDITS for list of people who contributed to this
109eefe2a2SStefan Roese# project.
119eefe2a2SStefan Roese#
129eefe2a2SStefan Roese# This program is free software; you can redistribute it and/or
139eefe2a2SStefan Roese# modify it under the terms of the GNU General Public License as
149eefe2a2SStefan Roese# published by the Free Software Foundation; either version 2 of
159eefe2a2SStefan Roese# the License, or (at your option) any later version.
169eefe2a2SStefan Roese#
179eefe2a2SStefan Roese# This program is distributed in the hope that it will be useful,
189eefe2a2SStefan Roese# but WITHOUT ANY WARRANTY; without even the implied warranty of
199eefe2a2SStefan Roese# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
209eefe2a2SStefan Roese# GNU General Public License for more details.
219eefe2a2SStefan Roese#
229eefe2a2SStefan Roese# You should have received a copy of the GNU General Public License
239eefe2a2SStefan Roese# along with this program; if not, write to the Free Software
249eefe2a2SStefan Roese# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
259eefe2a2SStefan Roese# MA 02111-1307 USA
269eefe2a2SStefan Roese#
279eefe2a2SStefan Roese
289eefe2a2SStefan Roeseinclude $(TOPDIR)/config.mk
299eefe2a2SStefan Roese
306d8962e8SSebastien CarlierLIB	= $(obj)libubifs.o
319eefe2a2SStefan Roese
329eefe2a2SStefan RoeseCOBJS-$(CONFIG_CMD_UBIFS) := ubifs.o io.o super.o sb.o master.o lpt.o
339eefe2a2SStefan RoeseCOBJS-$(CONFIG_CMD_UBIFS) += lpt_commit.o scan.o lprops.o
349eefe2a2SStefan RoeseCOBJS-$(CONFIG_CMD_UBIFS) += tnc.o tnc_misc.o debug.o crc16.o budget.o
359eefe2a2SStefan RoeseCOBJS-$(CONFIG_CMD_UBIFS) += log.o orphan.o recovery.o replay.o
369eefe2a2SStefan Roese
379eefe2a2SStefan RoeseSRCS	:= $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
389eefe2a2SStefan RoeseOBJS	:= $(addprefix $(obj),$(AOBJS) $(COBJS-y))
399eefe2a2SStefan Roese
409eefe2a2SStefan Roeseall:	$(LIB) $(AOBJS)
419eefe2a2SStefan Roese
429eefe2a2SStefan Roese$(LIB):	$(obj).depend $(OBJS)
436d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
449eefe2a2SStefan Roese
45*b823fd9bSAlbert ARIBAUD# SEE README.arm-unaligned-accesses
46*b823fd9bSAlbert ARIBAUD$(obj)super.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
47*b823fd9bSAlbert ARIBAUD
489eefe2a2SStefan Roese#########################################################################
499eefe2a2SStefan Roese
509eefe2a2SStefan Roese# defines $(obj).depend target
519eefe2a2SStefan Roeseinclude $(SRCTREE)/rules.mk
529eefe2a2SStefan Roese
539eefe2a2SStefan Roesesinclude $(obj).depend
549eefe2a2SStefan Roese
559eefe2a2SStefan Roese#########################################################################
56