home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c031 / 11.ddi / MFC / SAMPLES / CTRLTEST / MAKEFILE.$ / makefile
Encoding:
Makefile  |  1992-03-16  |  1.6 KB  |  62 lines

  1. # Makefile : Builds the ctrltest 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=ctrltest.obj paredit.obj \
  21.     dertest.obj wclstest.obj paredit2.obj subtest.obj \
  22.     derpen.obj dlgpen.obj featpen.obj \
  23.     bbutton.obj custlist.obj custmenu.obj \
  24.     spintest.obj spin.obj
  25.  
  26. PCH=ctrltest.h
  27. # program uses Win31 #defines, but not any Win31 library entries (i.e. rc -30)
  28. CPPFLAGS= /AM /W3 /Zp /GA /GEs /G2 /Yu$(PCH) 
  29. LINKFLAGS=/NOD /ONERROR:NOEXE
  30.  
  31. !if "$(DEBUG)"=="1"
  32. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f
  33. LINKFLAGS=$(LINKFLAGS) /COD
  34. LIBS=mafxcwd libw commdlg mlibcew
  35. !else
  36. CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
  37. LINKFLAGS=$(LINKFLAGS)
  38. LIBS=mafxcw libw commdlg mlibcew
  39. !endif
  40.  
  41. ctrltest.exe: ctrltest.res ctrltest.def $(OBJS)
  42.     link $(LINKFLAGS) @<<
  43. $(OBJS),
  44. ctrltest,
  45. NUL,
  46. $(LIBS),
  47. ctrltest.def;
  48. <<
  49.     rc -30 /k /t ctrltest.res
  50.  
  51. ctrltest.obj : ctrltest.cpp ctrltest.h
  52.     $(CC) $(CPPFLAGS) /Yc$(PCH) /c ctrltest.cpp
  53.  
  54. *.obj:  ctrltest.h $(PCH)
  55. ctrltest.res:  *.ico *.dlg ctrltest.h
  56.  
  57. clean:
  58.     -erase ctrltest.exe
  59.     -erase ctrltest.res
  60.     -erase ctrltest.pch
  61.     -erase *.obj
  62.