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

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