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 / wintyp / makefile < prev    next >
Makefile  |  1996-07-23  |  2KB  |  73 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Samples                   **#
  4. #**                   WinTyp 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 wintyp sample program where the client   **#
  9. #** sends a bitmap to the server for either flipping or     **#
  10. #** edge detection. The bitmap is thensent back to the      **#
  11. #** client.                                                 **#
  12. #** This file will compile for ANSI characters, to compile  **#
  13. #** for UNICODE, type nmake /f makefile.uni at command line **#
  14. #*************************************************************#
  15. # FILE : MAKEFILE
  16.  
  17. !include <ntwin32.mak>
  18.  
  19. # Let the compiler know what version we are running
  20. cflags=$(cflags) -D_WIN32_WINNT=0x400
  21.  
  22. all: client server
  23.  
  24. client : client.exe
  25. client.exe : client.obj wintyp_c.obj client.rbj 
  26.     $(link) $(linkdebug) $(guiflags) -out:client.exe -map:client.map \
  27.       client.obj client.rbj wintyp_c.obj rpcrt4.lib $(olelibsdll)
  28.  
  29. client.obj : client.c client.h wintyp.h
  30.     $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  31.  
  32. wintyp_c.obj : wintyp_c.c wintyp.h
  33.     $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  34.  
  35. server : server.exe
  36. server.exe : server.obj wintyp_s.obj remote.obj
  37.     $(link) $(linkdebug) $(conflags) -out:server.exe -map:server.map\
  38.       server.obj wintyp_s.obj remote.obj rpcrt4.lib  $(conlibsdll) \
  39.       $(olelibsdll) 
  40.  
  41.  
  42. server.obj : server.c common.h wintyp.h
  43.     $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  44.  
  45. remote.obj : remote.c common.h wintyp.h
  46.     $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  47.  
  48. wintyp_s.obj : wintyp_s.c wintyp.h
  49.     $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  50.  
  51. # Stubs and header file from the IDL file
  52. wintyp.h wintyp_c.c wintyp_s.c : wintyp.idl
  53.     midl $(midlflags) -cpp_cmd $(cc) wintyp.idl
  54.  
  55.  
  56. # Compile the resource file, and then convert it to an object file to include
  57. client.rbj : client.rc clires.h
  58.     $(RC) -r -DWIN32 -DWINVER=0x400  client.rc
  59.     cvtres -$(CPU) client.res -o client.rbj
  60.  
  61.  
  62. clean:
  63.     -del client.exe
  64.     -del server.exe
  65.  
  66. cleanall:  clean
  67.     -del *.obj
  68.     -del *.rbj 
  69.     -del *.map
  70.     -del *.res
  71.     -del wintyp_*.c
  72.     -del wintyp.h
  73.