#
# Copyright 2003, Juan Segarra Flor
#
# This is part of videocache
#
# Videocache 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.
#
# Videocache 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 Foobar; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

#GFLAG = -pg
all: videocache
videocache: videocache.c cachetree.o videos.o bwtable.o config.o Random.o Boolean.o
	g++ -Wall -O2 $(GFLAG) -o videocache videocache.c cachetree.o videos.o bwtable.o config.o Random.o Boolean.o
cachetree.o: cachetree.c cachetree.h config.h
	g++ -Wall -c -O2 $(GFLAG) cachetree.c
videos.o: videos.c videos.h config.h
	g++ -Wall -c -O2 $(GFLAG) videos.c
bwtable.o: bwtable.c bwtable.h config.h
	g++ -Wall -c -O2 $(GFLAG) bwtable.c
config.o: config.c config.h
	g++ -Wall -c -O2 $(GFLAG) config.c
Random.o:
	make -Wall -C distr
Boolean.o:
	make -Wall -C distr
clean:
	rm *.o videocache distr/*.o

