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

  1. # Makefile : Builds the minsvrMI application
  2. #
  3. # Usage:     NMAKE option (build minsvrMI)
  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. OBJS = minsvrMI.obj mainwnd.obj
  20. PCH=minsvrMI.h
  21. CPPFLAGS=/DWINVER=0x0300 /AM /Zp /GA /GEs /G2 /Yu$(PCH) 
  22. LINKFLAGS=/NOD /ONERROR:NOEXE
  23.  
  24. !if "$(DEBUG)"=="1"
  25. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f /W4
  26. LINKFLAGS=$(LINKFLAGS) /COD
  27. LIBS=mafxcwd libw mlibcew olesvr shell
  28. !else
  29. CPPFLAGS=$(CPPFLAGS) /Oselg /Gs /W3
  30. LINKFLAGS=$(LINKFLAGS)
  31. LIBS=mafxcw libw mlibcew olesvr shell
  32. !endif
  33.  
  34. minsvrMI.exe: minsvrMI.res minsvrMI.def $(OBJS)
  35.     link $(LINKFLAGS) @<<
  36. $(OBJS),
  37. minsvrMI,
  38. NUL,
  39. $(LIBS),
  40. minsvrMI.def;
  41. <<
  42.     rc -30 /k /t minsvrMI.res
  43.  
  44.  
  45. minsvrMI.obj : minsvrMI.cpp minsvrMI.h
  46.     $(CC) $(CPPFLAGS) /Yc$(PCH) /c minsvrMI.cpp
  47.  
  48. *.obj:  $(PCH)
  49. minsvrMI.res:  *.ico *.dlg minsvrMI.h
  50.  
  51. clean:
  52.     -erase minsvrMI.exe
  53.     -erase minsvrMI.res
  54.     -erase minsvrMI.pch
  55.     -erase *.obj
  56.