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 / doctor / makefile < prev    next >
Encoding:
Makefile  |  1997-10-15  |  2.0 KB  |  69 lines

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