home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK11 / MFC / SAMPLES / TESTSERV / MAKEFILE.$ / makefile
Encoding:
Makefile  |  1992-03-16  |  1.8 KB  |  70 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 options     (builds the application)
  14. #    or:     NMAKE CLEAN       (erases the compiled files)
  15. #
  16. # Options:   DEBUG=[0|1]       (default is 0)
  17.  
  18. PCH=testserv.h
  19. CPPFLAGS=  /DWINVER=0x0300 /AM /W3 /GA /GEs /G2 /Zp /Yu$(PCH)
  20. LINKFLAGS=/NOD /ONERROR:NOEXE
  21.  
  22. !if "$(DEBUG)"=="1"
  23. CPPFLAGS=$(CPPFLAGS) /Od /f /Zi /D_DEBUG
  24. LINKFLAGS=$(LINKFLAGS) /COD
  25. LIBS=mafxcwd libw mlibcew shell olesvr commdlg
  26. !else
  27. CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
  28. LINKFLAGS=$(LINKFLAGS)  
  29. LIBS=mafxcw libw mlibcew shell olesvr commdlg
  30. !endif
  31.  
  32. OBJS=testserv.obj newserv.obj tsobject.obj servdoc.obj clipbd.obj \
  33.         tsfile.obj error.obj tests.obj
  34.  
  35. all : testserv.exe
  36.  
  37. testserv.obj testserv.pch: testserv.cpp testserv.h defs.h resource.h
  38.         $(CPP) $(CPPFLAGS) /Yc$(PCH) /c testserv.cpp
  39.  
  40. CPPFLAGS=$(CPPFLAGS)
  41.  
  42. testserv.res : testserv.rc resource.h testserv.ico
  43.         rc -r testserv.rc
  44.  
  45. testserv.exe : $(OBJS) testserv.def testserv.res
  46.     link $(LINKFLAGS) @<<
  47. $(OBJS),
  48. testserv,
  49. NUL,
  50. $(LIBS),
  51. testserv.def;
  52. <<
  53.     rc -30 -k -t testserv.res
  54.  
  55. newserv.obj  : testserv.h defs.h
  56. tsobject.obj : testserv.h resource.h
  57. servdoc.obj  : testserv.h
  58. clipbd.obj   : testserv.h
  59. tsfile.obj   : testserv.h resource.h defs.h
  60. error.obj    : testserv.h resource.h defs.h
  61. tests.obj    : testserv.h
  62.  
  63. testserv.h   : tsobject.h servdoc.h newserv.h
  64.  
  65. clean:
  66.         -erase testserv.exe
  67.         -erase testserv.res
  68.         -erase testserv.pch
  69.     -erase *.obj
  70.