1*012771d8Swdenk# 2*012771d8Swdenk# (C) Copyright 2000, 2001 3*012771d8Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4*012771d8Swdenk# 5*012771d8Swdenk# See file CREDITS for list of people who contributed to this 6*012771d8Swdenk# project. 7*012771d8Swdenk# 8*012771d8Swdenk# This program is free software; you can redistribute it and/or 9*012771d8Swdenk# modify it under the terms of the GNU General Public License as 10*012771d8Swdenk# published by the Free Software Foundation; either version 2 of 11*012771d8Swdenk# the License, or (at your option) any later version. 12*012771d8Swdenk# 13*012771d8Swdenk# This program is distributed in the hope that it will be useful, 14*012771d8Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of 15*012771d8Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*012771d8Swdenk# GNU General Public License for more details. 17*012771d8Swdenk# 18*012771d8Swdenk# You should have received a copy of the GNU General Public License 19*012771d8Swdenk# along with this program; if not, write to the Free Software 20*012771d8Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21*012771d8Swdenk# MA 02111-1307 USA 22*012771d8Swdenk# 23*012771d8Swdenk 24*012771d8Swdenkinclude $(TOPDIR)/config.mk 25*012771d8Swdenk 26*012771d8SwdenkLIB = libjffs2.a 27*012771d8Swdenk 28*012771d8SwdenkAOBJS = 29*012771d8SwdenkCOBJS = jffs2_1pass.o compr_rtime.o compr_rubin.o compr_zlib.o mini_inflate.o 30*012771d8SwdenkOBJS = $(AOBJS) $(COBJS) 31*012771d8Swdenk 32*012771d8Swdenk#CPPFLAGS += 33*012771d8Swdenk 34*012771d8Swdenkall: $(LIB) $(AOBJS) 35*012771d8Swdenk 36*012771d8Swdenk$(LIB): .depend $(OBJS) 37*012771d8Swdenk $(AR) crv $@ $(OBJS) 38*012771d8Swdenk 39*012771d8Swdenk 40*012771d8Swdenk######################################################################### 41*012771d8Swdenk 42*012771d8Swdenk.depend: Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c) 43*012771d8Swdenk $(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > $@ 44*012771d8Swdenk 45*012771d8Swdenksinclude .depend 46*012771d8Swdenk 47*012771d8Swdenk######################################################################### 48