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 / data / repas / makefile next >
Encoding:
Makefile  |  1997-10-15  |  2.4 KB  |  79 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**                   repas Application                     **#
  5. #**          Copyright(c) Microsoft Corp. 1992-1996         **#
  6. #**                                                         **#
  7. #*************************************************************#
  8.  
  9. !include <ntwin32.mak>
  10.  
  11. !if "$(CPU)" == "i386"
  12. cflags = $(cflags) -D_CRTAPI1=_cdecl -D_CRTAPI2=_cdecl
  13. !else
  14. cflags = $(cflags) -D_CRTAPI1= -D_CRTAPI2=
  15. !endif
  16.  
  17. all : repasc repass
  18.  
  19. # Make the client
  20. repasc : repasc.exe
  21. repasc.exe : repasc.obj repascu.obj repas_c.obj
  22.     $(link) $(linkdebug) $(conflags) -out:repasc.exe -map:repasc.map \
  23.       repasc.obj repascu.obj repas_c.obj \
  24.       rpcrt4.lib $(conlibsdll)
  25.  
  26. # repas client main program
  27. repasc.obj : repasc.c repasc.h
  28.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  29.  
  30. repascu.obj : repascu.c repasc.h
  31.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  32.  
  33. # repas client stub
  34. repas_c.obj : repas_c.c repasc.h
  35.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  36.  
  37. # Stubs, auxiliary and header file from the IDL file for the client side
  38. repasc.h repas_c.c : repas.idl repasc.acf
  39.     midl -oldnames -ms_ext -no_cpp repas.idl -acf repasc.acf -header repasc.h -server none
  40.  
  41. # Make the server executable
  42. repass : repass.exe
  43. repass.exe : repass.obj repassu.obj repasp.obj repas_s.obj
  44.     $(link) $(linkdebug) $(conflags) -out:repass.exe -map:repass.map \
  45.       repass.obj repassu.obj repas_s.obj repasp.obj \
  46.       rpcrt4.lib $(conlibsdll)
  47.  
  48. # repas server main
  49. repass.obj : repass.c repass.h
  50.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  51.  
  52. repassu.obj : repassu.c repass.h
  53.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  54.  
  55. # remote procedures
  56. repasp.obj : repasp.c repass.h
  57.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  58.  
  59. # repas server stub file
  60. repas_s.obj : repas_s.c repass.h
  61.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  62.  
  63. # Stubs, auxiliary and header file from the IDL file
  64. repass.h repas_s.c : repas.idl repass.acf
  65.     midl -oldnames -ms_ext -no_cpp repas.idl -acf repass.acf -header repass.h -client none
  66.  
  67. # Clean up everything
  68. cleanall : clean
  69.     -del *.exe
  70.  
  71. # Clean up everything but the .EXEs
  72. clean :
  73.     -del *.obj
  74.     -del *.map
  75.     -del repas_c.c
  76.     -del repas_s.c
  77.     -del repasc.h
  78.     -del repass.h
  79.