home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / DOCVIEW.PAK / MAKEFILE < prev    next >
Encoding:
Text File  |  1997-05-06  |  3.1 KB  |  65 lines

  1. #----------------------------------------------------------------------------
  2. # ObjectWindows
  3. # Copyright (c) 1993, 1995 by Borland International, All Rights Reserved
  4. #
  5. #   Use MODEL=l|d|f to statically link documents and viewers to application
  6. #   Use MODEL=x to build dynamically loaded document/view components
  7. #
  8. # This example combines an empty desktop with a variety of documents/views.
  9. # The list of document/view modules is specified below by DOCVIEW = {obj list}.
  10. # Document/view object files may be added or removed as desired from this list.
  11. # Each document/view file must include document template(s) for their classes.
  12. # The following document/view files are included in this examples:
  13. #  editlist.cpp - templates only, uses ObjectWindows TListView and TEditView
  14. #  dumpview.cpp - hex dump viewer/editor using TFileDocument
  15. #  odlistvw.cpp - owner-draw listbox viewer derived from example TODListBox
  16. #  infoview.cpp - viewer which displays all properties from any document
  17. #  xcptview.cpp - view which generates and logs a variety of exceptions
  18. #  linedoc.cpp  - graphic line document with graphic and listbox viewers
  19. #  dvloader.cpp - pseudo-document & template used to load doc/view components
  20. # These modules may be statically linked with the base application, or may be
  21. # linked as DLL's for dynamic loading (dvloader must be statically linked).
  22. #
  23. # This application uses command-line switches to select the main frame class:
  24. #            -s  SDI plain main window (TFrameWindow)
  25. #            -m  MDI plain main window (TDecoratedFrame)
  26. #            -d  SDI main window with status bar (TDecoratedFrame)
  27. #  (no switch) MDI main window with status bar (TDecoratedMDIFrame)
  28. #
  29. # Drag and drop from the file manager is supported by creating a document and
  30. # view from the first document template with a matching file filter. Template
  31. # order is dependent on the link ordering.  In the dynmically built doc/view
  32. # model, doc/view components (*.DVC) may be dropped or loaded from FileOpen.
  33. #----------------------------------------------------------------------------
  34.  
  35. MODELS = ldfxt
  36. EXE    = docviewx
  37. DOCVIEW= editlist.obj dumpview.obj linedoc.obj xcptview.obj infoview.obj odlistvw.obj
  38.  
  39. !if "$(MODEL)" != "x"   # static link of all document/view modules
  40.  
  41. OBJEXE = docviewx.obj odlistbx.obj $(DOCVIEW)
  42. RESEXE = docviewx.res $(DOCVIEW:obj=res)
  43. !include $(BCEXAMPLEDIR)\owlmake.gen
  44. EXERULE = $(EXERULE) @echo Ignore previous warning about duplicate resource
  45.  
  46. !else    # build each document/view module into a DLL, static link of dvloader
  47.  
  48. EXEBIN = docviewc.exe
  49. OBJEXE = docviewx.obj dvloader.obj
  50. RESEXE = docviewx.res dvloader.res
  51. DLLRES = editlist
  52. DLLBIN = editlist.dvc
  53. DLLALL = $(DOCVIEW:obj=dvc)
  54. DLLMAKE= $(EDITLIST) $(INFOVIEW) $(LINEDOC) $(XCPTVIEW) $(DUMPVIEW) $(ODLISTVW)
  55. EDITLIST = $(DLLRULE:editlist.res=)
  56. XCPTVIEW = $(DLLRULE:editlist=xcptview)
  57. DUMPVIEW = $(DLLRULE:editlist=dumpview)
  58. INFOVIEW = $(DLLRULE:editlist=infoview)
  59. LINEDOC  = $(DLLRULE:editlist=linedoc)
  60. ODLISTX  = $(DLLRULE:editlist=odlistvw)
  61. ODLISTVW = $(ODLISTX:odlistvw.obj=odlistbx.obj odlistvw.obj)
  62. !include $(BCEXAMPLEDIR)\owlmake.gen
  63.  
  64. !endif
  65.