--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ftp/Makefile Mon Jan 18 14:10:13 2010 +0530
@@ -0,0 +1,22 @@
+# Makefile: To build client and server for ftp implemented using RPC
+
+all: stubs ftp_xdr.o ftps ftpc
+
+server: ftps
+
+client: ftpc
+
+ftps: ftp_svc.c ftps.c ftp_xdr.o ftp.h
+ gcc ftp_svc.c ftps.c ftp_xdr.o -o ftps
+
+ftpc: ftpc.c ftp_clnt.c ftp_xdr.o ftp.h
+ gcc ftpc.c ftp_clnt.c ftp_xdr.o -o ftpc
+
+ftp_xdr.o: ftp_xdr.c ftp.h
+ gcc -c ftp_xdr.c
+
+stubs: ftp.x
+ rpcgen ftp.x
+
+clean:
+ rm ftp_xdr.o ftpc ftps ftp_clnt.c ftp_svc.c ftp_xdr.c ftp.h