xref: /openbmc/u-boot/fs/jffs2/Makefile (revision 08ab4e17)
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
26f9328639SMarian BalakowiczLIB	= $(obj)libjffs2.a
27012771d8Swdenk
28012771d8SwdenkAOBJS	=
29*08ab4e17SJean-Christophe PLAGNIOL-VILLARDifdef CONFIG_CMD_JFFS2
30*08ab4e17SJean-Christophe PLAGNIOL-VILLARDCOBJS-$(CONFIG_JFFS2_LZO_LZARI) += compr_lzari.o
31*08ab4e17SJean-Christophe PLAGNIOL-VILLARDCOBJS-$(CONFIG_JFFS2_LZO_LZARI) += compr_lzo.o
32f0037c56SGrant LikelyCOBJS-y += compr_rtime.o
33f0037c56SGrant LikelyCOBJS-y += compr_rubin.o
34f0037c56SGrant LikelyCOBJS-y += compr_zlib.o
35*08ab4e17SJean-Christophe PLAGNIOL-VILLARDCOBJS-y += jffs2_1pass.o
36f0037c56SGrant LikelyCOBJS-y += mini_inflate.o
37*08ab4e17SJean-Christophe PLAGNIOL-VILLARDendif
38f9328639SMarian Balakowicz
39f0037c56SGrant LikelyCOBJS	:= $(COBJS-y)
40f9328639SMarian BalakowiczSRCS	:= $(AOBJS:.o=.S) $(COBJS:.o=.c)
41f9328639SMarian BalakowiczOBJS	:= $(addprefix $(obj),$(AOBJS) $(COBJS))
42012771d8Swdenk
43012771d8Swdenk#CPPFLAGS +=
44012771d8Swdenk
45012771d8Swdenkall:	$(LIB) $(AOBJS)
46012771d8Swdenk
47f9328639SMarian Balakowicz$(LIB):	$(obj).depend $(OBJS)
482b208f53SWolfgang Denk	$(AR) $(ARFLAGS) $@ $(OBJS)
49012771d8Swdenk
50012771d8Swdenk
51012771d8Swdenk#########################################################################
52012771d8Swdenk
53f9328639SMarian Balakowicz# defines $(obj).depend target
54f9328639SMarian Balakowiczinclude $(SRCTREE)/rules.mk
55012771d8Swdenk
56f9328639SMarian Balakowiczsinclude $(obj).depend
57012771d8Swdenk
58012771d8Swdenk#########################################################################
59