summaryrefslogtreecommitdiff
path: root/security/nfsbug/patches/patch-aa
blob: 2c03eee1966f2ebd8b61f6cc8ffbb35dcdf3e9ad (plain)
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
--- Makefile.orig	Fri Feb 17 06:57:26 1995
+++ Makefile	Mon Sep 28 17:44:50 1998
@@ -1,21 +1,33 @@
-CC=cc
-#CFLAGS=-g -I. -DSVR4
+CC=gcc
+CFLAGS=-O2 -I.
+#CFLAGS=-ggdb -I. -DSVR4 -w
 #LIBS=-lsocket -lnsl -L/usr/ucblib -lucb -lresolv
-CFLAGS=-ggdb -I.
+#LIBS=-lsocket -lnsl -lresolv
+#CFLAGS=-ggdb -I.
 LIBS=
 NFSBUG_SOURCES=mount_clnt.c mount_xdr.c nfs_prot_clnt.c nfs_prot_xdr.c nfsbug.c
 NFSBUG_OBJECTS=mount_clnt.o mount_xdr.o nfs_prot_clnt.o nfs_prot_xdr.o nfsbug.o
+NFSSHELL_SOURCES=nfsshell.c nfs_prot_clnt.c nfs_prot_xdr.c mount_clnt.c mount_xdr.c
+NFSSHELL_OBJECTS=nfsshell.o nfs_prot_clnt.o nfs_prot_xdr.o mount_clnt.o mount_xdr.o
 RPCGEN_MOUNT= mount.h mount_clnt.c mount_svc.c mount_xdr.c
 RPCGEN_NFS_PROT= nfs_prot.h nfs_prot_clnt.c nfs_prot_svc.c nfs_prot_xdr.c
 
+all: nfsbug nfsshell
+
+nfsshell: ${NFSSHELL_OBJECTS}
+	$(CC) ${CFLAGS} -o nfsshell $(NFSSHELL_OBJECTS) $(LIBS)
+
+${NFSSHELL_OBJECTS}: ${NFSSHELL_SOURCES}
+
 nfsbug:	$(NFSBUG_OBJECTS)
-	$(CC) -g -o nfsbug $(NFSBUG_OBJECTS) $(LIBS)
+	$(CC) ${CFLAGS} -o nfsbug $(NFSBUG_OBJECTS) $(LIBS)
 
 lint:	$(NFSBUG_SOURCES)
 	lint $(NFSBUG_SOURCES)
 
 clean:
 	rm -f nfsbug $(NFSBUG_OBJECTS) $(RPCGEN_MOUNT) $(RPCGEN_NFS_PROT) core
+	rm -f ${NFSSHELL_OBJECTS}
 
 $(RPCGEN_MOUNT):; rpcgen mount.x
 $(RPCGEN_NFS_PROT):; rpcgen nfs_prot.x