Lines 1-9
Link Here
|
1 |
--- Makefile.orig 2003-12-21 10:23:51 UTC |
1 |
--- Makefile.orig 2018-11-30 14:25:04 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -28,7 +28,7 @@ SHELL=/bin/sh |
3 |
@@ -28,7 +28,7 @@ SHELL=/bin/sh |
4 |
c = -DHAVEMEMCMP |
4 |
c = -DHAVEMEMCMP |
5 |
## Define DEFFMTCMD to being how to format the media you use the most |
5 |
## Define DEFFMTCMD to being how to format the media you use the most |
6 |
## This is the DEFault FoRMat CoManD. |
6 |
## This is the DEFault FoRMat CoManD. |
7 |
-d = -DDEFFMTCMD='"fdformat /dev/fd0H1440"' |
7 |
-d = -DDEFFMTCMD='"fdformat /dev/fd0H1440"' |
8 |
+d = -DDEFFMTCMD='"/usr/sbin/fdformat -f 1440 /dev/fd0"' |
8 |
+d = -DDEFFMTCMD='"/usr/sbin/fdformat -f 1440 /dev/fd0"' |
9 |
## Define LONGZFILE if you want .Z to be tagged on the end of a 14 char |
9 |
## Define LONGZFILE if you want .Z to be tagged on the end of a 14 char |
Lines 25-54
Link Here
|
25 |
+## Define HAVE_PARAM_H if your system has sys/param.h. This is used for BSD |
25 |
+## Define HAVE_PARAM_H if your system has sys/param.h. This is used for BSD |
26 |
+# detection. |
26 |
+# detection. |
27 |
+ |
27 |
+ |
28 |
+h = -DHAVE_PARAM_H |
28 |
+h = -DHAVE_PARAM_H |
29 |
+ |
29 |
+ |
30 |
# fnmatch() is in the gnu C library, so it is directly available on |
30 |
# fnmatch() is in the gnu C library, so it is directly available on |
31 |
# Linux. If your system (e.g. SCO) does not have the gnu C library, |
31 |
# Linux. If your system (e.g. SCO) does not have the gnu C library, |
32 |
# unpack the archive gnu.fnmatch.tar.gz and uncomment the following |
32 |
# unpack the archive gnu.fnmatch.tar.gz and uncomment the following |
33 |
@@ -71,11 +76,14 @@ LARGEFILEFLAGS=-D_FILE_OFFSET_BITS=64 -D |
33 |
@@ -74,13 +79,15 @@ MW=-Wformat -Werror=format-security -Wal |
34 |
MW= |
34 |
#code can be reviewed manually |
35 |
#MW=-Wtraditional -Wcast-qual -Wcast-align -Wconversion -pedantic -Wlong-long -Wimplicit -Wuninitialized -W -Wshadow -Wsign-compare -Wstrict-prototypes -Wmissing-declarations |
35 |
#MW=-Wtraditional -Wcast-qual -Wcast-align -Wconversion -pedantic -Wlong-long -Wimplicit -Wuninitialized -W -Wshadow -Wsign-compare -Wstrict-prototypes -Wmissing-declarations |
36 |
|
36 |
|
37 |
-CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer ${LARGEFILEFLAGS} ${MW} |
37 |
-CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer -Wno-unused-result $(LARGEFILEFLAGS) $(MW) |
38 |
+#CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer ${LARGEFILEFLAGS} ${MW} |
38 |
+#CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer -Wno-unused-result $(LARGEFILEFLAGS) $(MW) |
39 |
+CFLAGS1 = -fomit-frame-pointer -fno-strength-reduce |
39 |
+CFLAGS1 = -fomit-frame-pointer |
40 |
|
40 |
|
41 |
-CC=gcc |
41 |
-CC=gcc |
42 |
+#CC=gcc |
42 |
+#CC=gcc |
43 |
+#CC=cc |
|
|
44 |
|
43 |
|
45 |
-CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e ${e2} $f $g $I |
44 |
# also using contents of usin CPPFLAGS, CFLAGS, LDFLAGS out of environment |
46 |
+#CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e ${e2} $f $g $I |
45 |
# variables, if they exist |
47 |
+CFLAGS += ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $h $I |
46 |
-CFLAGS += $(CFLAGS1) $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $(e2) $f $g $I |
48 |
LDFLAGS = |
47 |
+#CFLAGS += $(CFLAGS1) $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $(e2) $f $g $I |
|
|
48 |
+CFLAGS += $(CFLAGS1) $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $I |
49 |
LDFLAGS += |
50 |
CPPFLAGS += |
49 |
|
51 |
|
50 |
afio : afio.o compfile.o exten.o match.o $M |
52 |
@@ -95,8 +102,8 @@ clean: |
51 |
@@ -88,8 +96,9 @@ clean: |
|
|
52 |
cd regtest; /bin/sh regtest.clean |
53 |
cd regtest; /bin/sh regtest.clean |
53 |
|
54 |
|
54 |
install: afio |
55 |
install: afio |
Lines 56-62
Link Here
|
56 |
- cp afio.1 /usr/share/man/man1 |
57 |
- cp afio.1 /usr/share/man/man1 |
57 |
+ ${BSD_INSTALL_PROGRAM} afio ${DESTDIR}${PREFIX}/bin |
58 |
+ ${BSD_INSTALL_PROGRAM} afio ${DESTDIR}${PREFIX}/bin |
58 |
+ ${BSD_INSTALL_MAN} afio.1 ${DESTDIR}${PREFIX}/man/man1 |
59 |
+ ${BSD_INSTALL_MAN} afio.1 ${DESTDIR}${PREFIX}/man/man1 |
59 |
+ |
|
|
60 |
|
60 |
|
61 |
# generate default list of -E extensions from manpage |
61 |
# generate default list of -E extensions from manpage |
62 |
# note: on sun, I had to change awk command below to nawk or gawk |
62 |
# note: on sun, I had to change awk command below to nawk or gawk |