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 / overlap / makefile next >
Makefile  |  1996-05-05  |  592b  |  29 lines

  1.  
  2. ! include <ntwin32.mak>
  3.  
  4. # define these if you want a debug version
  5. #PDB = overlap.pdb
  6. #CDEBUG= -Zi -Fd"$(PDB)"
  7. #LDEBUG = -debug:full
  8.  
  9. LIBS = kernel32.lib ws2_32.lib mswsock.lib oldnames.lib libcmt.lib
  10.  
  11. # The _WIN32_WINNT flag is required in order to use AcceptEx().
  12. .c.obj:
  13.     cl $(CDEBUG) -D_WIN32_WINNT=0x0400 -W3 -MT  -c $<
  14.  
  15. all:overlap.exe 
  16.  
  17. overlap.exe:overlap.obj
  18.     link -nodefaultlib overlap.obj $(LIBS) $(LDEBUG) \
  19. #
  20. # uncomment the line below for a debug build
  21. #    -pdb:$(PDB)  \
  22.     -out:overlap.exe
  23.  
  24. clean:
  25.     -del *.obj *.pdb *.ilk
  26.  
  27. cleanall:clean
  28.     -del *.exe
  29.