home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / rpc / strout / makefile < prev    next >
Makefile  |  1996-07-23  |  2KB  |  72 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Samples                   **#
  4. #**                   strout Application                    **#
  5. #**         Copyright(c) Microsoft Corp. 1992-1996          **#
  6. #**                                                         **#
  7. #** This is the makefile used to make the client and the    **#
  8. #** server for the string-out program where the client gets **#
  9. #** the environment string from server, and displays them.  **#
  10. #** This file will compile for ANSI characters, to compile  **#
  11. #** for UNICODE, type nmake /f makefile.uni at the command  **#
  12. #** line                                                    **#
  13. #*************************************************************#
  14. # FILE : MAKEFILE
  15.  
  16. !include <ntwin32.mak>
  17.  
  18. # Let the compiler know what version we are running
  19. cflags=$(cflags) -D_WIN32_WINNT=0x400
  20.  
  21. all : client server
  22.  
  23. # Make the client side application 
  24. client : client.exe
  25. client.exe : client.obj strout_c.obj
  26.     $(link) $(linkdebug) $(conflags) -out:client.exe \
  27.       client.obj strout_c.obj \
  28.       rpcrt4.lib rpcns4.lib $(conlibsdll)
  29.  
  30. # client main program
  31. client.obj : client.c strout.h common.h
  32.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  33.  
  34. # client stub
  35. strout_c.obj : strout_c.c strout.h
  36.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  37.  
  38. # Make the server side application
  39. server : server.exe
  40. server.exe : server.obj remote.obj strout_s.obj
  41.     $(link) $(linkdebug) $(conflags) -out:server.exe \
  42.       server.obj strout_s.obj remote.obj \
  43.       rpcrt4.lib rpcns4.lib $(conlibsdll)
  44.  
  45. # server main program
  46. server.obj : server.c strout.h common.h
  47.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  48.  
  49. # remote procedures
  50. remote.obj : remote.c strout.h common.h
  51.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  52.  
  53. # server stub file
  54. strout_s.obj : strout_s.c strout.h
  55.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  56.  
  57.  
  58. # Stubs and header file from the IDL file
  59. strout.h strout_c.c strout_s.c : strout.idl
  60.     midl $(midlflags) -cpp_cmd $(cc) strout.idl
  61.     
  62. # Clean up everything
  63. cleanall : clean
  64.     -del *.exe
  65.  
  66. # Clean up everything but the .EXEs
  67. clean :
  68.     -del *.obj
  69.     -del strout_c.c
  70.     -del strout_s.c
  71.     -del strout.h
  72.