Debian Codegraph @

Makefile

raw ◀ ▶
2 Debian patches touch this file
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
12 CC=gcc
13 CFLAGS=-Wall
14
15 # Where to install buffer and its manual pages
16 INSTBIN=/usr/local/bin
17 INSTMAN=/usr/man/manl
18 # The manual page section (normally l or 1)
19 S=l
20
21 RM=/bin/rm
22 ALL=README buffer.man Makefile buffer.c sem.c sem.h COPYING
23
24 all: buffer
25
26 buffer: buffer.o sem.o
•27 $(CC) -o buffer $(CFLAGS) $(LDFLAGS) buffer.o sem.o
28
29 clean:
30 $(RM) -f *.o core buffer .merrs
31
32 install: 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
40 buffer.tar: $(ALL)
41 $(RM) -f buffer.tar
42 tar cvf buffer.tar $(ALL)
43
44 buffer.shar: $(ALL)
45 $(RM) -f buffer.shar
46 shar $(ALL) > buffer.shar
•47
48 check: buffer
49 bash check.bash