home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / winsock / tp4 / makefile < prev    next >
Encoding:
Makefile  |  1994-10-17  |  779 b   |  32 lines

  1. !include <ntwin32.MAK>
  2.  
  3.  
  4. mylibs = wsock32.lib 
  5.  
  6. lincl = -I . 
  7.  
  8. all: client.exe server.exe
  9.  
  10. # Update the object files if necessary
  11. client.obj: client.c 
  12.     $(cc) $(cflags) $(cvarsmt) $(cdebug) $(lincl) client.c
  13. server.obj: server.c 
  14.     $(cc) $(cflags) $(cvarsmt) $(cdebug) $(lincl) server.c
  15.  
  16.  
  17. # Since the link line has some severe differences depending on what
  18. # platform we are running on, we need to special case this so that
  19. # we execute the correct commands:
  20.  
  21. client.exe: client.obj
  22.     $(link) $(linkdebug) $(conlflags) client.obj  $(conlibs) $(mylibs) -out:client.exe
  23. server.exe: server.obj
  24.     $(link) $(linkdebug) $(conlflags) server.obj  $(conlibs) $(mylibs) -out:server.exe
  25.  
  26.  
  27. # Clean up everything
  28. clean :
  29.     -del *.exe
  30.     -del *.obj
  31.  
  32.