equal
deleted
inserted
replaced
1 # Makefile: To build client and server for ftp implemented using RPC |
1 # Makefile: To build client and server for ftp implemented using RPC |
2 |
2 |
3 all: stubs ftp_xdr.o ftps ftpc |
3 all: stubs ftp_xdr.o server client |
|
4 |
|
5 debug: stubs ftp_xdr.o ftps-dbg ftpc-dbg |
4 |
6 |
5 server: ftps |
7 server: ftps |
6 |
8 |
|
9 server-dbg: ftps-dbg |
|
10 |
7 client: ftpc |
11 client: ftpc |
|
12 |
|
13 client-dbg: ftpc-dbg |
8 |
14 |
9 ftps: ftp_svc.c ftps.c ftp_xdr.o ftp.h |
15 ftps: ftp_svc.c ftps.c ftp_xdr.o ftp.h |
10 gcc ftp_svc.c ftps.c ftp_xdr.o -o ftps |
16 gcc ftp_svc.c ftps.c ftp_xdr.o -o ftps |
11 |
17 |
|
18 ftps-dbg: ftp_svc.c ftps.c ftp_xdr.o ftp.h |
|
19 gcc ftp_svc.c ftps.c ftp_xdr.o -o ftps-dbg -g |
|
20 |
12 ftpc: ftpc.c ftp_clnt.c ftp_xdr.o ftp.h |
21 ftpc: ftpc.c ftp_clnt.c ftp_xdr.o ftp.h |
13 gcc ftpc.c ftp_clnt.c ftp_xdr.o -o ftpc |
22 gcc ftpc.c ftp_clnt.c ftp_xdr.o -o ftpc |
|
23 |
|
24 ftpc-dbg: ftpc.c ftp_clnt.c ftp_xdr.o ftp.h |
|
25 gcc ftpc.c ftp_clnt.c ftp_xdr.o -o ftpc-dbg -g |
14 |
26 |
15 ftp_xdr.o: ftp_xdr.c ftp.h |
27 ftp_xdr.o: ftp_xdr.c ftp.h |
16 gcc -c ftp_xdr.c |
28 gcc -c ftp_xdr.c |
17 |
29 |
18 stubs: ftp.x |
30 stubs: ftp.x |
19 rpcgen ftp.x |
31 rpcgen ftp.x |
20 |
32 |
21 clean: |
33 clean: |
22 rm ftp_xdr.o ftpc ftps ftp_clnt.c ftp_svc.c ftp_xdr.c ftp.h |
34 rm ftp_xdr.o ftpc ftps ftp_clnt.c ftp_svc.c ftp_xdr.c ftp.h ftps-dbg ftpc-dbg |