home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK8 / MFC / SAMPLES / ABOUT2 / MAKEFILE.$ / makefile
Encoding:
Makefile  |  1992-03-05  |  1.4 KB  |  51 lines

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