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

  1. # Makefile : Builds the application.
  2. #
  3. # Usage:     NMAKE options     (builds the application)
  4. #    or:     NMAKE CLEAN       (erases the compiled files)
  5. #
  6. # Options:   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. PCH=fileview.h
  21. CPPFLAGS=  /DWINVER=0x0300 /AM /W3 /Zp /GA /GEs /G2 /Yu$(PCH) 
  22. LINKFLAGS=/NOD /ONERROR:NOEXE
  23.  
  24.  
  25. !if "$(DEBUG)"=="1"
  26. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /f /Zi
  27. LINKFLAGS=$(LINKFLAGS) /COD
  28. LIBS=mafxcwd libw mlibcew commdlg
  29. !else
  30. CPPFLAGS=$(CPPFLAGS) /Gs /Oselg
  31. LINKFLAGS=$(LINKFLAGS)  
  32. LIBS=mafxcw libw mlibcew commdlg
  33. !endif
  34.  
  35. fileview.exe: fileview.obj linefile.obj \
  36.     fileview.res
  37.     link $(LINKFLAGS) linefile fileview,fileview,nul, \
  38.     $(LIBS),fileview.def
  39.     rc -30 /k /t fileview.res
  40.  
  41.  
  42. fileview.obj:      fileview.cpp $(PCH) resource.h
  43.     $(CPP) $(CPPFLAGS) /Yc$(PCH) /c fileview.cpp
  44.  
  45. fileview.res:      fileview.rc resource.h fileview.ico
  46. linefile.obj:      linefile.cpp
  47.  
  48.  
  49. clean:
  50.     -erase fileview.exe
  51.     -erase fileview.pch
  52.     -erase fileview.res
  53.     -erase fileview.obj
  54.     -erase linefile.obj
  55.