home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / NeXT / GnuSource / cc-61.0.1 / cc / make-cccp.com < prev    next >
Text File  |  1991-03-04  |  1KB  |  49 lines

  1. $! Set the def dir to proper place for use in batch. Works for interactive too.
  2. $flnm = f$enviroment("PROCEDURE")     ! get current procedure name
  3. $set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")'
  4. $!
  5. $!    Build the GNU "C" pre-processor on VMS
  6. $!
  7. $
  8. $!
  9. $!    C compiler
  10. $!
  11. $ CC    :=    gcc
  12. $!
  13. $!    Compiler options
  14. $!
  15. $ CFLAGS =    "/debug/inc=([],[.config])"
  16. $!
  17. $!    Link options
  18. $!
  19. $ LDFLAGS :=    /nomap
  20. $!
  21. $!    Link libraries
  22. $!
  23. $ LIBS :=    gnu_cc:[000000]gcclib/libr,sys$share:vaxcrtl/libr
  24. $ if "''p1'" .eqs. "LINK" then goto Link
  25. $ 'CC 'CFLAGS cccp.c
  26. $ t1:='f$search("CEXP.C")'
  27. $ if "''t1'" .eqs. "" then goto 10$
  28. $ t1:='f$file_attributes("CEXP.Y","RDT")'
  29. $ t1:='f$cvtime(t1)'
  30. $ t2:='f$file_attributes("CEXP.C","RDT")'
  31. $ t2:='f$cvtime(t2)'
  32. $ if t1 .les. t2 then goto 20$
  33. $ 10$:
  34. $ bison cexp.y
  35. $ rename cexp_tab.c cexp.c
  36. $ 20$:
  37. $!
  38. $ 'CC 'CFLAGS cexp.c
  39. $ 'CC 'CFLAGS version.c
  40. $ Link:
  41. $ link 'LDFLAGS /exe=gcc-cpp cccp,cexp,version,'LIBS'
  42. $!
  43. $! CAUTION: If you want to link gcc-cpp to the sharable image library
  44. $! VAXCRTL, see the notes in gcc.texinfo (or INSTALL) first.
  45. $!
  46. $!    Done
  47. $!
  48. $ exit
  49.