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

  1. # Makefile : Builds the Multipad application
  2. #
  3. # Usage:     NMAKE option (build Multipad)
  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.  
  20. OBJS=mpmain.obj mpinit.obj mpfile.obj mpfind.obj mpprint.obj bar.obj 
  21. HDRS=multipad.h bar.h resource.h menu.h
  22.  
  23. PCH=multipad.h
  24. CPPFLAGS=  /DWINVER=0x0300 /AM /W3 /Zp /GA /GEs /G2 /Yu$(PCH) 
  25. LINKFLAGS=/NOD /ONERROR:NOEXE
  26.  
  27. !if "$(DEBUG)"=="1"
  28. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f
  29. LINKFLAGS=$(LINKFLAGS) /COD
  30. LIBS=mafxcwd libw mlibcew commdlg
  31. !else
  32. CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
  33. LINKFLAGS=$(LINKFLAGS)
  34. LIBS=mafxcw libw mlibcew commdlg
  35. !endif
  36.  
  37. multipad.exe: multipad.res multipad.def $(OBJS)
  38.     link $(LINKFLAGS) @<<
  39. $(OBJS),
  40. multipad,
  41. NUL,
  42. $(LIBS),
  43. multipad.def;
  44. <<
  45.     rc -30 /k /t multipad.res
  46.  
  47.  
  48. mpmain.obj : mpmain.cpp $(HDRS)
  49.     $(CC) $(CPPFLAGS) /Yc$(PCH) /c mpmain.cpp
  50.  
  51.  
  52. mpmain.obj: $(PCH)
  53. mpinit.obj: $(PCH)
  54. mpfile.obj: $(PCH)
  55. mpfind.obj: $(PCH)
  56. mpprint.obj: $(PCH)
  57. bar.obj: $(PCH)
  58. multipad.res:   multipad.dlg multipad.ico notepad.ico resource.h menu.h
  59.  
  60. clean:
  61.     -erase multipad.exe
  62.     -erase multipad.res
  63.     -erase multipad.pch
  64.     -erase mpmain.obj
  65.     -erase mpinit.obj
  66.     -erase mpfile.obj
  67.     -erase mpfind.obj
  68.     -erase mpprint.obj
  69.     -erase bar.obj
  70.