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

  1. # Makefile : Builds the hello application
  2. #
  3. # Usage:     NMAKE option (build hello)
  4. #    or:     NMAKE clean  (erase all compiled files)
  5. #
  6. # option:    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. CPPFLAGS=  /DWINVER=0x0300 /AS /W3 /Zp /GA /GEs /G2
  21. LINKFLAGS=/NOD /ONERROR:NOEXE
  22.  
  23. !if "$(DEBUG)"=="1"
  24. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f
  25. LINKFLAGS=$(LINKFLAGS) /COD
  26. LIBS=safxcwd libw slibcew
  27. !else
  28. CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
  29. LINKFLAGS=$(LINKFLAGS)  
  30. LIBS=safxcw libw slibcew
  31. !endif
  32.  
  33. hello.exe:     hello.obj hello.def hello.res
  34.     link $(LINKFLAGS) hello, hello, NUL, $(LIBS),hello.def;
  35.     rc -30 /t hello.res
  36.  
  37.  
  38. hello.res:  resource.h hello.ico hello.dlg
  39.  
  40. hello.obj:  hello.h resource.h
  41.  
  42. clean:
  43.     -erase hello.exe
  44.     -erase hello.res
  45.     -erase hello.obj
  46.