blob: 81d169c81703998d049217985fcbcb350ae5658c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
$NetBSD: patch-aa,v 1.5 1998/08/07 11:10:09 agc Exp $
--- buffer.c.orig Wed Jul 14 17:59:17 1993
+++ buffer.c Wed Mar 4 16:32:52 1998
@@ -384,6 +384,7 @@
}
/* The interrupt handler */
+void
shutdown()
{
static int shutting;
@@ -400,6 +401,7 @@
}
/* Shutdown because the child has ended */
+void
child_shutdown()
{
/* Find out which child has died. (They may not be my
--- Makefile.orig Wed Jul 14 17:59:17 1993
+++ Makefile Fri Apr 10 23:31:14 1998
@@ -4,13 +4,13 @@
# You should also add -DSYS5 for Ultrix, AIX, and Solarix.
# 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.)
-CFLAGS=
+CFLAGS=-O
# Where to install buffer and its manual pages
-INSTBIN=/usr/local/bin
-INSTMAN=/usr/man/manl
+INSTBIN=${PREFIX}/bin
+INSTMAN=${PREFIX}/man/man1
# The manual page section (normally l or 1)
-S=l
+S=1
RM=/bin/rm
ALL=README buffer.man Makefile buffer.c sem.c COPYING
@@ -18,18 +18,14 @@
all: buffer
buffer: buffer.o sem.o
- $(CC) -o buffer $(CFLAGS) buffer.o sem.o
+ $(CC) -o buffer buffer.o sem.o
clean:
$(RM) -f *.o core buffer .merrs
install: buffer
- rm -f $(INSTBIN)/buffer
- cp buffer $(INSTBIN)/buffer
- chmod 111 $(INSTBIN)/buffer
- rm -f $(INSTMAN)/buffer.$S
- cp buffer.man $(INSTMAN)/buffer.$S
- chmod 444 $(INSTMAN)/buffer.$S
+ ${BSD_INSTALL_PROGRAM} buffer $(INSTBIN)/buffer
+ ${BSD_INSTALL_MAN} buffer.man $(INSTMAN)/buffer.$S
buffer.tar: $(ALL)
$(RM) -f buffer.tar
|