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

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