home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / m / msjmar93.zip / DIAG.ZIP / MAKEFILE < prev    next >
Text File  |  1993-03-01  |  1KB  |  46 lines

  1. # Makefile : Builds the diag application
  2. #
  3. # Usage:     NMAKE option (build diag)
  4. #    or:     NMAKE clean  (erase all compiled files)
  5. #
  6. # option:    DEBUG=[0|1]  (DEBUG not defined is equivalent to DEBUG=0)
  7.  
  8.  
  9. # This is a part of the Microsoft Foundation Classes C++ library.
  10. # Copyright (C) 1992 Microsoft Corporation
  11. # All rights reserved.
  12. #
  13. # This source code is only intended as a supplement to the
  14. # Microsoft Foundation Classes Reference and Microsoft
  15. # QuickHelp documentation provided with the library.
  16. # See these sources for detailed information regarding the
  17. # Microsoft Foundation Classes product.
  18. #
  19.  
  20. CPPFLAGS=  /DWINVER=0x0300 /AM /W3 /Zp /GA /GEs /G2
  21. LINKFLAGS=/NOD /ONERROR:NOEXE
  22.  
  23. !if "$(DEBUG)"=="1"
  24. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f
  25. LINKFLAGS=$(LINKFLAGS) /COD
  26. LIBS=mafxcwd libw mlibcew
  27. !else
  28. CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
  29. LINKFLAGS=$(LINKFLAGS)
  30. LIBS=mafxcw libw mlibcew
  31. !endif
  32.  
  33. diag.exe:     diag.obj diag.def diag.res
  34.     link $(LINKFLAGS) diag, diag, NUL, $(LIBS),diag.def;
  35.     rc -30 /t diag.res
  36.  
  37.  
  38. diag.res:  resource.h diag.ico
  39.  
  40. diag.obj:  diag.h resource.h
  41.  
  42. clean:
  43.     -erase diag.exe
  44.     -erase diag.res
  45.     -erase diag.obj
  46.