summaryrefslogtreecommitdiff
path: root/rpc++/Makefile
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-21 21:41:34 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-21 21:41:34 +0000
commita5fdebc5f6375078ec1763850a4ca23ec7fe6458 (patch)
treebcf0a25c3d45a209a6e3ac37b233a4812f29c732 /rpc++/Makefile
downloadATCD-a5fdebc5f6375078ec1763850a4ca23ec7fe6458.tar.gz
Initial revision
Diffstat (limited to 'rpc++/Makefile')
-rw-r--r--rpc++/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/rpc++/Makefile b/rpc++/Makefile
new file mode 100644
index 00000000000..6b4819d2b7a
--- /dev/null
+++ b/rpc++/Makefile
@@ -0,0 +1,55 @@
+TOP = .
+SUBDIRS = StdHdrs example
+
+INSTROOT = ../..
+
+CC = gcc
+CFLAGS = -ggdb
+C++FLAGS = $(CFLAGS)
+
+LIBHDRS = rpc++/xdr++.h rpc++/request.h rpc++/service.h rpc++/stub.h \
+ rpc++/callback.h version.h
+LIBSRCS = xdr++.cc service.cc stub.cc request.cc callback.cc
+
+LIBOBJS = $(LIBSRCS:%.cc=%.o) $(GENSRCS:%.cc=%.o)
+
+all:: librpc++.a
+
+subdirs.all:: librpc++.a
+
+librpc++.a: $(LIBOBJS)
+ rm -f $@
+ ar cq $@ $(LIBOBJS)
+ if [ -x /bin/ranlib -o -x /usr/bin/ranlib ]; then ranlib $@; fi
+
+install:: librpc++.a
+ install -d $(INSTROOT)/lib
+ if cmp -s librpc++.a $(INSTROOT)/lib/librpc++.a; then : ; \
+ else rm -f $(INSTROOT)/lib/librpc++.a; \
+ cp -p librpc++.a $(INSTROOT)/lib; \
+ chmod 444 $(INSTROOT)/lib/librpc++.a; \
+ for f in rpc++/*.h; do \
+ rm -f $(INSTROOT)/include/$$f; done; fi
+ install -d $(INSTROOT)/include/rpc++
+ for f in rpc++/*.h; do \
+ cmp -s $$f $(INSTROOT)/include/$$f \
+ || install -c -m 444 $$f $(INSTROOT)/include/rpc++; done
+
+DISTLIST = Makefile README.ORIG README COPYING Proj.make rpc++.texi \
+ gcc-2.2.2.fix $(LIBHDRS) $(LIBSRCS)
+
+clean::
+ rm -f $(CLEANWILDCARDS) librpc++.a
+
+include .dependencies
+
+.dependencies: $(LIBHDRS) $(LIBSRCS)
+ gcc -M $(CPPFLAGS) $(LIBSRCS) > .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