43 lines
1.4 KiB
Text
43 lines
1.4 KiB
Text
$NetBSD: patch-aa,v 1.4 2004/02/22 19:30:52 jlam Exp $
|
|
|
|
--- Makefile.orig Fri Feb 17 00:57:26 1995
|
|
+++ Makefile Thu May 10 17:41:10 2001
|
|
@@ -1,14 +1,25 @@
|
|
-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)
|
|
@@ -17,5 +28,6 @@
|
|
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
|
|
+$(RPCGEN_MOUNT):; rpcgen -C mount.x
|
|
+$(RPCGEN_NFS_PROT):; rpcgen -C nfs_prot.x
|