############### BCBASE

CC = gcc
CFLAGS=-Wall -pedantic -O2

# set the following lines, if you do not have libquicktime.so installed 
# in a standard place
QUICKTIMEDIR=../src
CPPFLAGS=-I$(QUICKTIMEDIR)
MYLDFLAGS=-L$(QUICKTIMEDIR)

all: ggiplay runggiplay

ggiplay: ggiplay.o
	$(CC) -Wall -o ggiplay ggiplay.o $(MYLDFLAGS) -lquicktime -ljpeg -lggi -lm

runggiplay:
	echo "#!/bin/bash" >runggiplay
	echo "LD_LIBRARY_PATH=$(QUICKTIMEDIR) ./ggiplay \$$*" >>runggiplay
	chmod 755 runggiplay

clean:
	rm -f core
	rm -f *.o
	rm -f ggiplay runggiplay

install:
