xref: /openbmc/u-boot/fs/jffs2/Makefile (revision 6d8962e8)
1012771d8Swdenk#
2f9328639SMarian Balakowicz# (C) Copyright 2000-2006
3012771d8Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4012771d8Swdenk#
5012771d8Swdenk# See file CREDITS for list of people who contributed to this
6012771d8Swdenk# project.
7012771d8Swdenk#
8012771d8Swdenk# This program is free software; you can redistribute it and/or
9012771d8Swdenk# modify it under the terms of the GNU General Public License as
10012771d8Swdenk# published by the Free Software Foundation; either version 2 of
11012771d8Swdenk# the License, or (at your option) any later version.
12012771d8Swdenk#
13012771d8Swdenk# This program is distributed in the hope that it will be useful,
14012771d8Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
15012771d8Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16012771d8Swdenk# GNU General Public License for more details.
17012771d8Swdenk#
18012771d8Swdenk# You should have received a copy of the GNU General Public License
19012771d8Swdenk# along with this program; if not, write to the Free Software
20012771d8Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21012771d8Swdenk# MA 02111-1307 USA
22012771d8Swdenk#
23012771d8Swdenk
24012771d8Swdenkinclude $(TOPDIR)/config.mk
25012771d8Swdenk
26*6d8962e8SSebastien CarlierLIB	= $(obj)libjffs2.o
27012771d8Swdenk
28012771d8SwdenkAOBJS	=
2908ab4e17SJean-Christophe PLAGNIOL-VILLARDifdef CONFIG_CMD_JFFS2
30f0983371SWolfgang DenkCOBJS-$(CONFIG_JFFS2_LZO) += compr_lzo.o
31f0037c56SGrant LikelyCOBJS-y += compr_rtime.o
32f0037c56SGrant LikelyCOBJS-y += compr_rubin.o
33f0037c56SGrant LikelyCOBJS-y += compr_zlib.o
3408ab4e17SJean-Christophe PLAGNIOL-VILLARDCOBJS-y += jffs2_1pass.o
35f0037c56SGrant LikelyCOBJS-y += mini_inflate.o
3608ab4e17SJean-Christophe PLAGNIOL-VILLARDendif
37f9328639SMarian Balakowicz
38f0037c56SGrant LikelyCOBJS	:= $(COBJS-y)
39f9328639SMarian BalakowiczSRCS	:= $(AOBJS:.o=.S) $(COBJS:.o=.c)
40f9328639SMarian BalakowiczOBJS	:= $(addprefix $(obj),$(AOBJS) $(COBJS))
41012771d8Swdenk
42012771d8Swdenk#CPPFLAGS +=
43012771d8Swdenk
44012771d8Swdenkall:	$(LIB) $(AOBJS)
45012771d8Swdenk
46f9328639SMarian Balakowicz$(LIB):	$(obj).depend $(OBJS)
47*6d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
48012771d8Swdenk
49012771d8Swdenk
50012771d8Swdenk#########################################################################
51012771d8Swdenk
52f9328639SMarian Balakowicz# defines $(obj).depend target
53f9328639SMarian Balakowiczinclude $(SRCTREE)/rules.mk
54012771d8Swdenk
55f9328639SMarian Balakowiczsinclude $(obj).depend
56012771d8Swdenk
57012771d8Swdenk#########################################################################
58