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

  1. # Makefile : Builds the application.
  2. #
  3. # This is a part of the Microsoft Foundation Classes C++ library.
  4. # Copyright (C) 1992 Microsoft Corporation
  5. # All rights reserved.
  6. #
  7. # This source code is only intended as a supplement to the
  8. # Microsoft Foundation Classes Reference and Microsoft
  9. # QuickHelp documentation provided with the library.
  10. # See these sources for detailed information regarding the
  11. # Microsoft Foundation Classes product.
  12. #
  13. # Usage:     NMAKE option      (builds the application)
  14. #    or:     NMAKE CLEAN       (erases the compiled files)
  15. #
  16. # Options:   DEBUG=[0|1]       (default is 0)
  17.  
  18.  
  19. PCH=testclnt.h
  20. CPPFLAGS=  /DWINVER=0x0300 /AM /W3 /GA /GEs /G2 /Zp /Yu$(PCH)
  21. LINKFLAGS=/NOD /ONERROR:NOEXE
  22.  
  23. !if "$(DEBUG)"=="1"
  24. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f
  25. LINKFLAGS=$(LINKFLAGS) /COD
  26. LIBS=mafxcwd libw mlibcew shell olecli commdlg
  27. !else
  28. CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
  29. LINKFLAGS=$(LINKFLAGS)
  30. LIBS=mafxcw libw mlibcew shell olecli commdlg
  31. !endif 
  32.  
  33. OBJS=testclnt.obj tcobject.obj clipbd.obj newclnt.obj newdoc.obj \
  34.     error.obj tcfile.obj tests.obj
  35.  
  36. all:  testclnt.exe
  37.  
  38. testclnt.obj testclnt.pch : testclnt.cpp testclnt.h resource.h defs.h
  39.     $(CPP) $(CPPFLAGS) /Yc$(PCH) /c testclnt.cpp
  40.  
  41. CPPFLAGS=$(CPPFLAGS)
  42.  
  43. testclnt.res: testclnt.rc resource.h testclnt.ico
  44.     rc -r testclnt.rc
  45.  
  46.  
  47. testclnt.exe : $(OBJS) testclnt.def testclnt.res
  48.     link $(LINKFLAGS) @<<
  49. $(OBJS),
  50. testclnt,
  51. NUL,
  52. $(LIBS),
  53. testclnt.def;
  54. <<
  55.     rc -30 -k -t testclnt.res
  56.  
  57. tcobject.obj : testclnt.h defs.h resource.h
  58. clipbd.obj   : testclnt.h defs.h resource.h
  59. newclnt.obj  : testclnt.h defs.h resource.h
  60. newdoc.obj   : testclnt.h
  61. tcfile.obj   : testclnt.h defs.h resource.h
  62. tests.obj    : testclnt.h defs.h resource.h
  63. error.obj    : testclnt.h defs.h resource.h
  64. testclnt.obj : testclnt.h defs.h resource.h
  65.  
  66. testclnt.h   : newdoc.h newclnt.h
  67.  
  68. clean:
  69.     -erase testclnt.exe
  70.     -erase testclnt.res
  71.     -erase testclnt.pch
  72.     -erase *.obj
  73.