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 / dunion / makefile < prev    next >
Encoding:
Makefile  |  1997-10-15  |  1.9 KB  |  68 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**                   dunion 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 : dunionc dunions
  18.  
  19. # Make the dunionc
  20. dunionc : dunionc.exe
  21. dunionc.exe : dunionc.obj dunion_c.obj
  22.     $(link) $(linkdebug) $(conflags) -out:dunionc.exe \
  23.       dunionc.obj dunion_c.obj \
  24.       rpcrt4.lib $(conlibsdll)
  25.  
  26. # dunionc main program
  27. dunionc.obj : dunionc.c dunion.h
  28.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  29.  
  30. # dunionc stub
  31. dunion_c.obj : dunion_c.c dunion.h
  32.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  33.  
  34. # Make the dunions
  35. dunions : dunions.exe
  36. dunions.exe : dunions.obj dunionp.obj dunion_s.obj
  37.     $(link) $(linkdebug) $(conflags) -out:dunions.exe \
  38.       dunions.obj dunion_s.obj dunionp.obj \
  39.       rpcrt4.lib $(conlibsdll)
  40.  
  41. # dunions main loop
  42. dunions.obj : dunions.c dunion.h
  43.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  44.  
  45. # remote procedures
  46. dunionp.obj  : dunionp.c dunion.h
  47.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  48.  
  49. # dunions stub file
  50. dunion_s.obj : dunion_s.c dunion.h
  51.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  52.  
  53. # Stubs and header file from the IDL file
  54. dunion.h dunion_c.c dunion_s.c : dunion.idl dunion.acf
  55.     midl -oldnames -no_cpp dunion.idl
  56.  
  57. # Clean up everything
  58. cleanall : clean
  59.     -del *.exe
  60.  
  61. # Clean up everything but the .EXEs
  62. clean :
  63.     -del *.obj
  64.     -del *.map
  65.     -del dunion_c.c
  66.     -del dunion_s.c
  67.     -del dunion.h
  68.