xref: /openbmc/u-boot/fs/jffs2/Makefile (revision 07cc0999)
1012771d8Swdenk#
2012771d8Swdenk# (C) Copyright 2000, 2001
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
26012771d8SwdenkLIB	= libjffs2.a
27012771d8Swdenk
28012771d8SwdenkAOBJS	=
29012771d8SwdenkCOBJS	= jffs2_1pass.o compr_rtime.o compr_rubin.o compr_zlib.o mini_inflate.o
30*07cc0999SwdenkCOBJS	+= compr_lzo.o compr_lzari.o
31012771d8SwdenkOBJS	= $(AOBJS) $(COBJS)
32012771d8Swdenk
33012771d8Swdenk#CPPFLAGS +=
34012771d8Swdenk
35012771d8Swdenkall:	$(LIB) $(AOBJS)
36012771d8Swdenk
37012771d8Swdenk$(LIB):	.depend $(OBJS)
38012771d8Swdenk	$(AR) crv $@ $(OBJS)
39012771d8Swdenk
40012771d8Swdenk
41012771d8Swdenk#########################################################################
42012771d8Swdenk
43012771d8Swdenk.depend:	Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c)
44012771d8Swdenk		$(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > $@
45012771d8Swdenk
46012771d8Swdenksinclude .depend
47012771d8Swdenk
48012771d8Swdenk#########################################################################
49