CFLAGS= -O2 -Wall -L/usr/local/lib -I/usr/local/include

all: aatv

video.o: video.c video.h
	gcc ${CFLAGS} -c -o video.o video.c

aatv: aatv.c video.o video.h
	gcc ${CFLAGS} -o aatv aatv.c video.o -laa

aatv.tgz: aatv README aatv.c video.c video.h README Makefile
	(cd .. ; tar -czf aatv/aatv.tgz aatv/aatv.c aatv/video.c aatv/video.h \
	    aatv/README aatv/Makefile)

clean:
	rm -f video.o aatv

