1# Make the buffer program 2 3# You might need to add the following to CGFLAGS: 4# 5# Add -DSYS5 for A System 5 (USG) version of Unix 6# You should also add -DSYS5 for Ultrix, AIX, and Solaris. 7# Add -DDEF_SHMEM=n if you can only have n bytes of shared memory 8# (eg: -DDEF_SHMEM=524288 if you can only have half a meg.) 9# Add -DAMPEX to change the default settings suitable for the high capacity 10# Ampex drives, such as the DST 310. 11 12CC=gcc 13CFLAGS=-Wall 14 15# Where to install buffer and its manual pages 16INSTBIN=/usr/local/bin 17INSTMAN=/usr/man/manl 18# The manual page section (normally l or 1) 19S=l 20 21RM=/bin/rm 22ALL=README buffer.man Makefile buffer.c sem.c sem.h COPYING 23 24all: buffer 25 26buffer: buffer.o sem.o 27 $(CC) -o buffer $(CFLAGS) buffer.o sem.o 28 29clean: 30 $(RM) -f *.o core buffer .merrs 31 32install: buffer 33 rm -f $(INSTBIN)/buffer 34 cp buffer $(INSTBIN)/buffer 35 chmod 111 $(INSTBIN)/buffer 36 rm -f $(INSTMAN)/buffer.$S 37 cp buffer.man $(INSTMAN)/buffer.$S 38 chmod 444 $(INSTMAN)/buffer.$S 39 40buffer.tar: $(ALL) 41 $(RM) -f buffer.tar 42 tar cvf buffer.tar $(ALL) 43 44buffer.shar: $(ALL) 45 $(RM) -f buffer.shar 46 shar $(ALL) > buffer.shar 47