Makefile.sgi 30 KB

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