#	/****************************************************
#	* Compror: on-line compression with a factor oracle *
#	* Version 2.1                                       *
#	* Authors: Arnaud Lefebvre and Thierry Lecroq       *
#	*          Universite de Rouen, FRANCE              *
#	* E-Mail: arnaud.lefebvre@univ-rouen.fr             *
#	****************************************************/

#/************************************************************************************
#        Compror: a new experimental data compression software.
#        Copyright (C) 2002  Arnaud Lefebvre and Thierry Lecroq
#
#        This program is free software; you can redistribute it and/or
#        modify it under the terms of the GNU General Public License
#        as published by the Free Software Foundation; either version 2
#        of the License, or (at your option) any later version.
#
#        This program is distributed in the hope that it will be useful,
#        but WITHOUT ANY WARRANTY; without even the implied warranty of
#        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#        GNU General Public License for more details.
#
#        You should have received a copy of the GNU General Public License
#        along with this program; if not, write to the Free Software
#        Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#************************************************************************************/
CC = cc

all :   compror.c libLL.a
	$(CC) -o compror compror.c -L. -lCompror -lm
	make clean

sendbits.o : sendbits.c definitions.h
	$(CC) -c sendbits.c -I.

creertransition.o : creertransition.c definitions.h
	$(CC) -c creertransition.c -I.

existetransition.o : existetransition.c definitions.h
	$(CC) -c existetransition.c -I.

lengthrepeatedsuffix.o : lengthrepeatedsuffix.c definitions.h
	$(CC) -c lengthrepeatedsuffix.c -I.

lengthcommonsuffix.o : lengthcommonsuffix.c definitions.h
	$(CC) -c lengthcommonsuffix.c -I.

init.o : init.c definitions.h
	$(CC) -c init.c -I.

addbit.o : addbit.c definitions.h
	$(CC) -c addbit.c -I.

addfibo2.o : addfibo2.c definitions.h
	$(CC) -c addfibo2.c -I.

encoderhuff.o : encoderhuff.c definitions.h
	$(CC) -c encoderhuff.c -I.

encoderfibo.o : encoderfibo.c definitions.h
	$(CC) -c encoderfibo.c -I.

encodelongueur.o : encodelongueur.c definitions.h
	$(CC) -c encodelongueur.c -I.

encodeposition.o : encodeposition.c definitions.h
	$(CC) -c encodeposition.c -I.

compressionfibo.o : compressionfibo.c definitions.h
	$(CC) -c compressionfibo.c -I.

compressionhuff.o : compressionhuff.c definitions.h
	$(CC) -c compressionhuff.c -I.

decompression.o : decompression.c definitions.h
	$(CC) -c decompression.c -I.

getlongueurfibo.o : getlongueurfibo.c definitions.h
	$(CC) -c getlongueurfibo.c -I.

getlongueurhuff.o : getlongueurhuff.c definitions.h
	$(CC) -c getlongueurhuff.c -I.

getposition.o : getposition.c definitions.h
	$(CC) -c getposition.c -I.

getlettre.o : getlettre.c definitions.h
	$(CC) -c getlettre.c -I.

getbit.o : getbit.c definitions.h
	$(CC) -c getbit.c -I.

sendfibo2.o : sendfibo2.c definitions.h
	$(CC) -c sendfibo2.c -I.

sendlettresfibo.o : sendlettresfibo.c definitions.h
	$(CC) -c sendlettresfibo.c -I.

sendlettreshuff.o : sendlettreshuff.c definitions.h
	$(CC) -c sendlettreshuff.c -I.

OBJ = compressionfibo.o creertransition.o existetransition.o\
	  lengthrepeatedsuffix.o lengthcommonsuffix.o\
	  init.o addbit.o addfibo2.o\
	  encodeposition.o decompression.o getlongueurfibo.o\
	  getposition.o getlettre.o getbit.o encodelongueur.o\
	  sendfibo2.o sendlettresfibo.o sendbits.o encoderhuff.o\
	  encoderfibo.o sendlettreshuff.o getlongueurhuff.o\
	  compressionhuff.o

libLL.a : $(OBJ)
	ar -q ./libCompror.a $(OBJ);ranlib libCompror.a

clean :
	rm $(OBJ); rm libCompror.a 

