Makefile.solaris 31 KB

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