summaryrefslogtreecommitdiff
path: root/sysutils/afio/files/patch-aa
blob: 4f46eba8cab49b85252fe0ca93e24a193036df88 (plain) (blame)
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
--- Makefile.orig	Thu Nov 25 22:42:26 1999
+++ Makefile	Thu Jan 27 15:03:54 2000
@@ -26,14 +26,14 @@
 c	= -DHAVEMEMCMP
 ##  Define DEFFMTCMD to being how to format the media you use the most
 ##		This is the DEFault FoRMat CoManD. 
-d	= -DDEFFMTCMD='"fdformat /dev/fd0H1440"'
+d	= -DDEFFMTCMD='"/usr/bin/fdformat -f 1440 /dev/fd0.1440"'
 ##  Define LONGZFILE if you want .Z to be tagged on the end of a 14 char
 ##	file name (or longer for BSD) in the archive when the file is compressed
 #e	= -DLONGZFILE
 
 ##  Define PRG_COMPRESS to get something other than `gzip'.
 # you need to edit compfile.c (-G option) if you change this line.
-f	= -DPRG_COMPRESS='"gzip"'
+f	= -DPRG_COMPRESS='"/usr/bin/gzip"'
 
 ## Define HAVEFNMATCH if you want to use the gnu fnmatch() routine for
 # -y -Y -w -W matching.
@@ -43,6 +43,11 @@
 
 g	= -DHAVEFNMATCH
 
+## Define HAVE_PARAM_H if your system has sys/param.h. This is used for BSD
+#  detection.
+
+h 	= -DHAVE_PARAM_H
+
 # fnmatch() is in the gnu C library, so it is directly available on
 # Linux.  If your system (e.g. SCO) does not have the gnu C library,
 # unpack the archive gnu.fnmatch.tar.gz and uncomment the following
@@ -56,13 +61,14 @@
 
 #CFLAGS1 = -ggdb
 #CFLAGS1 = -Wall -s -g -O2 -fomit-frame-pointer
-CFLAGS1 = -Wall -O2 -fomit-frame-pointer
+#CFLAGS1 = -Wall -O2 -fomit-frame-pointer
+CFLAGS1 = -fomit-frame-pointer -fno-strength-reduce
 
 
-CC=gcc
+#CC=gcc
 
 
-CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $I
+CFLAGS += ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $h $I
 LDFLAGS =
 
 afio : afio.o compfile.o exten.o match.o $M
@@ -72,8 +78,8 @@
 	rm -f *.o afio
 
 install: afio
-	cp afio /usr/bin
-	cp afio.1 /usr/man/man1
+	install -cs -o root -g wheel afio ${PREFIX}/bin
+	install -c -o root -g wheel afio.1 ${PREFIX}/man/man1
 
 
 afio.o : afio.h patchlevel.h