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=cc 13CFLAGS=-pipe -D_WANT_SEMUN -O2 -fno-strict-aliasing 14 15# Where to install buffer and its manual pages 16INSTBIN=/opengrok/src/dports/misc/buffer/stage/usr/local/bin 17INSTMAN=/opengrok/src/dports/misc/buffer/stage/usr/local/man/man1 18# The manual page section (normally l or 1) 19S=1 20 21RM=/bin/rm 22ALL=README buffer.man Makefile buffer.c sem.c sem.h COPYING 23 24all: buffer 25 26buffer.o: buffer.c 27 28sem.o: sem.c 29 30buffer: buffer.o sem.o 31 $(CC) -o buffer $(CFLAGS) buffer.o sem.o 32 33clean: 34 $(RM) -f *.o core buffer .merrs 35 36install: buffer 37 install -s buffer $(INSTBIN)/buffer 38 install -m 644 buffer.man $(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