diff options
Diffstat (limited to 'rpc++/example/Makefile')
-rw-r--r-- | rpc++/example/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/rpc++/example/Makefile b/rpc++/example/Makefile new file mode 100644 index 00000000000..4abd7b4488f --- /dev/null +++ b/rpc++/example/Makefile @@ -0,0 +1,40 @@ +TOP = .. +SUBDIRS = + +CC = gcc +CPPFLAGS = -I.. +CFLAGS = -ggdb +C++FLAGS = $(CFLAGS) +# for Sun: +#LOADLIBES = -L.. -lrpc++ -lg++ +# for ISC 2.2: +LOADLIBES = -L.. -lrpc++ -lrpclib -lmisc -lg++ -linet -liberty + +HDRS = calcsvc.h +SRCS = server.cc client.cc calcsvc.cc + +all:: server client + +server: server.o calcsvc.o + $(CC) -o $@ server.o calcsvc.o $(LOADLIBES) + +client: client.o calcsvc.o + $(CC) -o $@ client.o calcsvc.o ../request.o $(LOADLIBES) + +DISTLIST = Makefile $(HDRS) $(SRCS) + +clean:: + rm -f $(CLEANWILDCARDS) server client + +include .dependencies + +.dependencies: $(HDRS) $(SRCS) + gcc -M $(CPPFLAGS) $(SRCS) > .dependencies + +distlist:: + @for f in *.[ch] *.cc; do \ + if expr " $(DISTLIST) " : ".* $$f " >/dev/null; then : ; \ + else echo 1>&2 "Warning: c- or h-file \"$$f\" not in DISTLIST"; fi; \ + done + +include $(TOP)/Proj.make |