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

  1. # Makefile : Builds the Showfont application
  2. #
  3. # Usage:     NMAKE option (build Showfont)
  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.  
  19. PCH=showfont.h
  20. CPPFLAGS=  /DWINVER=0x0300 /AM /W3 /Zp /GA /GEs /G2 /Yu$(PCH)
  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.  
  34. showfont.exe:   showfont.obj mainwnd.obj drawing.obj dialogs.obj cfont.obj \
  35.     showfont.def showfont.res
  36.     link $(LINKFLAGS) @<<
  37. showfont mainwnd drawing dialogs cfont, 
  38. showfont,
  39. NUL, 
  40. $(LIBS), 
  41. showfont.def;
  42. <<
  43.     rc -30 /k /t showfont.res
  44.  
  45. showfont.obj:   showfont.h mainwnd.h
  46.     $(CPP) $(CPPFLAGS) /Yc$(PCH) /c showfont.cpp
  47.  
  48. mainwnd.obj:    showfont.h mainwnd.h
  49. drawing.obj:    showfont.h mainwnd.h
  50. dialogs.obj:    showfont.h mainwnd.h
  51. cfont.obj:  showfont.h
  52.  
  53. showfont.h: resource.h
  54.  
  55. showfont.res:    resource.h about.dlg cfont.dlg showfont.ico
  56.  
  57. clean:
  58.     -erase showfont.exe
  59.     -erase showfont.pch
  60.     -erase showfont.res
  61.     -erase *.obj
  62.