home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / comm / tcp / amitcp / src / examples / rpc / msg / smakefile < prev   
Encoding:
Makefile  |  1994-05-15  |  1.3 KB  |  62 lines

  1. # $Id: Smakefile,v 1.3 1994/05/15 11:47:21 jraja Exp $
  2. #
  3. # Smakefile for msg
  4. #
  5. # Copyright © 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
  6. #                  Helsinki University of Technology, Finland.
  7. #                  All rights reserved.
  8. #
  9. # $Log: Smakefile,v $
  10. # Revision 1.3  1994/05/15  11:47:21  jraja
  11. # Removed usr.lib from libraries.
  12. #
  13. # Revision 1.2  1994/03/09  01:52:17  jraja
  14. # Updated for the first release.
  15. #
  16. # Revision 1.1  1993/11/19  03:19:40  jraja
  17. # Initial revision
  18. #
  19. #
  20.  
  21. MAKE = smake
  22. RM= delete
  23. CC= sc
  24. RPCCOM = rpcgen
  25. LD= slink
  26.  
  27. #
  28. # Note that we have selected the register argument version of the rpc
  29. # library and the SCOPTIONS file has PARAMETERS option set to REGISTER.
  30. #
  31. LIBS= LIB NETLIB:rpcr.lib NETLIB:net.lib
  32.  
  33. BIN = printmsg msg_svc rprintmsg
  34. GEN = msg_clnt.c msg_svc.c msg_xdr.c msg.h
  35.  
  36. all: $(BIN)
  37.  
  38. #
  39. # This is the non-networked version of the program
  40. #
  41. printmsg: printmsg.o
  42.     $(CC) LINK TO $@ OBJ printmsg.o
  43.  
  44. #
  45. # note: the generated xdr file is virtually empty.
  46. #
  47. $(GEN): msg.x
  48.     $(RPCCOM) msg.x
  49.  
  50. msg_svc: msg_proc.o msg_svc.o
  51.     $(CC) LINK TO $@ OBJ msg_proc.o msg_svc.o $(LIBS)
  52.  
  53. rprintmsg: rprintmsg.o msg_clnt.o
  54.     $(CC) LINK TO $@ OBJ rprintmsg.o msg_clnt.o $(LIBS)
  55.  
  56. rprintmsg.o: rprintmsg.c msg.h
  57.  
  58. msg_proc.o: msg_proc.c msg.h
  59.  
  60. clean cleanup:
  61.     -$(RM) \#?.(o|asm|map|lnk) $(GEN) $(BIN) \#?!
  62.