home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / networking / rpcdemo / Makefile < prev    next >
Encoding:
Makefile  |  1994-08-02  |  874 b   |  43 lines

  1. #!smake
  2. #
  3. # Makefile for simple RPC client and server programs.
  4. #
  5.  
  6. include /usr/include/make/commondefs
  7.  
  8. # Object files for the server
  9. SOBJECTS= rm_svcproc.o rminfo_svc.o rminfo_xdr.o 
  10.  
  11. # Object files for the client
  12. COBJECTS= rminfo.o rminfo_clnt.o rminfo_xdr.o
  13.  
  14. SOURCE    = $(SOBJECTS:.o=.c) $(COBJECTS:.o=.c)
  15.  
  16. # Since these files are automatically generated by rpcgen, get rid of
  17. # them with the "clean" target.
  18. LDIRT    = rminfo_svc.c rminfo_xdr.c rminfo_clnt.c rminfo.h
  19.  
  20. LLDLIBS    = -lrpcsvc
  21. LCDEFS    = -D_BSD_SIGNALS
  22. LCOPTS    = -cckr
  23. CVERSION=
  24.  
  25.  
  26. TARGETS    = rpc.rminfod rminfo
  27.  
  28. default all: $(TARGETS)
  29.  
  30. include $(COMMONRULES)
  31.  
  32. # The -P option generates the files with ANSI C prototypes.
  33. rminfo.h: rminfo.x
  34.     rpcgen -P -C "$(CCF) -E" rminfo.x
  35.  
  36. rminfo: $(COBJECTS)
  37.     $(CCF) $(COBJECTS) $(LDFLAGS) -o $@
  38.  
  39. rpc.rminfod: $(SOBJECTS)
  40.     $(CCF) $(SOBJECTS) $(LDFLAGS) -o $@
  41.  
  42. $(SOURCE): rminfo.h
  43.