home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / gofer230.zip / Progs / Gofer / Scripts / old / gofcc < prev    next >
Text File  |  1994-06-23  |  984b  |  26 lines

  1. #!/bin/sh
  2. #
  3. # gofcc:
  4. #
  5. # A simple shell script to compile C files produced by the Gofer compiler
  6. #
  7. #
  8. # WARNING: This script takes an output C file produced by the Gofer compiler
  9. # and compiles and links it with the runtime library to make a standalone
  10. # executable for your system.  The first parameter to this shell is used as
  11. # the name of the output executable file and the C code input is required to
  12. # have the same name but with a .c extension.  Do not use this script to
  13. # compile programs which do not have an extension or use a project file
  14. # without an extension since the executable generated by this script will
  15. # replace the source file with the same name.
  16. #
  17. # e.g. GOOD     % gofc myfile.gs ; gofcc myfile
  18. #               % gofc + proj.gp ; gofcc proj
  19. #
  20. #      VERY BAD % gofc myfile ; gofcc myfile  (source `myfile' destroyed)
  21. #               % gofc + proj ; gofcc proj    (project file `proj' destroyed)
  22. #
  23.  
  24. cc -o $1 -O $1.c /usr/local/lib/Gofer/runtime.o -lm
  25. strip $1
  26.