CC=gcc
CFLAGS=-O3 -fomit-frame-pointer

all: rsbep dvr

rsbep: rsbep.c rs.c rs.h Makefile
	$(CC) $(CFLAGS) -o rsbep rsbep.c rs.c

clean:
	rm *.o -f
	rm rsbep -f

dvr: dvr.c
	$(CC) -o dvr dvr.c

install:
	install rsbep     /usr/bin
	strip             /usr/bin/rsbep
	install tar2dv.sh /usr/bin
	install dv2ver.sh /usr/bin
	install dv2tar.sh /usr/bin
	install dvr       /usr/bin
	strip 		  /usr/bin/dvr
