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	install -s buffer $(INSTBIN)/buffer
34	install -m 644 buffer.man $(INSTMAN)/buffer.$S
35
36buffer.tar: $(ALL)
37	$(RM) -f buffer.tar
38	tar cvf buffer.tar $(ALL)
39
40buffer.shar: $(ALL)
41	$(RM) -f buffer.shar
42	shar $(ALL) > buffer.shar
43