home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / comm / tcp / amitcp-sdk / src / examples / rpc / msg / smakefile < prev   
Encoding:
Makefile  |  1994-09-29  |  1.1 KB  |  55 lines

  1. #
  2. #       $Id: Smakefile,v 4.1 1994/09/30 00:20:56 jraja Exp $
  3. #
  4. #       Smakefile for msg
  5. #
  6. #       Copyright © 1994 AmiTCP/IP Group, 
  7. #                        Network Solutions Development Inc.
  8. #                        All rights reserved.
  9. #
  10.  
  11. MAKE = smake
  12. RM= delete
  13. CC= sc
  14. RPCCOM = rpcgen
  15. LD= slink
  16.  
  17. #
  18. # Note that we have selected the register argument version of the rpc
  19. # library and the SCOPTIONS file has PARAMETERS option set to REGISTER.
  20. # Use the USE_DOSIO versions of the libraries.
  21. #
  22. LIBS= LIB NETLIB:rpcdr.lib NETLIB:netd.lib
  23.  
  24. CFLAGS= DEF=USE_DOSIO
  25.  
  26. BIN = printmsg msg_svc rprintmsg
  27. GEN = msg_clnt.c msg_svc.c msg_xdr.c msg.h
  28.  
  29. all: $(BIN)
  30.  
  31. #
  32. # This is the non-networked version of the program
  33. #
  34. printmsg: printmsg.o
  35.     $(CC) LINK TO $@ OBJ printmsg.o
  36.  
  37. #
  38. # note: the generated xdr file is virtually empty.
  39. #
  40. $(GEN): msg.x
  41.     $(RPCCOM) msg.x
  42.  
  43. msg_svc: msg_proc.o msg_svc.o
  44.     $(CC) LINK TO $@ OBJ msg_proc.o msg_svc.o $(LIBS)
  45.  
  46. rprintmsg: rprintmsg.o msg_clnt.o
  47.     $(CC) LINK TO $@ OBJ rprintmsg.o msg_clnt.o $(LIBS)
  48.  
  49. rprintmsg.o: rprintmsg.c msg.h
  50.  
  51. msg_proc.o: msg_proc.c msg.h
  52.  
  53. clean cleanup:
  54.     -$(RM) \#?.(o|asm|map|lnk) $(GEN) $(BIN) \#?!
  55.