2 CFLAGS=-g -O0 -Wall -W -I../..
5 LIBNFS_OBJ = libnfs-raw-mount.o libnfs-raw-portmap.o libnfs-raw-nfs.o libnfs-raw-nfsacl.o mount.o nfs.o nfsacl.o portmap.o pdu.o init.o socket.o libnfs.o libnfs-sync.o
7 all: tools/nfsclient-raw tools/nfsclient-async tools/nfsclient-sync
9 tools/nfsclient-async: tools/nfsclient-async.c libnfs.a
10 $(CC) $(CFLAGS) -o $@ tools/nfsclient-async.c libnfs.a $(LIBS)
12 tools/nfsclient-sync: tools/nfsclient-sync.c libnfs.a
13 $(CC) $(CFLAGS) -o $@ tools/nfsclient-sync.c libnfs.a $(LIBS)
15 tools/nfsclient-raw: tools/nfsclient-raw.c libnfs.a
16 $(CC) $(CFLAGS) -o $@ tools/nfsclient-raw.c libnfs.a $(LIBS)
18 libnfs.a: $(LIBNFS_OBJ)
19 @echo Creating library $@
20 ar r libnfs.a $(LIBNFS_OBJ)
23 rpc/mount.h: rpc/mount.x
25 rpcgen -h rpc/mount.x > $@
27 libnfs-raw-mount.c: rpc/mount.x
29 rpcgen -c rpc/mount.x > libnfs-raw-mount.c
31 libnfs-raw-mount.o: libnfs-raw-mount.c rpc/mount.h
33 gcc -g -c libnfs-raw-mount.c -o $@
37 rpcgen -h rpc/nfs.x > $@
39 libnfs-raw-nfs.c: rpc/nfs.x
41 rpcgen -c rpc/nfs.x > $@
43 libnfs-raw-nfs.o: libnfs-raw-nfs.c rpc/nfs.h
45 gcc -g -c libnfs-raw-nfs.c -o $@
47 rpc/nfsacl.h: rpc/nfsacl.x
49 rpcgen -h rpc/nfsacl.x > $@
51 libnfs-raw-nfsacl.c: rpc/nfsacl.x
53 rpcgen -c rpc/nfsacl.x > $@
55 libnfs-raw-nfsacl.o: libnfs-raw-nfsacl.c rpc/nfsacl.h
57 gcc -g -c libnfs-raw-nfsacl.c -o $@
59 rpc/portmap.h: rpc/portmap.x
61 rpcgen -h rpc/portmap.x > $@
63 libnfs-raw-portmap.c: rpc/portmap.x
65 rpcgen -c rpc/portmap.x > $@
67 libnfs-raw-portmap.o: libnfs-raw-portmap.c rpc/portmap.h
69 gcc -g -c libnfs-raw-portmap.c -o $@
74 rm -f rpc/mount.h libnfs-raw-mount.c
75 rm -f rpc/nfs.h libnfs-raw-nfs.c
76 rm -f rpc/nfsacl.h libnfs-raw-nfsacl.c
77 rm -f rpc/portmap.h libnfs-raw-portmap.c
78 rm -f tools/nfsclient-raw tools/nfsclient-async tools/nfsclient-sync