home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / DVI_MGR / dvimgr_s.lzh / dvi_fbi_hh / DVIDECW / dvidecw.com < prev    next >
Text File  |  1993-07-27  |  2KB  |  77 lines

  1. $ !-----------------------------------------------------------------------!
  2. $ ! Filename: DVIDECW.COM                                                 !
  3. $ ! Function: Compiles and links the DVIDECW DEC-Windows application      !
  4. $ ! (c) 28-06-90 by Ch. Markus                                            !
  5. $ !-----------------------------------------------------------------------!
  6. $ !
  7. $ !
  8. $ if f$trnlnm("decw$include") .nes. "" then goto startupok
  9. $ write sys$output "Please invoke @DECW$STARTUP befor using this procedure"
  10. $ !
  11. $startupok:
  12. $ !
  13. $ ! Defines which have to be adapted to system installation before
  14. $ ! attempting to compile (will need modifications)
  15. $ !
  16. $ define/nolog dvi$decw $disk2:[1050101.dvi_fbi_hh.includes] ! path for modified .H files
  17. $ define/nolog dvi$beebe $disk2:[1050101.dvi_fbi_hh.beebe]   ! path for standard .H files
  18. $                                                          ! from BEEBE package
  19. $ ! 
  20. $ ! Defines which rely on system symbols set previously (partly
  21. $ ! defined in DECW$STARTUP)
  22. $ !
  23. $ define/nolog c$include dvi$decw,dvi$beebe,decw$include,sys$library
  24. $ define/nolog vaxc$include c$include
  25. $ define/nolog X11 decw$include
  26. $ define/nolog sys sys$library
  27. $ define/nolog uil$include decw$include
  28. $ !
  29. $ ! General checkup of old errors
  30. $ !
  31. $ on warning then goto error
  32. $ ! 
  33. $ !
  34. $ ! Compile the 'C'-Source to 'OBJ'
  35. $ !                             
  36. $ if f$search("DVIDECW.C") .eqs. "" then goto compile_uil
  37. $ !
  38. $ vue$set_task_label "CC DVIDECW"
  39. $ vue$popup_progress_box
  40. $ cc /define=("OS_VAXVMS"=1) /define=("ANSI_LIBRARY"=1) dvidecw  
  41. $ !
  42. $ !
  43. $compile_uil:
  44. $ !
  45. $ if f$search("DVIDECW.UIL") .eqs. "" then goto do_link
  46. $ !
  47. $ ! Compile the 'UIL'-Source to 'UID'
  48. $ !
  49. $ vue$set_task_label "UIL DVIDECW"
  50. $ vue$popup_progress_box
  51. $ uil dvidecw.uil
  52. $ !
  53. $do_link:
  54. $ !
  55. $ ! Link the DEC-Windows program
  56. $ !
  57. $ vue$set_task_label "LINK DVIDECW"
  58. $ vue$popup_progress_box
  59. $ !
  60. $ link /exe=dvidecw.exe -                   
  61.  sys$input:/options
  62.  dvidecw.obj
  63.  unixclib/lib
  64.  sys$library:vaxcrtl/lib
  65.  sys$share:decw$dwtlibshr/share
  66. $ ! 
  67. $ !
  68. $ ! Change APPLY button to UPDATE button on FileView
  69. $ !
  70. $ vue$highlight_update
  71. $end:
  72. $ exit
  73. $ !
  74. $error:
  75. $ vue$set_error_status
  76. $ exit
  77.