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 / wsock / makefile < prev    next >
Makefile  |  1996-07-05  |  1KB  |  42 lines

  1. !include <win32.MAK>
  2.  
  3. proj = wsock
  4.  
  5. #detect build time environment
  6. !IF "$(OS)" == "Windows_NT"
  7. all: $(proj).exe
  8. !else
  9. all: WARN_MSG
  10. !endif
  11.  
  12. WARN_MSG:
  13.   @echo "This sample will work correctly only on Windows NT because of AcceptEx"
  14.  
  15.  
  16. # Update the resource if necessary
  17. $(proj).res: $(proj).rc $(proj).dlg $(proj).h
  18.     rc -r -fo $(proj).res $(cvars) $(proj).rc
  19.  
  20.  
  21. # Update the object files if necessary
  22. $(proj).obj: $(proj).c $(proj).h
  23.     $(cc) $(cflags) $(cvarsmt) $(cdebug) $(proj).c
  24.  
  25. dialogs.obj: dialogs.c $(proj).h
  26.     $(cc) $(cflags) $(cvarsmt) $(cdebug) dialogs.c
  27.  
  28. # Since the link line has some severe differences depending on what
  29. # platform we are running on, we need to special case this so that
  30. # we execute the correct commands:
  31.  
  32. $(proj).exe: $(proj).obj dialogs.obj $(proj).res $(proj).def
  33.     $(link) $(linkdebug) $(guiflags) $(proj).obj dialogs.obj $(guilibsmt) $(proj).res -out:$(proj).exe
  34.  
  35.  
  36. # Clean up everything
  37. clean :
  38.     -del *.res
  39.     -del *.res
  40.     -del *.exe
  41.     -del *.obj
  42.