home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / fchek284.zip / build.com < prev    next >
Text File  |  1994-12-16  |  2KB  |  53 lines

  1. $! BUILD.COM
  2. $!    Creates Ftnchek from source code for VMS systems
  3. $!    This script uses CC.COM and LINK.COM to check whether target
  4. $!    is up to date, giving effect of a crude make utility.
  5. $!
  6. $ On Control_Y Then GoTo The_Exit
  7. $ On Error Then GoTo The_Exit
  8. $! DISABLED at ftnchek 2.8: On Warning Then GoTo The_Exit
  9. $!
  10. $!    First, create the right environment for compilation.
  11. $ IF F$SEARCH("vaxc.opt") .EQS. ""
  12. $ THEN!    Create option file for shareable image: makes executable smaller
  13. $ COPY SYS$INPUT vaxc.opt
  14. sys$library:vaxcrtl/share
  15. $ ENDIF
  16. $ DEFINE lnk$library sys$library:vaxcrtl    ! simplest runtime library
  17. $!
  18. $!   Now compile everything and link it all.  The /DEFINE is not actually
  19. $!   needed since VMS is a predefined symbol in VAX C.
  20. $!   If you have xmalloc/xrealloc, remove the /DEFINE from shell_mung
  21. $!   line and add them to the list of objs to link.
  22. $!   The CC.COM script is used in place of CC command so that if something
  23. $!   is changed, BUILD can be re-run and only re-compiles what changed.
  24. $!   Invocation: @CC PROG DEPENDENCIES [/CFLAGS...]
  25. $ @CC ftnchek ftnchek.h /DEFINE=(VMS,LARGE_MACHINE)
  26. $ @CC exprtype ftnchek.h,keywords.h,symtab.h,tokdefs.h /DEFINE=(VMS,LARGE_MACHINE)
  27. $ @CC forlex ftnchek.h,symtab.h,tokdefs.h /DEFINE=(VMS,LARGE_MACHINE)
  28. $ @CC fortran ftnchek.h,symtab.h,tokdefs.h /DEFINE=(VMS,LARGE_MACHINE)
  29. $ @CC pgsymtab ftnchek.h,symtab.h /DEFINE=(VMS,LARGE_MACHINE)
  30. $ @CC plsymtab ftnchek.h,symtab.h /DEFINE=(VMS,LARGE_MACHINE)
  31. $ @CC project ftnchek.h,symtab.h /DEFINE=(VMS,LARGE_MACHINE)
  32. $ @CC symtab ftnchek.h,iokeywds.h,intrins.h,symtab.h,tokdefs.h /DEFINE=(VMS,LARGE_MACHINE)
  33. $ @CC shell_mung "" /DEFINE=("xmalloc=malloc","xrealloc=realloc")
  34. $ @LINK ftnchek,forlex,fortran,pgsymtab,plsymtab,symtab,exprtype,project,-
  35. shell_mung
  36. $ WRITE SYS$OUTPUT "Ftnchek created"
  37. $ WRITE SYS$OUTPUT "To make it runnable as a command"
  38. $ WRITE SYS$OUTPUT "say   $ FTNCHEK :== $diskname:[pathname]FTNCHEK"
  39. $ On Control_Y Then GoTo Help_Exit
  40. $ On Warning Then GoTo Help_Exit
  41. $! Create the help library.
  42. $ LIBR/CREATE/HELP FTNCHEK.HLB FTNCHEK.HLP
  43. $ WRITE SYS$OUTPUT "Help library created -- to access it via HELP"
  44. $ WRITE SYS$OUTPUT "say   $ DEFINE HLP$LIBRARY diskname:[pathname]FTNCHEK.HLB"
  45. $ EXIT
  46. $ Help_Exit:
  47. $ Set NoVerify
  48. $ WRITE SYS$OUTPUT "Error- help library not created"
  49. $ EXIT
  50. $ The_Exit:
  51. $ Set NoVerify
  52. $ WRITE SYS$OUTPUT "Error- BUILD failed."
  53.