ftp/Makefile
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 18 Jan 2010 14:10:13 +0530
changeset 0 30d751ac6d49
child 1 47438813ede2
permissions -rw-r--r--
Solution to first assignment. First assignment was to implement a FTP Server and Client using SUN RPC. This is in C. Doesn't support binary file formats yet. Both binary file format transfer support and Python equivalent of the code is to be added yet.

# 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