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

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