# With the DEBUG option turned on, the server will run in the foreground # and debugging prints will be listed. Without the DEBUG option the # server will run in the background, debugging prints will be routed to # /dev/null, and the server will have to be killed from the command line CFLAGS=-DDEBUG all: client client2 client3 server countchar_xdr.c countchar_svc.c countchar_clnt.c countchar.h: countchar.x rpcgen -MA countchar.x client: countmain.o countchar_clnt.o countchar_xdr.o cc -o countmain countmain.o countchar_clnt.o countchar_xdr.o -lnsl client2: countmain2.o countchar_xdr.o cc -o countmain2 countmain2.o countchar_xdr.o -lnsl client3: countmain3.o countchar_xdr.o cc -o countmain3 countmain3.o countchar_xdr.o -lnsl server: countsrvr.o countchar_svc.o countchar_xdr.o cc -o countsrvr countsrvr.o countchar_svc.o countchar_xdr.o -lnsl -lthread