Lines 1-60
Link Here
|
1 |
--- Makefile.orig Thu Nov 25 22:42:26 1999 |
1 |
*** Makefile.orig Sun Dec 21 05:23:51 2003 |
2 |
+++ Makefile Thu Jan 27 15:03:54 2000 |
2 |
--- Makefile Sat Jan 21 17:34:53 2006 |
3 |
@@ -26,14 +26,14 @@ |
3 |
*************** |
4 |
c = -DHAVEMEMCMP |
4 |
*** 26,56 **** |
5 |
## Define DEFFMTCMD to being how to format the media you use the most |
5 |
#b = -UUNIXPC |
6 |
## This is the DEFault FoRMat CoManD. |
6 |
## Define HAVEMEMCMP if you have memcmp otherwise assumes bcmp |
7 |
-d = -DDEFFMTCMD='"fdformat /dev/fd0H1440"' |
7 |
c = -DHAVEMEMCMP |
8 |
+d = -DDEFFMTCMD='"/usr/bin/fdformat -f 1440 /dev/fd0.1440"' |
8 |
## Define DEFFMTCMD to being how to format the media you use the most |
9 |
## Define LONGZFILE if you want .Z to be tagged on the end of a 14 char |
9 |
## This is the DEFault FoRMat CoManD. |
10 |
## file name (or longer for BSD) in the archive when the file is compressed |
10 |
! d = -DDEFFMTCMD='"fdformat /dev/fd0H1440"' |
11 |
#e = -DLONGZFILE |
11 |
## Define LONGZFILE if you want .Z to be tagged on the end of a 14 char |
12 |
|
12 |
## file name (or longer for BSD) in the archive when the file is compressed |
13 |
## Define PRG_COMPRESS to get something other than `gzip'. |
13 |
#e = -DLONGZFILE |
14 |
# you need to edit compfile.c (-G option) if you change this line. |
14 |
|
15 |
-f = -DPRG_COMPRESS='"gzip"' |
15 |
## Define HAVE_LCHOWN is the system has an lchown call (like chown but does |
16 |
+f = -DPRG_COMPRESS='"/usr/bin/gzip"' |
16 |
## not follow symlinks) |
17 |
|
17 |
e2 = -DHAVE_LCHOWN |
18 |
## Define HAVEFNMATCH if you want to use the gnu fnmatch() routine for |
18 |
|
19 |
# -y -Y -w -W matching. |
19 |
## Define PRG_COMPRESS to get something other than `gzip'. |
20 |
@@ -43,6 +43,11 @@ |
20 |
# you need to edit compfile.c (-G option) if you change this line. |
21 |
|
21 |
! f = -DPRG_COMPRESS='"gzip"' |
22 |
g = -DHAVEFNMATCH |
22 |
|
23 |
|
23 |
## Define HAVEFNMATCH if you want to use the gnu fnmatch() routine for |
24 |
+## Define HAVE_PARAM_H if your system has sys/param.h. This is used for BSD |
24 |
# -y -Y -w -W matching. |
25 |
+# detection. |
25 |
# If it is not defined, a primitive replacement match routine is used that |
26 |
+ |
26 |
# only supports patterns of the form "cccc" and "cccc*". Make sure that |
27 |
+h = -DHAVE_PARAM_H |
27 |
# you change the manual page in this case. |
28 |
+ |
28 |
|
29 |
# fnmatch() is in the gnu C library, so it is directly available on |
29 |
g = -DHAVEFNMATCH |
30 |
# Linux. If your system (e.g. SCO) does not have the gnu C library, |
30 |
|
31 |
# unpack the archive gnu.fnmatch.tar.gz and uncomment the following |
31 |
# fnmatch() is in the gnu C library, so it is directly available on |
32 |
@@ -56,13 +61,14 @@ |
32 |
# Linux. If your system (e.g. SCO) does not have the gnu C library, |
33 |
|
33 |
# unpack the archive gnu.fnmatch.tar.gz and uncomment the following |
34 |
#CFLAGS1 = -ggdb |
34 |
# two lines: |
35 |
#CFLAGS1 = -Wall -s -g -O2 -fomit-frame-pointer |
35 |
|
36 |
-CFLAGS1 = -Wall -O2 -fomit-frame-pointer |
36 |
--- 26,61 ---- |
37 |
+#CFLAGS1 = -Wall -O2 -fomit-frame-pointer |
37 |
#b = -UUNIXPC |
38 |
+CFLAGS1 = -fomit-frame-pointer -fno-strength-reduce |
38 |
## Define HAVEMEMCMP if you have memcmp otherwise assumes bcmp |
39 |
|
39 |
c = -DHAVEMEMCMP |
40 |
|
40 |
## Define DEFFMTCMD to being how to format the media you use the most |
41 |
-CC=gcc |
41 |
## This is the DEFault FoRMat CoManD. |
42 |
+#CC=gcc |
42 |
! d = -DDEFFMTCMD='"/usr/sbin/fdformat -f 1440 /dev/fd0"' |
43 |
|
43 |
## Define LONGZFILE if you want .Z to be tagged on the end of a 14 char |
44 |
|
44 |
## file name (or longer for BSD) in the archive when the file is compressed |
45 |
-CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $I |
45 |
#e = -DLONGZFILE |
46 |
+CFLAGS += ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $h $I |
46 |
|
47 |
LDFLAGS = |
47 |
## Define HAVE_LCHOWN is the system has an lchown call (like chown but does |
48 |
|
48 |
## not follow symlinks) |
49 |
afio : afio.o compfile.o exten.o match.o $M |
49 |
e2 = -DHAVE_LCHOWN |
50 |
@@ -72,8 +78,8 @@ |
50 |
|
51 |
rm -f *.o afio |
51 |
## Define PRG_COMPRESS to get something other than `gzip'. |
52 |
|
52 |
# you need to edit compfile.c (-G option) if you change this line. |
53 |
install: afio |
53 |
! f = -DPRG_COMPRESS='"/usr/bin/gzip"' |
54 |
- cp afio /usr/bin |
54 |
|
55 |
- cp afio.1 /usr/man/man1 |
55 |
## Define HAVEFNMATCH if you want to use the gnu fnmatch() routine for |
56 |
+ install -cs -o root -g wheel afio ${PREFIX}/bin |
56 |
# -y -Y -w -W matching. |
57 |
+ install -c -o root -g wheel afio.1 ${PREFIX}/man/man1 |
57 |
# If it is not defined, a primitive replacement match routine is used that |
58 |
|
58 |
# only supports patterns of the form "cccc" and "cccc*". Make sure that |
59 |
|
59 |
# you change the manual page in this case. |
60 |
afio.o : afio.h patchlevel.h |
60 |
|
|
|
61 |
g = -DHAVEFNMATCH |
62 |
|
63 |
+ ## Define HAVE_PARAM_H if your system has sys/param.h. This is used for BSD |
64 |
+ # detection. |
65 |
+ |
66 |
+ h = -DHAVE_PARAM_H |
67 |
+ |
68 |
# fnmatch() is in the gnu C library, so it is directly available on |
69 |
# Linux. If your system (e.g. SCO) does not have the gnu C library, |
70 |
# unpack the archive gnu.fnmatch.tar.gz and uncomment the following |
71 |
# two lines: |
72 |
|
73 |
*************** |
74 |
*** 69,83 **** |
75 |
|
76 |
# even more warnings flags.. |
77 |
MW= |
78 |
#MW=-Wtraditional -Wcast-qual -Wcast-align -Wconversion -pedantic -Wlong-long -Wimplicit -Wuninitialized -W -Wshadow -Wsign-compare -Wstrict-prototypes -Wmissing-declarations |
79 |
|
80 |
! CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer ${LARGEFILEFLAGS} ${MW} |
81 |
|
82 |
! CC=gcc |
83 |
|
84 |
! CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e ${e2} $f $g $I |
85 |
LDFLAGS = |
86 |
|
87 |
afio : afio.o compfile.o exten.o match.o $M |
88 |
${CC} ${LDFLAGS} afio.o compfile.o exten.o match.o $M -o afio |
89 |
|
90 |
--- 74,91 ---- |
91 |
|
92 |
# even more warnings flags.. |
93 |
MW= |
94 |
#MW=-Wtraditional -Wcast-qual -Wcast-align -Wconversion -pedantic -Wlong-long -Wimplicit -Wuninitialized -W -Wshadow -Wsign-compare -Wstrict-prototypes -Wmissing-declarations |
95 |
|
96 |
! #CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer ${LARGEFILEFLAGS} ${MW} |
97 |
! CFLAGS1 = -fomit-frame-pointer -fno-strength-reduce |
98 |
|
99 |
! #CC=gcc |
100 |
! CC=cc |
101 |
|
102 |
! #CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e ${e2} $f $g $I |
103 |
! CFLAGS += ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $h $I |
104 |
LDFLAGS = |
105 |
|
106 |
afio : afio.o compfile.o exten.o match.o $M |
107 |
${CC} ${LDFLAGS} afio.o compfile.o exten.o match.o $M -o afio |
108 |
|
109 |
*************** |
110 |
*** 86,97 **** |
111 |
rm -f regtest/cmpstat regtest/makesparse |
112 |
rm -f regtest/statsize regtest/statsize64 |
113 |
cd regtest; /bin/sh regtest.clean |
114 |
|
115 |
install: afio |
116 |
! cp afio /usr/local/bin |
117 |
! cp afio.1 /usr/share/man/man1 |
118 |
|
119 |
# generate default list of -E extensions from manpage |
120 |
# note: on sun, I had to change awk command below to nawk or gawk |
121 |
# to get it to work. |
122 |
exten_default.h : afio.1 |
123 |
--- 94,106 ---- |
124 |
rm -f regtest/cmpstat regtest/makesparse |
125 |
rm -f regtest/statsize regtest/statsize64 |
126 |
cd regtest; /bin/sh regtest.clean |
127 |
|
128 |
install: afio |
129 |
! install -cs -o root -g wheel afio ${PREFIX}/bin |
130 |
! install -c -o root -g wheel afio.1 ${PREFIX}/man/man1 |
131 |
! |
132 |
|
133 |
# generate default list of -E extensions from manpage |
134 |
# note: on sun, I had to change awk command below to nawk or gawk |
135 |
# to get it to work. |
136 |
exten_default.h : afio.1 |