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

  1. # Makefile : Builds the mdi application
  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 option (build mdi)
  14. #    or:     NMAKE clean  (erase all compiled files)
  15. #
  16. # option:    DEBUG=[0|1]  (DEBUG not defined is equivalent to DEBUG=0)
  17.  
  18. PCH=mdi.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. mdi.exe:    mdi.obj hello.obj bounce.obj mdi.def mdi.res
  33.     link $(LINKFLAGS) mdi hello bounce, mdi, NUL, $(LIBS), mdi;
  34.     rc -30 /k /t mdi.res
  35.  
  36. mdi.obj:    resource.h mdi.h hello.h bounce.h common.h
  37.     $(CPP) $(CPPFLAGS) /Yc$(PCH) /c mdi.cpp
  38.  
  39. hello.obj:  resource.h hello.h common.h
  40. bounce.obj: resource.h bounce.h common.h
  41.  
  42. mdi.res:    resource.h about.dlg mdi.ico hello.ico
  43.  
  44. clean:
  45.     -erase mdi.exe
  46.     -erase mdi.pch
  47.     -erase mdi.res
  48.     -erase mdi.obj
  49.     -erase hello.obj
  50.     -erase bounce.obj
  51.