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

  1. # Makefile : Builds the application.
  2. #
  3. # Usage:     NMAKE options     (builds the application)
  4. #    or:     NMAKE CLEAN       (erases the compiled files)
  5. #
  6. # Options:   DEBUG=[0|1]       (default is 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. PCH=bibref.h
  20. CPPFLAGS=  /DWINVER=0x0300 /AM /W3 /Zp /GA /G2 /Yu$(PCH)
  21. LINKFLAGS=/NOD /ONERROR:NOEXE
  22.  
  23. !if "$(DEBUG)"=="1"
  24. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Odr /f /Zi
  25. LIBS=mafxcwd libw mlibcew olesvr shell
  26. LINKFLAGS=$(LINKFLAGS) /COD
  27. !else
  28. CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
  29. LINKFLAGS=$(LINKFLAGS)  
  30. LIBS=mafxcw libw mlibcew olesvr shell
  31. !endif
  32.  
  33. all: bibref.exe
  34.  
  35. bibref.pch bibref.obj: bibref.cpp bibref.h resource.h mainwnd.h bibsvr.h
  36.     $(CPP) $(CPPFLAGS) /Yc$(PCH) /c bibref.cpp
  37.  
  38. BIBREF_OBJS = bibref.obj bibsvr.obj bibdoc.obj bibitem.obj mainwnd.obj
  39.  
  40. bibref.exe: $(BIBREF_OBJS) bibref.def bibref.res
  41.     link $(LINKFLAGS) @<<
  42. $(BIBREF_OBJS),
  43. bibref,
  44. NUL,
  45. $(LIBS),
  46. bibref.def;
  47. <<
  48.     rc -30 /k /t bibref.res
  49.  
  50. bibsvr.obj  : bibref.h bibsvr.h bibdoc.h mainwnd.h
  51. bibdoc.obj  : bibref.h bibdoc.h bibitem.h
  52. bibitem.obj : bibref.h bibitem.h bibdoc.h
  53. mainwnd.obj : bibref.h mainwnd.h bibdoc.h
  54.  
  55. bibref.res: resource.h bibref.ico about.dlg
  56.  
  57. clean:
  58.     -erase bibref.exe
  59.     -erase bibref.res
  60.     -erase bibref.pch
  61.     -erase *.obj
  62.