Makefile.alpha 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  1. ###########################################################################
  2. # #
  3. # makefile for REDUCE 3.6 using CSL #
  4. # #
  5. ###########################################################################
  6. # The following lines indicates the place on your disc where the "cslbase"
  7. # directory exists. This is the place where the C sources files for CSL
  8. # live. There are two versions here, the first should use Unix-like
  9. # file name conventions (in particular "/" as a directory separator) while
  10. # the second will (in some cases) be a host-specific translation.
  11. UCSLBASE = ../cslbase
  12. CSLBASE = ../cslbase
  13. ###########################################################################
  14. # DEC Alpha, with OSF (tested on 1.3) and the DEC C compiler. Note that
  15. # this is a 64-bit machine, but I use it with the "-taso" linker option
  16. # so that I run in a 32-bit address space.
  17. CC = cc
  18. OPTFLAGS = -O2
  19. MPIFLAGS =
  20. CFLAGS = -c $(OPTFLAGS) -std1 -Olimit 3000 -I$(CSLBASE) $(MPIFLAGS)
  21. LIBS = -lm -lcurses -taso
  22. ###########################################################################
  23. ###########################################################################
  24. SHELL = /bin/sh
  25. LINK = $(CC)
  26. LFLAGS =
  27. OUT = -o
  28. OUTOBJ = -o
  29. ASM = $(CC)
  30. ASMFLAGS = $(CFLAGS)
  31. ASMSRC =
  32. ASMOBJ =
  33. ASMOBJDEP = notused.obj
  34. SYS = sysunix
  35. STORE = -k8000
  36. XSTORE = -k8000
  37. RM = rm
  38. MKDIR = mkdir
  39. COPY = cp
  40. STRIP = strip
  41. WX =
  42. ###########################################################################
  43. ###########################################################################
  44. ###########################################################################
  45. # #
  46. # This is the main bulk of the "makefile" for building Reduce 3.6 and CSL #
  47. # on MSDOS, Windows and Unix. This part of the file expects a number of #
  48. # symbols to have been defined: #
  49. # #
  50. # CSLBASE = file-path for CSLBASE directory #
  51. # CC = The C compiler to use #
  52. # CFLAGS = Flags for C compiler when compiling CSL #
  53. # LINK = Linker to use #
  54. # LFLAGS = Flags for linker #
  55. # LIBS = Libraries to quote to linker #
  56. # OUT = "-o" or "-out:" See link commands #
  57. # OUTOBJ = "-o" often : where to put object code from C compilation #
  58. # ASM = The assembler to use #
  59. # ASMFLAGS = Flags for the assembler #
  60. # ASMSRC = Assembly code source file to use #
  61. # ASMOBJ = Object file for above (or NULL if no assembly used) #
  62. # ASMOBJDEP = Ditto, but may not be NULL #
  63. # SYS = name of system-specific file (sysdos or sysnt etc) #
  64. # STORE = Memory option to pass to CSL (-k2500 is minimum) #
  65. # XSTORE = Memory for the rebuild job that generates C code #
  66. # RM = del for DOS, = rm for Unix #
  67. # MKDIR = mkdir #
  68. # COPY = copy for DOS, = cp for Unix #
  69. # STRIP = echo for DOS, = strip for Unix #
  70. # SYMBOLIC = .SYMBOLIC is using Watcom's "make" utility #
  71. # WX = wx for Windows 3.1, null in all other cases #
  72. # #
  73. # The master version of this file is called "makebase" and is used to #
  74. # create both DOS and Unix makefiles. Use the Codemist "makemake" #
  75. # program to perform the conversion - eg #
  76. # makemake -f makebase -o makemake.386 watcom dos #
  77. # makemake -f makebase -o Makefile.sgi sgi #
  78. # Just "makemake -f makebase" gives list of systems supported #
  79. ###########################################################################
  80. ###########################################################################
  81. ###########################################################################
  82. ###########################################################################
  83. #
  84. # The main final target is r36.img, the image file for full REDUCE.
  85. # If you want to rebuild stage-by-stage (eg while testing), try the
  86. # sequence
  87. # make csl compiles and links C coded kernel
  88. # make csl.img builds compiler image on top of above
  89. # make slowr36.img makes bootstrap REDUCE
  90. # (roughly twice as slow as final one)
  91. # only used for system recompilation.
  92. # make ccode runs test file to collect statistics
  93. # and create files u*.c and u*.lsp
  94. # out of hot-spot parts of REDUCE. Note that
  95. # >>>>>>>>>>>>>>>>>>> this is not done automatically by the main
  96. # >>>> N. B. >>>> set of "make" dependences, since the
  97. # >>>>>>>>>>>>>>>>>>> files u*.* provided are probably OK - but
  98. # you need to do it again if the main REDUCE
  99. # sources are altered
  100. # make fasl36.img final compilation of most of REDUCE
  101. # make r36 build final executable binary
  102. # make r36.img build final image file
  103. # make testall runs test files, output to log directory
  104. #
  105. ###########################################################################
  106. ###########################################################################
  107. #
  108. # C is another name for CSLBASE, the directory that CSL source files live
  109. # in. I introduce it here mainly because $(C) is so much more compact
  110. # then $(CSLBASE).
  111. #
  112. C = $(CSLBASE)
  113. #
  114. # DOBJS is a list of all the object files that are common to all variants
  115. # on the system built here
  116. #
  117. DOBJS = arith01.o arith02.o arith03.o arith04.o \
  118. arith05.o arith06.o arith07.o arith08.o \
  119. arith09.o arith10.o arith11.o arith12.o \
  120. char.o csl.o cslmpi.o eval1.o eval2.o \
  121. eval3.o eval4.o fns1.o fns2.o fns3.o \
  122. print.o read.o restart.o $(ASMOBJ) \
  123. $(SYS).o
  124. CDOBJS = arith01.o,arith02.o,arith03.o,arith04.o,\
  125. arith05.o,arith06.o,arith07.o,arith08.o,\
  126. arith09.o,arith10.o,arith11.o,arith12.o,\
  127. char.o,csl.o,cslmpi.o,eval1.o,eval2.o,\
  128. eval3.o,eval4.o,fns1.o,fns2.o,fns3.o,\
  129. print.o,read.o,restart.o,$(ASMOBJ),\
  130. $(SYS).o
  131. #
  132. # OBJS adds in the files used when I am not building a demonstration-mode CSL
  133. #
  134. OBJS = $(DOBJS) fasl.o gc.o preserve.o
  135. COBJS = $(CDOBJS),fasl.o,gc.o,preserve.o
  136. #
  137. # UOBJS come from that code that is compiled from Lisp into C
  138. #
  139. UOBJS = u01.o u02.o u03.o u04.o u05.o \
  140. u06.o u07.o u08.o u09.o u10.o \
  141. u11.o u12.o
  142. CUOBJS = u01.o,u02.o,u03.o,u04.o,u05.o,\
  143. u06.o,u07.o,u08.o,u09.o,u10.o,\
  144. u11.o,u12.o
  145. ###########################################################################
  146. ###########################################################################
  147. #
  148. # "r36.img" is an image file for the main parts of Reduce
  149. r36.img: fasl36.img r36
  150. $(WX) r36 $(STORE) -v -z -i fasl36.img -o- ../cslsrc/r36.lsp -- r36.log
  151. -$(MKDIR) log
  152. # "make patches" can be used after the "src/patches.red" file has changed
  153. patches: ../src/patches.red $(SYMBOLIC)
  154. $(WX) r36 $(STORE) -v ../cslsrc/mkpatch.red -- mkpatch.log
  155. $(WX) r36 $(STORE) -v -i- -o fasl36.img ../cslsrc/mkpatch1.red -- mkpatch1.log
  156. $(WX) r36 $(STORE) -v -z -i fasl36.img -o- ../cslsrc/r36.lsp -- r36.log
  157. #
  158. # "make testall" tests the final production version of Reduce
  159. #
  160. testall: log/algint.log log/applysym.log log/arnum.log log/assist.log log/avector.log \
  161. log/boolean.log log/cali.log log/camal.log log/changevr.log \
  162. log/compact.log log/complex.log log/crack.log log/cvit.log \
  163. log/decompos.log log/defint.log log/desir.log log/dfpart.log \
  164. log/dummy.log log/elem.log log/excalc.log log/factor.log \
  165. log/fide.log log/fps.log log/gcd.log log/gentran.log \
  166. log/groebner.log log/ideals.log log/ineq.log log/int.log \
  167. log/invbase.log log/laplace.log log/lie.log log/limits.log \
  168. log/linalg.log log/math.log log/matrix.log log/modsr.log \
  169. log/ncpoly.log log/normform.log log/numeric.log log/odesolve.log \
  170. log/orthovec.log log/pf.log log/physop.log log/pmrules.log \
  171. log/randpoly.log log/reacteqn.log log/reduce.log log/residue.log log/rlfi.log \
  172. log/rlisp88.log log/roots.log log/rounded.log log/rsolve.log \
  173. log/scope.log log/sets.log log/solve.log log/spde.log \
  174. log/specfn.log log/sum.log log/symmetry.log log/taylor.log \
  175. log/tps.log log/tri.log log/trigsimp.log log/wu.log log/xcolor.log log/xideal.log \
  176. log/zeilberg.log log/ztrans.log $(SYMBOLIC)
  177. -echo all tests done
  178. ###########################################################################
  179. ###########################################################################
  180. #
  181. # The targets from here on down are used in the process of doing a full
  182. # system re-build
  183. # fasl36.img is a file needed during a re-build of Reduce. It contains
  184. # compiled versions of all the Reduce modules.
  185. fasl36.img: csl slowr36.img
  186. -$(RM) fasl36.img
  187. $(WX) csl $(STORE) -v -i slowr36.img -o fasl36.img \
  188. ../cslsrc/fasl36.red -- fasl36.log
  189. # "make personal" downgrades a full version of Reduce to make a"personal"
  190. # version (without the compiler).
  191. personal: r36 r36.img $(SYMBOLIC)
  192. $(COPY) r36 ../r36
  193. $(COPY) r36.img ../r36.img
  194. $(WX) ../r36 ../cslsrc/remcmp.lsp
  195. # "make rl" manufactures an image file that contains just an Rlisp parser
  196. rl: $(SYMBOLIC) rlisp rlisp.img
  197. rlisp: $(SYMBOLIC) csl
  198. $(COPY) csl rlisp
  199. rlisp.img: rlisp
  200. $(WX) rlisp $(STORE) -v -z -o rlisp.img \
  201. ../cslsrc/mkrlisp.lsp -D@cslbase="$(C)" -- rlisp.log
  202. #
  203. # r36 can only be built when all the user-generated C code has been
  204. # built.
  205. #
  206. r36: bytes.o $(OBJS) \
  207. $(UOBJS)
  208. $(LINK) $(LFLAGS) bytes.o $(OBJS) $(UOBJS) $(LIBS) $(OUT) r36 $(TAIL)
  209. $(STRIP) r36
  210. #
  211. # slowr36 is a version of Reduce used just to compile the final version.
  212. # It is larger and slower than the final release version, and will not have
  213. # all the optional modules built into it.
  214. #
  215. slowr36.img: csl ../cslsrc/slowr36.lsp ../src/boot.sl \
  216. ../src/cslprolo.red ../src/module.red \
  217. ../src/rlisp.red ../src/cslrend.red ../src/poly.red \
  218. ../src/alg.red ../src/arith.red ../src/mathpr.red \
  219. ../src/entry.red
  220. $(WX) csl $(STORE) -o slowr36.img -v -z \
  221. ../cslsrc/slowr36.lsp -D@cslbase="$(C)" -- slowr36.log
  222. #
  223. # A few targets here may help me tidy up my filespace from time to time
  224. #
  225. cleansmall: $(SYMBOLIC)
  226. -$(RM) slowr36.img
  227. clean: $(SYMBOLIC)
  228. -$(RM) slowr36.img
  229. -$(RM) r36
  230. -$(RM) fasl36.img
  231. -$(RM) r36.img
  232. #
  233. # demored is a demonstration version of Reduce with built-in resource
  234. # limitations.
  235. #
  236. demored: csl slowr36.img bytes.o $(DOBJS) $(SYMBOLIC) \
  237. stubs.o
  238. $(CC) $(CFLAGS) $(C)/demo.c
  239. $(LINK) $(LFLAGS) bytes.o $(DOBJS) stubs.obj demo.o $(LIBS) $(OUT) demored $(TAIL)
  240. $(STRIP) demored
  241. -$(RM) demored.img
  242. $(WX) csl $(STORE) -i slowr36.img -v -z -i fasl36.img \
  243. -o demored.img ../cslsrc/makedemo.lsp -- makedemo.log
  244. ###########################################################################
  245. csl.img: csl $(C)/compat.lsp $(C)/compiler.lsp \
  246. $(C)/ccomp.lsp $(C)/extras.lsp
  247. -$(RM) csl.img
  248. $(WX) csl $(STORE) -v -z $(C)/build0.lsp \
  249. -D@cslbase="$(C)" -- cslimg.log
  250. csl: bytes.o $(OBJS) \
  251. stubs.o
  252. $(LINK) $(LFLAGS) bytes.o $(OBJS) stubs.o $(LIBS) $(OUT) csl $(TAIL)
  253. $(STRIP) csl
  254. slowcsl: bytes1.o $(OBJS) \
  255. stubs.o
  256. $(LINK) $(LFLAGS) bytes1.o $(OBJS) stubs.o $(LIBS) $(OUT) slowcsl $(TAIL)
  257. $(STRIP) slowcsl
  258. #
  259. # "make lispfile"
  260. # recreates compiler.lsp, extras.lsp and ccomp.lsp from
  261. # the corresponding master sources which are held in RLISP
  262. # form. Temporarily builds an RLISP parser on the way.
  263. lispfile: csl csl.img $(C)/lispfile.lsp $(SYMBOLIC)
  264. $(WX) csl $(STORE) -v -z $(C)/lispfile.lsp \
  265. -D@cslbase="$(C)" -- lispfile.log
  266. signature: $(C)/version.hhh register.key $(SYMBOLIC)
  267. filesign -u $(C)/version.hhh $(C)/version.h Developer or tester
  268. #
  269. # Now rules for re-compiling the main collection of CSL source files. I
  270. # write each case out individually since that makes the makefile less
  271. # delicate than one that relies on setting up general rules - and I want this
  272. # file to work on several different systems.
  273. #
  274. $(ASMOBJDEP): $(C)/$(ASMSRC)
  275. $(ASM) $(ASMFLAGS) $(C)/$(ASMSRC)
  276. arith01.o: $(C)/arith01.c $(C)/arith.h $(C)/tags.h $(C)/machine.h \
  277. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h
  278. $(CC) $(CFLAGS) \
  279. $(C)/arith01.c
  280. arith02.o: $(C)/arith02.c $(C)/arith.h $(C)/tags.h $(C)/machine.h \
  281. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h
  282. $(CC) $(CFLAGS) \
  283. $(C)/arith02.c
  284. arith03.o: $(C)/arith03.c $(C)/arith.h $(C)/tags.h $(C)/machine.h \
  285. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h
  286. $(CC) $(CFLAGS) \
  287. $(C)/arith03.c
  288. arith04.o: $(C)/arith04.c $(C)/arith.h $(C)/tags.h $(C)/machine.h \
  289. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h
  290. $(CC) $(CFLAGS) \
  291. $(C)/arith04.c
  292. arith05.o: $(C)/arith05.c $(C)/arith.h $(C)/tags.h $(C)/machine.h \
  293. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h $(C)/stream.h
  294. $(CC) $(CFLAGS) \
  295. $(C)/arith05.c
  296. arith06.o: $(C)/arith06.c $(C)/arith.h $(C)/tags.h $(C)/machine.h \
  297. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h $(C)/entries.h
  298. $(CC) $(CFLAGS) \
  299. $(C)/arith06.c
  300. arith07.o: $(C)/arith07.c $(C)/arith.h $(C)/tags.h $(C)/machine.h \
  301. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h
  302. $(CC) $(CFLAGS) \
  303. $(C)/arith07.c
  304. arith08.o: $(C)/arith08.c $(C)/arith.h $(C)/tags.h $(C)/machine.h \
  305. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h $(C)/entries.h
  306. $(CC) $(CFLAGS) \
  307. $(C)/arith08.c
  308. arith09.o: $(C)/arith09.c $(C)/arith.h $(C)/tags.h $(C)/machine.h \
  309. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h
  310. $(CC) $(CFLAGS) \
  311. $(C)/arith09.c
  312. arith10.o: $(C)/arith10.c $(C)/arith.h $(C)/tags.h $(C)/machine.h \
  313. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h $(C)/entries.h
  314. $(CC) $(CFLAGS) \
  315. $(C)/arith10.c
  316. arith11.o: $(C)/arith11.c $(C)/arith.h $(C)/tags.h $(C)/machine.h \
  317. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h
  318. $(CC) $(CFLAGS) \
  319. $(C)/arith11.c
  320. arith12.o: $(C)/arith12.c $(C)/arith.h $(C)/tags.h $(C)/machine.h \
  321. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h $(C)/entries.h
  322. $(CC) $(CFLAGS) \
  323. $(C)/arith12.c
  324. bytes.o: $(C)/bytes1.c $(C)/bytes.c $(C)/tags.h $(C)/machine.h \
  325. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h \
  326. $(C)/bytes.h $(C)/arith.h
  327. $(CC) $(CFLAGS) \
  328. $(C)/bytes.c
  329. bytes1.o: $(C)/bytes1.c $(C)/bytes.c $(C)/tags.h $(C)/machine.h \
  330. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h \
  331. $(C)/bytes.h $(C)/arith.h
  332. $(CC) $(CFLAGS) \
  333. $(C)/bytes1.c
  334. #
  335. # The target "bytes1a.o" recompiles bytes1.c, but with the flag set that
  336. # arranges that the number of GET operations performed and the associated
  337. # indicators will be recorded, so that (bytecounts) will display statistics
  338. # about it. This slows things down considerably, but can help when you are in
  339. # the process of deciding which indicators are specified as "fast" ones.
  340. #
  341. bytes1a.o: $(C)/bytes1.c $(C)/bytes.c $(C)/tags.h $(C)/machine.h \
  342. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h \
  343. $(C)/bytes.h $(C)/arith.h
  344. $(CC) $(CFLAGS) -DRECORD_GET=1 \
  345. $(C)/bytes1.c
  346. char.o: $(C)/char.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  347. $(C)/sys.h $(C)/cslerror.h $(C)/entries.h
  348. $(CC) $(CFLAGS) \
  349. $(C)/char.c
  350. csl.o: $(C)/csl.c $(C)/tags.h $(C)/machine.h $(C)/externs.h $(C)/version.h \
  351. $(C)/sys.h $(C)/cslerror.h $(C)/entries.h $(C)/stream.h $(C)/sockhdr.h
  352. $(CC) $(CFLAGS) \
  353. $(C)/csl.c
  354. eval1.o: $(C)/eval1.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  355. $(C)/sys.h $(C)/cslerror.h $(C)/arith.h $(C)/entries.h
  356. $(CC) $(CFLAGS) \
  357. $(C)/eval1.c
  358. eval2.o: $(C)/eval2.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  359. $(C)/sys.h $(C)/cslerror.h $(C)/arith.h $(C)/entries.h
  360. $(CC) $(CFLAGS) \
  361. $(C)/eval2.c
  362. eval3.o: $(C)/eval3.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  363. $(C)/sys.h $(C)/cslerror.h $(C)/entries.h
  364. $(CC) $(CFLAGS) \
  365. $(C)/eval3.c
  366. eval4.o: $(C)/eval4.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  367. $(C)/sys.h $(C)/cslerror.h $(C)/arith.h
  368. $(CC) $(CFLAGS) \
  369. $(C)/eval4.c
  370. fasl.o: $(C)/fasl.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  371. $(C)/sys.h $(C)/cslerror.h $(C)/arith.h
  372. $(CC) $(CFLAGS) \
  373. $(C)/fasl.c
  374. fns1.o: $(C)/fns1.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  375. $(C)/sys.h $(C)/cslerror.h $(C)/entries.h
  376. $(CC) $(CFLAGS) \
  377. $(C)/fns1.c
  378. fns2.o: $(C)/fns2.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  379. $(C)/sys.h $(C)/cslerror.h $(C)/read.h $(C)/entries.h \
  380. $(C)/sockhdr.h
  381. $(CC) $(CFLAGS) \
  382. $(C)/fns2.c
  383. fns3.o: $(C)/fns3.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  384. $(C)/sys.h $(C)/cslerror.h $(C)/read.h $(C)/entries.h
  385. $(CC) $(CFLAGS) \
  386. $(C)/fns3.c
  387. gc.o: $(C)/gc.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  388. $(C)/sys.h $(C)/cslerror.h
  389. $(CC) $(CFLAGS) \
  390. $(C)/gc.c
  391. #
  392. # For each major target I have one file that is system specific - eg
  393. # sysdos.c, sysunix.c, ...
  394. #
  395. $(SYS).o: $(C)/$(SYS).c $(C)/machine.h $(C)/externs.h \
  396. $(C)/sys.h $(C)/fileops.c $(C)/scandir.c $(C)/version.h \
  397. $(C)/filename.c
  398. $(CC) $(CFLAGS) \
  399. $(C)/$(SYS).c
  400. preserve.o: $(C)/preserve.c $(C)/tags.h $(C)/machine.h $(C)/stream.h \
  401. $(C)/externs.h $(C)/sys.h $(C)/cslerror.h $(C)/read.h $(C)/version.h
  402. $(CC) $(CFLAGS) \
  403. $(C)/preserve.c
  404. print.o: $(C)/print.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  405. $(C)/sys.h $(C)/cslerror.h $(C)/read.h \
  406. $(C)/arith.h $(C)/entries.h $(C)/stream.h $(C)/sockhdr.h
  407. $(CC) $(CFLAGS) \
  408. $(C)/print.c
  409. read.o: $(C)/read.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  410. $(C)/sys.h $(C)/cslerror.h $(C)/read.h \
  411. $(C)/arith.h $(C)/entries.h $(C)/stream.h $(C)/sockhdr.h
  412. $(CC) $(CFLAGS) \
  413. $(C)/read.c
  414. restart.o: $(C)/restart.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  415. $(C)/sys.h $(C)/cslerror.h $(C)/read.h $(C)/version.h \
  416. $(C)/arith.h $(C)/entries.h $(C)/stream.h
  417. $(CC) $(CFLAGS) \
  418. $(C)/restart.c
  419. stubs.o: $(C)/stubs.c $(C)/machine.h $(C)/externs.h $(C)/sys.h \
  420. $(C)/tags.h $(C)/cslerror.h
  421. $(CC) $(CFLAGS) \
  422. $(C)/stubs.c
  423. cslmpi.o: $(C)/cslmpi.c $(C)/machine.h $(C)/externs.h $(C)/sys.h \
  424. $(C)/mpipack.c $(C)/tags.h $(C)/cslerror.h
  425. $(CC) $(CFLAGS) \
  426. $(C)/cslmpi.c
  427. ###########################################################################
  428. u01.o: u01.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  429. $(C)/cslerror.h $(C)/entries.h
  430. $(CC) $(CFLAGS) \
  431. u01.c
  432. u02.o: u02.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  433. $(C)/cslerror.h $(C)/entries.h
  434. $(CC) $(CFLAGS) \
  435. u02.c
  436. u03.o: u03.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  437. $(C)/cslerror.h $(C)/entries.h
  438. $(CC) $(CFLAGS) \
  439. u03.c
  440. u04.o: u04.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  441. $(C)/cslerror.h $(C)/entries.h
  442. $(CC) $(CFLAGS) \
  443. u04.c
  444. u05.o: u05.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  445. $(C)/cslerror.h $(C)/entries.h
  446. $(CC) $(CFLAGS) \
  447. u05.c
  448. u06.o: u06.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  449. $(C)/cslerror.h $(C)/entries.h
  450. $(CC) $(CFLAGS) \
  451. u06.c
  452. u07.o: u07.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  453. $(C)/cslerror.h $(C)/entries.h
  454. $(CC) $(CFLAGS) \
  455. u07.c
  456. u08.o: u08.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  457. $(C)/cslerror.h $(C)/entries.h
  458. $(CC) $(CFLAGS) \
  459. u08.c
  460. u09.o: u09.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  461. $(C)/cslerror.h $(C)/entries.h
  462. $(CC) $(CFLAGS) \
  463. u09.c
  464. u10.o: u10.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  465. $(C)/cslerror.h $(C)/entries.h
  466. $(CC) $(CFLAGS) \
  467. u10.c
  468. u11.o: u11.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  469. $(C)/cslerror.h $(C)/entries.h
  470. $(CC) $(CFLAGS) \
  471. u11.c
  472. u12.o: u12.c $(C)/tags.h $(C)/machine.h $(C)/externs.h \
  473. $(C)/cslerror.h $(C)/entries.h
  474. $(CC) $(CFLAGS) \
  475. u12.c
  476. #
  477. # "make ccode" re-manufactures u01.c to u12.c and u01.lsp to u12.lsp
  478. # I do not put in dependencies that cause this to happen automatically
  479. # since experience shows that if I did it would happen (at significant
  480. # expense) much too often. However when things alter in the Reduce
  481. # source directory or when major changes are made to CSL this should be
  482. # activated.
  483. #
  484. #
  485. # N.B. the step here used $(XSTORE) rather than $(STORE) because this
  486. # build step may take more memory than any other.
  487. #
  488. ccode: slowcsl slowr36.img $(SYMBOLIC)
  489. $(WX) slowcsl $(XSTORE) -i slowr36.img -v ../cslsrc/select36.red -- select36.log
  490. #
  491. # Code to recreate the log files from the production version of the system.
  492. #
  493. # Note that for Windows benefit I use my own private output redirection with
  494. # "--" rather than ">", since ">" seems incompatible with fully window
  495. # applications, even when launched from the command line. Then to make this
  496. # file consistent across platforms I use the same scheme all the time.
  497. #
  498. log/algint.log: r36 r36.img ../xmpl/algint.tst
  499. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=algint -Dloadup=algint -- log/algint.log
  500. log/applysym.log: r36 r36.img ../xmpl/applysym.tst
  501. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=applysym -Dloadup=applysym -- log/applysym.log
  502. log/arnum.log: r36 r36.img ../xmpl/arnum.tst
  503. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=arnum -Dloadup=arnum -- log/arnum.log
  504. log/assist.log: r36 r36.img ../xmpl/assist.tst
  505. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=assist -Dloadup=assist -- log/assist.log
  506. log/avector.log: r36 r36.img ../xmpl/avector.tst
  507. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=avector -Dloadup=avector -- log/avector.log
  508. log/boolean.log: r36 r36.img ../xmpl/boolean.tst
  509. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=boolean -Dloadup=boolean -- log/boolean.log
  510. log/cali.log: r36 r36.img ../xmpl/cali.tst
  511. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=cali -Dloadup=cali -- log/cali.log
  512. log/camal.log: r36 r36.img ../xmpl/camal.tst
  513. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=camal -Dloadup=camal -- log/camal.log
  514. log/changevr.log: r36 r36.img ../xmpl/changevr.tst
  515. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=changevr -Dloadup=changevr -- log/changevr.log
  516. log/compact.log: r36 r36.img ../xmpl/compact.tst
  517. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=compact -Dloadup=compact -- log/compact.log
  518. log/complex.log: r36 r36.img ../xmpl/complex.tst
  519. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=complex -- log/complex.log
  520. log/crack.log: r36 r36.img ../xmpl/crack.tst
  521. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=crack -Dloadup=crack -- log/crack.log
  522. log/cvit.log: r36 r36.img ../xmpl/cvit.tst
  523. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=cvit -Dloadup=cvit -- log/cvit.log
  524. log/decompos.log: r36 r36.img ../xmpl/decompos.tst
  525. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=decompos -- log/decompos.log
  526. log/defint.log: r36 r36.img ../xmpl/defint.tst
  527. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=defint -Dloadup=defint -- log/defint.log
  528. log/desir.log: r36 r36.img ../xmpl/desir.tst
  529. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=desir -Dloadup=desir -- log/desir.log
  530. log/dfpart.log: r36 r36.img ../xmpl/dfpart.tst
  531. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=dfpart -Dloadup=dfpart -- log/dfpart.log
  532. log/dummy.log: r36 r36.img ../xmpl/dummy.tst
  533. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=dummy -Dloadup=dummy -- log/dummy.log
  534. log/elem.log: r36 r36.img ../xmpl/elem.tst
  535. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=elem -- log/elem.log
  536. log/excalc.log: r36 r36.img ../xmpl/excalc.tst
  537. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=excalc -Dloadup=excalc -- log/excalc.log
  538. log/factor.log: r36 r36.img ../xmpl/factor.tst
  539. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=factor -- log/factor.log
  540. log/fide.log: r36 r36.img ../xmpl/fide.tst
  541. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=fide -Dloadup=fide -- log/fide.log
  542. log/fps.log: r36 r36.img ../xmpl/fps.tst
  543. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=fps -Dloadup=fps -- log/fps.log
  544. log/gcd.log: r36 r36.img ../xmpl/gcd.tst
  545. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=gcd -- log/gcd.log
  546. log/gentran.log: r36 r36.img ../xmpl/gentran.tst
  547. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=gentran -Dloadup=gentran -- log/gentran.log
  548. log/groebner.log: r36 r36.img ../xmpl/groebner.tst
  549. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=groebner -Dloadup=groebner -- log/groebner.log
  550. log/ideals.log: r36 r36.img ../xmpl/ideals.tst
  551. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=ideals -Dloadup=ideals -- log/ideals.log
  552. log/ineq.log: r36 r36.img ../xmpl/ineq.tst
  553. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=ineq -Dloadup=ineq -- log/ineq.log
  554. log/int.log: r36 r36.img ../xmpl/int.tst
  555. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=int -- log/int.log
  556. log/invbase.log: r36 r36.img ../xmpl/invbase.tst
  557. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=invbase -Dloadup=invbase -- log/invbase.log
  558. log/laplace.log: r36 r36.img ../xmpl/laplace.tst
  559. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=laplace -Dloadup=laplace -- log/laplace.log
  560. log/lie.log: r36 r36.img ../xmpl/lie.tst
  561. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=lie -Dloadup=lie -- log/lie.log
  562. log/limits.log: r36 r36.img ../xmpl/limits.tst
  563. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=limits -- log/limits.log
  564. log/linalg.log: r36 r36.img ../xmpl/linalg.tst
  565. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=linalg -Dloadup=linalg -- log/linalg.log
  566. log/math.log: r36 r36.img ../xmpl/math.tst
  567. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=math -- log/math.log
  568. log/matrix.log: r36 r36.img ../xmpl/matrix.tst
  569. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=matrix -- log/matrix.log
  570. log/modsr.log: r36 r36.img ../xmpl/modsr.tst
  571. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=modsr -Dloadup=modsr -- log/modsr.log
  572. log/ncpoly.log: r36 r36.img ../xmpl/ncpoly.tst
  573. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=ncpoly -Dloadup=ncpoly -- log/ncpoly.log
  574. log/normform.log: r36 r36.img ../xmpl/normform.tst
  575. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=normform -Dloadup=normform -- log/normform.log
  576. log/numeric.log: r36 r36.img ../xmpl/numeric.tst
  577. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=numeric -Dloadup=numeric -- log/numeric.log
  578. log/odesolve.log: r36 r36.img ../xmpl/odesolve.tst
  579. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=odesolve -Dloadup=odesolve -- log/odesolve.log
  580. log/orthovec.log: r36 r36.img ../xmpl/orthovec.tst
  581. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=orthovec -Dloadup=orthovec -- log/orthovec.log
  582. log/pf.log: r36 r36.img ../xmpl/pf.tst
  583. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=pf -- log/pf.log
  584. log/physop.log: r36 r36.img ../xmpl/physop.tst
  585. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=physop -Dloadup=physop -- log/physop.log
  586. log/pmrules.log: r36 r36.img ../xmpl/pmrules.tst
  587. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=pmrules -Dloadup=pmrules -- log/pmrules.log
  588. log/randpoly.log: r36 r36.img ../xmpl/randpoly.tst
  589. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=randpoly -Dloadup=randpoly -- log/randpoly.log
  590. log/reacteqn.log: r36 r36.img ../xmpl/reacteqn.tst
  591. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=reacteqn -Dloadup=reacteqn -- log/reacteqn.log
  592. log/reduce.log: r36 r36.img ../xmpl/reduce.tst
  593. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=reduce -- log/reduce.log
  594. log/residue.log: r36 r36.img ../xmpl/residue.tst
  595. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=residue -Dloadup=residue -- log/residue.log
  596. log/rlfi.log: r36 r36.img ../xmpl/rlfi.tst
  597. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=rlfi -Dloadup=rlfi -- log/rlfi.log
  598. log/rlisp88.log: r36 r36.img ../xmpl/rlisp88.tst
  599. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=rlisp88 -- log/rlisp88.log
  600. log/roots.log: r36 r36.img ../xmpl/roots.tst
  601. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=roots -- log/roots.log
  602. log/rounded.log: r36 r36.img ../xmpl/rounded.tst
  603. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=rounded -- log/rounded.log
  604. log/rsolve.log: r36 r36.img ../xmpl/rsolve.tst
  605. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=rsolve -Dloadup=rsolve -- log/rsolve.log
  606. log/scope.log: r36 r36.img ../xmpl/scope.tst
  607. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=scope -Dloadup=scope -- log/scope.log
  608. log/sets.log: r36 r36.img ../xmpl/sets.tst
  609. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=sets -Dloadup=sets -- log/sets.log
  610. log/solve.log: r36 r36.img ../xmpl/solve.tst
  611. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=solve -- log/solve.log
  612. log/spde.log: r36 r36.img ../xmpl/spde.tst
  613. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=spde -Dloadup=spde -- log/spde.log
  614. log/specfn.log: r36 r36.img ../xmpl/specfn.tst
  615. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=specfn -Dloadup=specfn -- log/specfn.log
  616. log/sum.log: r36 r36.img ../xmpl/sum.tst
  617. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=sum -- log/sum.log
  618. log/symmetry.log: r36 r36.img ../xmpl/symmetry.tst
  619. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=symmetry -Dloadup=symmetry -- log/symmetry.log
  620. log/taylor.log: r36 r36.img ../xmpl/taylor.tst
  621. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=taylor -Dloadup=taylor -- log/taylor.log
  622. log/tps.log: r36 r36.img ../xmpl/tps.tst
  623. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=tps -Dloadup=tps -- log/tps.log
  624. log/tri.log: r36 r36.img ../xmpl/tri.tst
  625. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=tri -Dloadup=tri -- log/tri.log
  626. log/trigsimp.log: r36 r36.img ../xmpl/trigsimp.tst
  627. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=trigsimp -Dloadup=trigsimp -- log/trigsimp.log
  628. log/wu.log: r36 r36.img ../xmpl/wu.tst
  629. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=wu -Dloadup=wu -- log/wu.log
  630. log/xcolor.log: r36 r36.img ../xmpl/xcolor.tst
  631. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=xcolor -Dloadup=xcolor -- log/xcolor.log
  632. log/xideal.log: r36 r36.img ../xmpl/xideal.tst
  633. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=xideal -Dloadup=xideal -- log/xideal.log
  634. log/zeilberg.log: r36 r36.img ../xmpl/zeilberg.tst
  635. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=zeilberg -Dloadup=zeilberg -- log/zeilberg.log
  636. log/ztrans.log: r36 r36.img ../xmpl/ztrans.tst
  637. $(WX) r36 $(STORE) -b ../cslsrc/ndotest.red -Dname=ztrans -Dloadup=ztrans -- log/ztrans.log
  638. # end of makefile