home *** CD-ROM | disk | FTP | other *** search
/ Jazz - A Multimedia History / JAZZ.BIN / jazz / makefile < prev   
Makefile  |  1992-07-20  |  4KB  |  147 lines

  1. #############################################################################
  2. #
  3. # MAKEFILE
  4. #
  5. #############################################################################
  6. #
  7. # Program Description: Jazz: Makefile.
  8. #
  9. #############################################################################
  10. #
  11. # The following are the optionally passed variables:
  12. #
  13. # STOPF         = Contains an alternate stop word file.
  14. # FIELDF        = Contains an alternate field definition file.
  15. # IND_ONLY      = IND_ONLY=Y will not rebuild the MVB file, force build .ind.
  16. # OS2_FLAG      = Run bound version of compiler (MVCP)
  17. #                   instead of DMPI version (MVC).
  18. #############################################################################
  19.  
  20. !IFNDEF NAME
  21. !ERROR -- Viewer "NAME" macro undefined
  22. !endif
  23.  
  24. #
  25. !IFNDEF CHECK_DATA
  26. GOAL_MVB        =MVB_GOAL
  27. !else
  28. #if check_data flag is set, it will check Name.MVB entry for dependencies
  29. #  eg: for .rtf, .bmp and other changes.
  30. GOAL_MVB        =$(NAME).MVB
  31. !endif
  32.  
  33. #
  34. !IFNDEF OS2_FLAG
  35. MVC        =MVC
  36. FORAGE     =FORAGE
  37. !else
  38. MVC        =MVCP
  39. FORAGE     =FORAGEP
  40. !endif
  41.  
  42.  
  43. !IFNDEF STOPF
  44. STOPF           =$(NAME)
  45. !endif
  46.  
  47. !IFNDEF FIELDF
  48. FIELDF          =$(NAME)
  49. !endif
  50.  
  51. # This will allow optional skipping of the first step- 
  52. # (compile the Viewer file).  It does this by preventing the 2nd
  53. # step from checking if the Viewer file needs to be rebuilt.
  54. #  
  55. !IFNDEF IND_ONLY
  56. WIN_FS          =$(GOAL_MVB)
  57. CLEAN_IND=
  58. !else
  59. CLEAN_IND=DEL_ZOF
  60. WIN_FS          =
  61. !endif
  62.  
  63. # Multivolume titles-- Bookshelf type titles- this option selected
  64. # w/ builddoc /m parameter does BOTH /i command function as well
  65. # as build using a .MLT file.  (used by both forage and w_scan). -johnms
  66.  
  67. !IFNDEF MULTIVOL
  68. MLTFILE=
  69. FOPTS= /w $(NAME).MVB
  70. !else
  71. MLTFILE=$(NAME).mlt
  72. FOPTS= /m $(NAME).mlt
  73. WIN_FS          =
  74. !endif
  75.  
  76.  
  77. goal:   $(NAME).ind $(CLEAN_IND) 
  78.  
  79. clean:
  80.     -del $(NAME).wrs
  81.     -del $(NAME).lst
  82.     -del $(NAME).oca
  83.     -del $(NAME).zon
  84.     -del $(NAME).zos
  85.     -del $(NAME).cfg
  86.     -del $(NAME).MVB
  87.     -del $(NAME).ans
  88.     -del $(NAME).ind
  89.  
  90. #Following for those using CHECK_DATA option only:
  91. $(NAME).MVB: \
  92. # place your data files list here:  following example for usa,
  93. #  but no need to change unless you use check_data flag.
  94. .\natext\states_a.RTF \
  95. .\natext\states_w.RTF \
  96. #  for execution, it falls thru to following goal:
  97.  
  98. #following for special font option- ignore.
  99. $(NAME).lgh: $(NAME).tbl 
  100.     masm $(NAME).tbl,$(NAME).lg2;
  101.     link $(NAME).lg2,$(NAME).lg3,NUL,,NUL
  102.     @echo .
  103.     @echo ....Ignore warning - No stack segment 
  104.     @echo ....Ignore warning - Program has no start address
  105.     @echo .
  106.     exe2bin $(NAME).lg3,$(NAME).lgh
  107.     del $(NAME).lg2
  108.     del $(NAME).lg3
  109.  
  110. $(GOAL_MVB): $(NAME).mvp   
  111.     $(MVC) $(NAME).mvp
  112.     @echo .
  113.     @echo .
  114. DEL_ZOF:
  115.     @-del   $(NAME).zof
  116. $(NAME).mlt:    $(WIN_FS) bag.ini
  117.     getmlt bag.ini,$(NAME).mlt
  118.  
  119. $(NAME).zof:    $(NAME).mlt
  120.     $(FORAGE) $(FOPTS)
  121.     @echo .
  122.     @echo .
  123. #create a marker file so we can delete large .ans file and still
  124. #   have good restartability.
  125.     @echo > $(NAME).zof
  126.  
  127. #$(NAME).oca:   $(NAME).zof $(NAME).lgh 
  128. $(NAME).oca:    $(NAME).zof 
  129. #       w_scan $(NAME).ans,,$(STOPF).stp,$(FIELDF).fld,$(MLTFILE),$(NAME).lst,longhorn;
  130.     w_scan $(NAME).ans,,$(STOPF).stp,$(FIELDF).fld,$(MLTFILE),$(NAME).lst;
  131.     @-del $(NAME).ans
  132.     @echo .
  133.     @echo .
  134.  
  135. $(NAME).ind:    $(NAME).oca
  136. #       index $(NAME),,$(NAME),$(STOPF).stp,$(FIELDF).fld,$(NAME).map,longhorn;
  137.     index $(NAME),,$(NAME),$(STOPF).stp,$(FIELDF).fld,$(NAME).map;
  138.     @-del $(NAME).wrs
  139.     @-del $(NAME).zon
  140.     @-del $(NAME).zos
  141.     @-del $(NAME).cfg
  142.     @-del $(NAME).lst
  143.     @-del $(NAME).map
  144.     @-del $(NAME).mlt
  145.     
  146.  
  147.