# Make the buffer program

# You might need to add the following to CGFLAGS:
#
# Add -DSYS5 for A System 5 (USG) version of Unix
#   You should also add -DSYS5 for Ultrix, AIX, and Solaris.
# Add -DDEF_SHMEM=n if you can only have n bytes of shared memory
#   (eg: -DDEF_SHMEM=524288 if you can only have half a meg.)
# Add -DAMPEX to change the default settings suitable for the high capacity
#   Ampex drives, such as the DST 310.

CC=gcc
CFLAGS=-Wall

# Where to install buffer 
INSTBIN=/usr/local/bin

RM=/bin/rm
ALL=README Makefile buffer.c sem.c sem.h COPYING

all: buffer

buffer: buffer.o sem.o
	$(CC) -o buffer $(CFLAGS) buffer.o sem.o

clean:
	$(RM) -f *.o core buffer .merrs

install: buffer
	cp buffer $(INSTBIN)/buffer_lxdvdrip
	chmod 755 $(INSTBIN)/buffer_lxdvdrip

uninstall: buffer
	rm -f $(INSTBIN)/buffer_lxdvdrip
