00READ.ME 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. How to build Reduce using CSL
  2. =============================
  3. These instructions are only necessary if you are going to re-build both CSL
  4. and REDUCE from scratch, possibly using a quite different C compiler
  5. from the one that Codemist used to prepare this distribution.
  6. Make sure that you know where the "cslbase" directory is (it does not
  7. have to be within the REDUCE source tree, but in this distribution
  8. that is where it will start off).
  9. The REDUCE source should have directories within it called src, cslsrc,
  10. xmpl and xlog (and probably some others). At the same level create a new
  11. empty directory. A suitable (long) name for this directory would indicate
  12. what machine, operating system and C compiler you are using, eg
  13. csl_hp9000_unix_c89
  14. or csl_80x86_win95_watcom
  15. but as a matter of practicality you will probably choose a shorter name.
  16. Select that directory as current.
  17. Copy into it the files "makemake.c" from the "cslbase" and "makebase" from
  18. the "cslsrc" directory. Use your C compiler to compile makemake.c so you have
  19. an executable called makemake. E.g., on some Unix systems the command would be
  20. gcc makemake.c -o makemake
  21. but sometimes you will need to specify other command line options to the
  22. C compiler.where the C compiler. The program "makemake.c" attempts to be
  23. as portable and system independent as it can be and ought to compile
  24. unaltered on any system you are liable to come across.
  25. Now go
  26. makemake
  27. and you should see a list of options (extracted from the file "makebase").
  28. Inspect them, and choose the ones you want, then go (for instance)
  29. makemake -o Makefile sparc gcc
  30. or makemake -o makefile win95 microsoft
  31. When asked to, enter the location of the "cslbase" directory. Even when using
  32. DOS or Windows you should give the directory path with "/" characters as
  33. separators not "\". The command should create a file called "Makefile" for
  34. you. If the makebase prototype does not provide options that match your
  35. system precisely, or if changes to your operating system or C compiler render
  36. its contents out of date you should specify the closest set of options to
  37. your needs and then inspect and as necessary edit Makefile for yourself. This
  38. should not usually be necessary.
  39. Now try
  40. make csl [for Unix]
  41. or make csl.exe [for DOS/Windows]
  42. followed by
  43. make slowr36.img
  44. make ccode
  45. make r36.img
  46. The system comes with the final files from all this pre-built using Watcom
  47. C version 10.5, and the files are in a directory r36\cslwin95.
  48.