0
|
1 CC=cc
|
|
2 COMFLAGS=-O
|
|
3 BIN=/usr/bin
|
|
4 MAN=/usr/man/man1
|
|
5 #define to "l" if manuals go on /usr/man/manl
|
|
6 L=1
|
|
7
|
|
8 all : compress atob btoa
|
|
9
|
|
10 compress : compress.c USERMEM
|
|
11 $(CC) $(COMFLAGS) -DUSERMEM=`cat USERMEM` -o compress compress.c
|
|
12
|
|
13 # USERMEM may have to be set by hand. It should contain the amount of
|
|
14 # available user memory in bytes. See the README file for more info.
|
|
15 USERMEM:
|
|
16 sh usermem > USERMEM
|
|
17
|
|
18 atob: atob.c
|
|
19 $(CC) $(COMFLAGS) -o atob atob.c
|
|
20
|
|
21 btoa: btoa.c
|
|
22 $(CC) $(COMFLAGS) -o btoa btoa.c
|
|
23
|
|
24 install: compress atob btoa zmore zcmp zdiff compressdir uncompressdir btoa.1 compress.1 compressdir.1 zmore.1 zcmp.1 tarmail untarmail
|
|
25 cp compress $(BIN)
|
|
26 rm -f $(BIN)/uncompress $(BIN)/zcat
|
|
27 ln $(BIN)/compress $(BIN)/uncompress
|
|
28 ln $(BIN)/compress $(BIN)/zcat
|
|
29 cp zmore zcmp zdiff compressdir uncompressdir $(BIN)
|
|
30 cp atob btoa tarmail untarmail $(BIN)
|
|
31 cp btoa.1 $(MAN)/btoa.$(L)
|
|
32 rm -f $(MAN)/atob.$(L) $(MAN)/tarmail.$(L) $(MAN)/untarmail.$(L)
|
|
33 ln $(MAN)/btoa.$(L) $(MAN)/atob.$(L)
|
|
34 ln $(MAN)/btoa.$(L) $(MAN)/tarmail.$(L)
|
|
35 ln $(MAN)/btoa.$(L) $(MAN)/untarmail.$(L)
|
|
36 cp compress.1 $(MAN)/compress.$(L)
|
|
37 rm -f $(MAN)/uncompress.$(L) $(MAN)/zcat.$(L)
|
|
38 ln $(MAN)/compress.$(L) $(MAN)/uncompress.$(L)
|
|
39 ln $(MAN)/compress.$(L) $(MAN)/zcat.$(L)
|
|
40 cp compressdir.1 $(MAN)/compressdir.$(L)
|
|
41 cp zmore.1 $(MAN)/zmore.$(L)
|
|
42 cp zcmp.1 $(MAN)/zcmp.$(L)
|
|
43 rm -f $(MAN)/zdiff.$(L)
|
|
44 ln $(MAN)/zcmp.$(L) $(MAN)/zdiff.$(L)
|
|
45
|
|
46 clean:
|
|
47 rm -f compress atob btoa
|