51 lines
1.6 KiB
Text
51 lines
1.6 KiB
Text
$NetBSD: patch-aa,v 1.5 2015/12/16 10:44:44 dholland Exp $
|
|
|
|
- configure for pkgsrc
|
|
- honor pkgsrc CFLAGS
|
|
- build nfsshell as well as nfsbug
|
|
- run rpcgen before compiling; otherwise not MAKE_JOBS_SAFE
|
|
|
|
--- Makefile.orig 1995-02-17 05:57:26.000000000 +0000
|
|
+++ Makefile
|
|
@@ -1,21 +1,35 @@
|
|
-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: rpcgen .WAIT 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 -C mount.x
|
|
+$(RPCGEN_NFS_PROT):; rpcgen -C nfs_prot.x
|
|
|
|
-$(RPCGEN_MOUNT):; rpcgen mount.x
|
|
-$(RPCGEN_NFS_PROT):; rpcgen nfs_prot.x
|
|
+rpcgen: $(RPCGEN_MOUNT) $(RPCGEN_NFS_PROT)
|