JoelSjogren

Untitled

Aug 28th, 2017
331
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.85 KB | None | 0 0
  1. # Makefile for CoCoALib/src/CoCoA-5 directory.
  2.  
  3. CXXFLAGS_CUSTOM=-g
  4.  
  5. # installation directory COCOA5_INSTALL_DIR defined in autoconf.mk (set by configure script)
  6.  
  7. COCOA_ROOT=../..
  8. include $(COCOA_ROOT)/configuration/autoconf.mk
  9. include release-files/version
  10. COCOA5_VERSION_DEFINES=-DCOCOA5_VER_MAJ=$(COCOA5_VER_MAJ) -DCOCOA5_VER_MIN=$(COCOA5_VER_MIN) -DCOCOA5_VER_MINMIN=$(COCOA5_VER_MINMIN)
  11. CWD=src/CoCoA-5/
  12.  
  13. COCOA5_DOC_DIR=CoCoAManual
  14. COCOA5_DOC_XML=$(COCOA5_DOC_DIR)/CoCoAHelp.xml
  15. COCOA5_WORDLIST=$(COCOA5_DOC_DIR)/wordlist.txt
  16. COCOA5_DOC_AUX_DIR=$(COCOA5_DOC_DIR)/aux-files
  17. COCOA5_DOC_HTML_DIR=$(COCOA5_DOC_DIR)/html
  18. COCOA5_DOC_TEX_DIR=$(COCOA5_DOC_DIR)/tex
  19.  
  20. SRCS=AST.C Lexer.C Main.C Interpreter.C LineProviders.C Parser.C \
  21. CoCoALibSupplement.C \
  22. BuiltInFunctions.C \
  23. BuiltInFunctions-CoCoALib.C BuiltInOneLiners-CoCoALib.C \
  24. BuiltInFunctions-Frobby.C \
  25. BuiltInFunctions-GFan.C \
  26. BuiltInFunctions-GSL.C \
  27. BuiltInFunctions-Normaliz.C \
  28. OnlineHelp.C \
  29. VersionInfo.C Banner.C
  30. # CompilationDate.C
  31.  
  32.  
  33. # Default target
  34. .PHONY: all
  35. all: cocoa5 check wordlist doc
  36. @if [ $(HAVE_QMAKE) = "no" ]; \
  37. then \
  38. echo; \
  39. echo "*** Skipping building the GUI because \"qmake\" is absent ***"; \
  40. echo; \
  41. else \
  42. $(MAKE) gui; \
  43. fi
  44.  
  45. OBJS=$(SRCS:.C=.o)
  46.  
  47. $(OBJS): Makefile $(COCOA_ROOT)/configuration/autoconf.mk
  48.  
  49. CompilationDate.o: $(OBJS) $(COCOA_LIB) CompilationDate.C
  50. @echo "Compiling CompilationDate.o"
  51. $(COMPILE5) -c -o CompilationDate.o CompilationDate.C
  52.  
  53. COMPILE5=$(COMPILE) $(CXXFLAGS_CUSTOM)
  54.  
  55. DEPEND_FILE=Makefile_dependencies
  56.  
  57. # Rule for compiling C++ code in *.C files into *.o object files
  58. %.o: %.C
  59. @echo "Compiling `basename $@`"
  60. $(COMPILE5) -c -o $@ $<
  61.  
  62. # Rule for compiling and linking C++ code in *.C files
  63. %: %.C
  64. @echo "Compiling `basename $@`"
  65. $(COMPILE5) -o $@ $< $(LDLIBS)
  66.  
  67.  
  68. CoCoAInterpreter: CompilationDate.o $(COCOA_LIB)
  69. @echo "CoCoAInterpreter: linking everything together"
  70. $(COMPILE5) $(OBJS) CompilationDate.o -o CoCoAInterpreter $(LDLIBS)
  71. @#Next lines remove the *.dSYM directory which the Apple compiler creates
  72. @#but we remove it only if the compilation flag "-g" is absent.
  73. @AppleDir=CoCoAInterpreter.dSYM ; \
  74. echo " " $(CXXFLAGS) " " $(CXXFLAGS_CUSTOM) " " | fgrep " -g " >/dev/null; \
  75. if [ $$? -eq 1 -a -d "$$AppleDir" ] ; \
  76. then \
  77. /bin/rm -rf "$$AppleDir"; \
  78. fi
  79.  
  80.  
  81. VersionInfo.o: VersionInfo.C release-files/version
  82. @echo "Compiling VersionInfo.o (with special preprocessor flags)"
  83. $(COMPILE) -c $(COCOA5_VERSION_DEFINES) -o VersionInfo.o VersionInfo.C
  84.  
  85.  
  86. .PHONY: cocoa5
  87. cocoa5: check-prerequisites-verbose
  88. @$(MAKE) CoCoAInterpreter
  89.  
  90. .PHONY: check-prerequisites
  91. check-prerequisites:
  92. @test "$(HAVE_BOOST)" = "yes"
  93.  
  94. .PHONY: check-prerequisites-verbose
  95. check-prerequisites-verbose:
  96. @if [ "$(HAVE_BOOST)" = "no" ]; \
  97. then \
  98. echo "ERROR: Need BOOST libraries to build CoCoAInterpreter (& GUI)"; \
  99. echo "ERROR: Reconfigure CoCoA specifying location of BOOST"; \
  100. exit 1; \
  101. fi
  102.  
  103.  
  104. .PHONY: gui
  105. gui: check-prerequisites-verbose $(OBJS) $(COCOA_LIB) QCodeEdit/Makefile C5Makefile
  106. @echo "Making QCodeEdit"
  107. cd QCodeEdit; $(MAKE)
  108. @echo "Making the CoCoA GUI..."
  109. $(MAKE) -f C5Makefile
  110. ./make-gui-finish.sh
  111. @echo "CoCoA-5 GUI successfully built! :-)"
  112.  
  113. QCodeEdit/Makefile: $(COCOA_LIB) QCodeEdit/QCodeEdit.pro.in make-qcodeeditmakefile.sh
  114. if [ -f QCodeEdit/Makefile ]; then cd QCodeEdit; make clean; fi
  115. ./make-qcodeeditmakefile.sh
  116.  
  117. C5Makefile: $(COCOA_LIB) C5.pro.in make-c5makefile.sh
  118. if [ -f C5Makefile ]; then $(MAKE) -f C5Makefile distclean; fi
  119. ./make-c5makefile.sh $(CXXFLAGS_DEFINES) $(COCOA5_VERSION_DEFINES) $(LDLIBS)
  120.  
  121. .PHONY: check
  122. check: cocoa5
  123. @cd tests; $(MAKE) -s check
  124.  
  125.  
  126. .PHONY: install
  127. install: cocoa5 doc wordlist
  128. @echo "==========================================================="
  129. @echo ">>> WARNING: CoCoA-5 installation procedure is UNTESTED <<<"
  130. @echo "==========================================================="
  131. @echo
  132. @echo "Proceeding with installation after 5 seconds..."
  133. @echo "Target directory: $(COCOA5_INSTALL_DIR)"
  134. @echo
  135. @sleep 5
  136. @if [ \! -d "$(COCOA5_INSTALL_DIR)" ]; then echo "ERROR: $(COCOA5_INSTALL_DIR) does not exist or is not a directory"; exit 1; fi
  137. @if [ \! -w "$(COCOA5_INSTALL_DIR)" ]; then echo "ERROR: $(COCOA5_INSTALL_DIR) is not a writable directory"; echo "Consider using \"sudo\" command."; exit 1; fi
  138. @SUBDIR="$(COCOA5_INSTALL_DIR)/cocoa-$(COCOA5_VER_MAJ).$(COCOA5_VER_MIN).$(COCOA5_VER_MINMIN)"; \
  139. if [ -e "$$SUBDIR" ]; then /bin/chmod -R u+w "$$SUBDIR"; /bin/rm -rf "$$SUBDIR"; fi; \
  140. /bin/mkdir -m 755 "$$SUBDIR"; \
  141. /bin/cp -r packages emacs "$$SUBDIR"; \
  142. /bin/chmod 755 "$$SUBDIR/packages" "$$SUBDIR/emacs"; \
  143. /bin/cp cocoa5 CoCoAInterpreter* "$$SUBDIR"; \
  144. /bin/chmod 755 "$$SUBDIR/cocoa5" "$$SUBDIR/CoCoAInterpreter"; \
  145. /bin/mkdir -m 755 "$$SUBDIR/CoCoAManual"; \
  146. /bin/cp -r CoCoAManual/html/ "$$SUBDIR/CoCoAManual"; \
  147. /bin/cp CoCoAManual/tex/CoCoAManual.pdf "$$SUBDIR/CoCoAManual"; \
  148. /bin/cp CoCoAManual/CoCoAHelp.xml "$$SUBDIR/CoCoAManual"; \
  149. /bin/cp CoCoAManual/wordlist.txt "$$SUBDIR/CoCoAManual"; \
  150. /bin/cp ../../doc/CoCoATranslationTable.html "$$SUBDIR/CoCoAManual"; \
  151. /bin/rm -f "$(COCOA5_INSTALL_DIR)/cocoa5"; \
  152. /bin/ln -s "$$SUBDIR/cocoa5" "$(COCOA5_INSTALL_DIR)"
  153. @echo "CoCoA-5 installed in $(COCOA5_INSTALL_DIR)"
  154.  
  155.  
  156. AllExamples.o: $(COCOA_ROOT)/configuration/autoconf.mk
  157.  
  158. .PHONY: ManExamples
  159. ManExamples: cocoa5 OnlineHelp.o AllExamples.o
  160. $(COMPILE5) OnlineHelp.o AllExamples.o -o PrintManExamples $(LDLIBS)
  161. /bin/rm -rf PrintManExamples.dSYM # Apple's compiler creates this dir
  162. @echo "creating ManExamples-in.cocoa5 ...";
  163. ./PrintManExamples > $(COCOA_ROOT)/src/CoCoA-5/ManExamples-in.cocoa5
  164. @echo "...done. Running examples...";
  165. ./CoCoAInterpreter < ManExamples-in.cocoa5 > ManExamples-out;
  166. @echo "...done."
  167. @echo "=================================================="
  168. @echo ">>> NOW search for \"ERROR:\" in ManExamples-out <<<"
  169. @echo "=================================================="
  170.  
  171.  
  172. wordlist.o: $(COCOA_ROOT)/configuration/autoconf.mk
  173.  
  174. .PHONY: wordlist
  175. wordlist: $(COCOA5_WORDLIST)
  176.  
  177. $(COCOA5_WORDLIST): OnlineHelp.C wordlist.C $(COCOA5_DOC_XML)
  178. $(MAKE) OnlineHelp.o wordlist.o
  179. $(COMPILE5) OnlineHelp.o wordlist.o -o PrintWordlist $(LDLIBS)
  180. @/bin/rm -rf PrintWordlist.dSYM # Apple's compiler creates this dir
  181. @echo "creating wordlist..."; ./PrintWordlist > $(COCOA5_WORDLIST)
  182. @/bin/rm PrintWordlist
  183.  
  184. .PHONY: doc
  185. doc:
  186. @(cd $(COCOA5_DOC_DIR); make)
  187.  
  188. # .PHONY: htmldoc
  189. # htmldoc:
  190. # mkdir -p $(COCOA5_DOC_HTML_DIR)
  191. # /bin/rm -rf $(COCOA5_DOC_HTML_DIR)/*
  192. # cd $(COCOA5_DOC_HTML_DIR); java -jar ../aux-files/saxon.jar ../../$(COCOA5_DOC_XML) ../aux-files/GUI_help.xsl CoCoAVersion="$(COCOA5_VER_MAJ).$(COCOA5_VER_MIN).$(COCOA5_VER_MINMIN)"
  193. # # cp -r $(COCOA5_DOC_AUX_DIR)/GUI-extra-files/* $(COCOA5_DOC_HTML_DIR)/.
  194. # # cd packages/man/generated/; tar cfz doc.tgz doc
  195. # # rm -rf doc
  196. # # cp ../man-xml/generated/doc.tgz .
  197. # # tar xfz doc.tgz
  198.  
  199.  
  200.  
  201. # .PHONY : texdoc
  202. # texdoc:
  203. # /bin/mkdir -p $(COCOA5_DOC_TEX_DIR)
  204. # /bin/rm -rf $(COCOA5_DOC_TEX_DIR)/*
  205. # cd $(COCOA5_DOC_TEX_DIR); java -jar ../aux-files/saxon.jar ../../$(COCOA5_DOC_XML) ../aux-files/TeX.xsl CoCoAVersion="$(COCOA5_VER_MAJ).$(COCOA5_VER_MIN).$(COCOA5_VER_MINMIN)" > CoCoAManual.tex
  206. # cp -r $(COCOA5_DOC_AUX_DIR)/TeX-extra-files/* $(COCOA5_DOC_TEX_DIR)/.
  207. # @cd $(COCOA5_DOC_TEX_DIR); \
  208. # echo "Pass 1 of 3"; pdflatex -halt-on-error CoCoAManual > /dev/null; \
  209. # echo "Pass 2 of 3"; pdflatex -halt-on-error CoCoAManual > /dev/null; \
  210. # echo "Final pass"; pdflatex -halt-on-error CoCoAManual > /dev/null
  211.  
  212. # OptCoCoAInterpreter: $(SRCS)
  213. # $(CXX) -o OptCoCoAInterpreter $(C_FLAGS) $(OPT_FLAGS) $(INCLUDE5) *.C $(LDLIBS)
  214.  
  215. .PHONY: lib
  216. lib: library
  217.  
  218. .PHONY: library
  219. library:
  220. @(cd $(COCOA_ROOT); $(MAKE) library)
  221.  
  222.  
  223. .PHONY: clean clean-local clean-subdirs
  224. clean: clean-local clean-subdirs
  225. @echo "Cleaned CoCoALib/$(CWD)"
  226.  
  227. clean-local:
  228. @/bin/rm -f $(OBJS) CompilationDate.o wordlist.o $(DEPEND_FILE).old ./*~ ./.*~ ./.\#*
  229. @/bin/rm -rf C5.app ./*.dSYM
  230. @/bin/rm -f C5Makefile C5.pro
  231. @/bin/rm -f moc_C5.cpp qrc_C5.cpp ui_Console.h ui_Debugger.h ui_MainWindow.h ui _SourceEditor.h
  232. @/bin/rm -f CoCoAInterpreter OptCoCoAInterpreter
  233. @/bin/rm -f PrintWordlist PrintManExamples
  234. @/bin/rm -f AllExamples.o ManExamples-in.cocoa5 ManExamples-out PLOT-* CoCoAPlot
  235.  
  236. clean-subdirs:
  237. cd $(COCOA5_DOC_DIR); /bin/rm -f ./*~ ./.\#*
  238. cd emacs; /bin/rm -f ./*~ ./.\#*
  239. cd packages; /bin/rm -f ./*~ ./.\#*
  240. cd tests; /bin/rm -f ./*~ ./.\#* ./*.found ./*.cerr
  241. cd QCodeEdit/; if [ -f "Makefile" ]; then $(MAKE) -s -o QCodeEdit.pro distclean; fi
  242. /bin/rm -f QCodeEdit/QCodeEdit.pro QCodeEdit/Makefile
  243. /bin/rm -rf QCodeEdit/.build/
  244. if [ -d Debug ]; then /bin/rm -rf Debug/; mkdir Debug/; fi
  245.  
  246. .PHONY: veryclean veryclean-local veryclean-subdirs
  247. veryclean: veryclean-local veryclean-subdirs
  248. @/bin/rm -f QCodeEdit/libqcodeedit.a QCodeEdit/Makefile
  249. @echo "Verycleaned CoCoALib/$(CWD)"
  250.  
  251. veryclean-local: clean-local
  252. /bin/rm -f $(DEPEND_FILE)
  253. touch "$(DEPEND_FILE)" # Trick, otherwise make complains after a veryclean
  254.  
  255. veryclean-subdirs: clean-subdirs
  256. /bin/rm -f $(COCOA5_WORDLIST)
  257. /bin/rm -rf $(COCOA5_DOC_TEX_DIR)
  258. /bin/rm -rf $(COCOA5_DOC_HTML_DIR)
  259. /bin/rm -rf release-files/MacCoCoA-5.1.app-*
  260. /bin/rm -rf release-files/CoCoA-5.1-*
  261. /bin/rm -rf release-files/cocoa-5.1-*
  262.  
  263.  
  264. # This target checks whether we should really build DEPEND_FILE
  265. .PHONY: dependencies
  266. dependencies:
  267. @if [ -f "$(COCOA_HDR)" -a \! "$(DEPEND_FILE)" -nt "$(COCOA_HDR)" ] ; \
  268. then \
  269. $(MAKE) create-dependencies; \
  270. fi
  271.  
  272. # This is the target which really does rebuild the DEPEND_FILE
  273. .PHONY: create-dependencies
  274. create-dependencies:
  275. if [ -f $(DEPEND_FILE) ] ; \
  276. then \
  277. mv -f $(DEPEND_FILE) $(DEPEND_FILE).old ; \
  278. fi
  279. @echo "Rebuilding dependencies in <CoCoALib>/$(CWD)"
  280. @echo "##################################################################" >> $(DEPEND_FILE)
  281. @echo "# --- CoCoALib version $(VERSION) ---" >> $(DEPEND_FILE)
  282. @echo "# Dependencies for directory $(CWD)" >> $(DEPEND_FILE)
  283. @echo "# DO NOT EDIT: this file is automatically generated; to regenerate" >> $(DEPEND_FILE)
  284. @echo "# run \`make dependencies' in the CoCoA-5 directory." >> $(DEPEND_FILE)
  285. @echo "##################################################################" >> $(DEPEND_FILE)
  286. @echo >> $(DEPEND_FILE)
  287. if [ $(HAVE_BOOST) = "no" ] ; \
  288. then \
  289. echo "********************"; \
  290. echo "*** BOOST absent *** ==> not rebuilding CoCoA-5 dependencies"; \
  291. echo "********************"; \
  292. exit 0; \
  293. fi; \
  294. for srcfile in $(SRCS); \
  295. do \
  296. objfile=`basename $$srcfile .C`.o; \
  297. $(CXX) $(CXXFLAGS) $(CXXFLAGS_DEFINES) $(INCLUDE) -MM "$$srcfile" -MQ "$$objfile" >> $(DEPEND_FILE); \
  298. echo >> $(DEPEND_FILE); \
  299. done
  300.  
  301.  
  302. $(DEPEND_FILE):
  303. @touch $(DEPEND_FILE) # to avoid infinite recursion in make!
  304.  
  305.  
  306. include $(DEPEND_FILE)
  307.  
  308. # Next few lines are for RCS header/log
  309. # $Header: /Volumes/Home_1/cocoa/cvs-repository/CoCoALib-0.99/src/CoCoA-5/Makefile,v 1.128 2017/04/28 20:13:41 abbott Exp $
  310. # $Log: Makefile,v $
  311. # Revision 1.128 2017/04/28 20:13:41 abbott
  312. # Summary: Made for obvious the final mesg for ManExamples
  313. #
  314. # Revision 1.127 2017/04/28 15:48:19 abbott
  315. # Summary: Also clean target now removes AllExamples.o
  316. #
  317. # Revision 1.126 2017/04/28 15:45:58 abbott
  318. # Summary: Clean now removes ManExamples-out too
  319. #
  320. # Revision 1.125 2017/04/28 14:55:57 bigatti
  321. # -- improved reminder for ManExamples
  322. #
  323. # Revision 1.124 2017/04/28 14:28:47 bigatti
  324. # -- reminder for checkin ManExamples-out
  325. #
  326. # Revision 1.123 2017/03/01 17:26:18 abbott
  327. # Summary: Removed bloody make veryclean-subdirs from QCodeEdit/Makefile rule
  328. #
  329. # Revision 1.122 2017/02/22 12:36:18 abbott
  330. # Summary: Changed dependencies for wordlist
  331. #
  332. # Revision 1.121 2017/02/14 17:06:29 abbott
  333. # Summary: Updated clean/veryclean targets in all Makefiles
  334. #
  335. # Revision 1.120 2017/02/02 12:52:25 abbott
  336. # Summary: Minor correction to installation script
  337. #
  338. # Revision 1.119 2016/12/13 17:16:22 abbott
  339. # Summary: Now prints message after building the GUI
  340. #
  341. # Revision 1.118 2016/12/08 10:36:29 abbott
  342. # Summary: Improved "install" target
  343. #
  344. # Revision 1.117 2016/12/01 10:21:30 abbott
  345. # Summary: "make install" now creates symbolic link too
  346. #
  347. # Revision 1.116 2016/11/30 20:12:13 abbott
  348. # Summary: Minor improvement to cocoa5 "install" target; dir is now specfied by configure script, and put in autoconf.mk
  349. #
  350. # Revision 1.115 2016/11/30 20:00:08 abbott
  351. # Summary: Added first version of "install" target
  352. #
  353. # Revision 1.114 2016/10/12 13:49:11 bigatti
  354. # -- fix for make ManExamples, and output redirected to ManExamples-out
  355. #
  356. # Revision 1.113 2016/05/18 12:28:08 abbott
  357. # Summary: Added new target "lib": synonym for "library"
  358. #
  359. # Revision 1.112 2016/03/21 15:10:15 bigatti
  360. # -- automatic version numbering for html doc
  361. #
  362. # Revision 1.111 2016/03/21 14:44:03 bigatti
  363. # added automatic version numbering to TeX documentation
  364. #
  365. # Revision 1.110 2016/03/19 20:08:12 abbott
  366. # Summary: Revised to work with new release-files/version
  367. #
  368. # Revision 1.109 2016/03/18 12:12:48 bigatti
  369. # -- Renamed BuiltInOneLiners-CoCoALib
  370. #
  371. # Revision 1.108 2016/03/09 10:18:08 abbott
  372. # Summary: Minor aesthetic change
  373. #
  374. # Revision 1.107 2016/02/18 11:29:11 abbott
  375. # Summary: Now uses COCOA5_VERSION_DEFINES; also passes value to make-c5makefile
  376. #
  377. # Revision 1.106 2016/02/17 11:12:23 bigatti
  378. # -- added version minmin
  379. #
  380. # Revision 1.105 2016/01/06 12:16:36 abbott
  381. # Summary: Minor change to a progress message
  382. #
  383. # Revision 1.104 2015/12/02 17:07:50 abbott
  384. # Summary: Corrected target clean-subdirs (remove *.found and *.cerr in tests subdir)
  385. #
  386. # Revision 1.103 2015/10/08 13:09:13 bigatti
  387. # -- BuiltInFunctions.C split into BuiltInFunctions + BuiltInFunctions-CoCoALib
  388. #
  389. # Revision 1.102 2015/09/03 09:33:25 bigatti
  390. # -- added BuiltInFunctions-GFan
  391. #
  392. # Revision 1.101 2015/09/02 14:47:54 bigatti
  393. # -- make veryclean-subdirs also deletes old copies of release dirs
  394. # (but not the latest...)
  395. #
  396. # Revision 1.100 2015/04/16 20:23:41 abbott
  397. # Summary: target clean-local now delete CompilationDate.o too
  398. # Author: JAA
  399. #
  400. # Revision 1.99 2014/12/01 10:35:14 bigatti
  401. # -- added "worlist" to "doc" target
  402. #
  403. # Revision 1.98 2014/10/30 13:23:42 abbott
  404. # Summary: CompilationDate.o now depends on COCOA_LIB
  405. # Author: JAA
  406. #
  407. # Revision 1.97 2014/09/05 16:12:24 abbott
  408. # Summary: Missed a couple of changes CoCoAInterpreter --> cocoa5; now done
  409. # Author: JAA
  410. #
  411. # Revision 1.96 2014/09/05 16:10:29 abbott
  412. # Summary: Now rebuilds CompilationDate only when necessary; CoCoAInterpreter cleaner; new target cocoa5
  413. # Author: JAA
  414. #
  415. # Revision 1.95 2014/09/01 12:09:27 abbott
  416. # Summary: Strengthened clean-subirs; removed redundancy from veryclean-subdirs
  417. # Author: JAA
  418. #
  419. # Revision 1.94 2014/08/01 11:54:08 bigatti
  420. # -- fixed veryclean
  421. #
  422. # Revision 1.93 2014/08/01 11:51:43 bigatti
  423. # == changed ManExamples (and veryclean)
  424. #
  425. # Revision 1.92 2014/08/01 11:32:02 bigatti
  426. # -- changed ManExamples
  427. #
  428. # Revision 1.91 2014/07/30 16:56:43 bigatti
  429. # ++ added "make doc"
  430. #
  431. # Revision 1.90 2014/07/28 14:55:07 abbott
  432. # Summary: Improved targets (very)clean-local; new scheme for building dependencies
  433. # Author: JAA
  434. #
  435. # Revision 1.89 2014/07/22 11:15:32 bigatti
  436. # -- changed output file for target ManExamples
  437. #
  438. # Revision 1.88 2014/06/28 14:55:26 abbott
  439. # Summary: Revised in line with new configuration scripts
  440. # Author: JAA
  441. #
  442. # Revision 1.87 2014/06/17 10:17:57 abbott
  443. # Summary: depend_file now depends on library.H (instead of version)
  444. # Author: JAA
  445. #
  446. # Revision 1.86 2014/06/13 12:06:44 abbott
  447. # Summary: Corrected name of "CoCoAManual/aux" subdir
  448. # Author: JAA
  449. #
  450. # Revision 1.85 2014/05/14 13:16:21 bigatti
  451. # -- ManExamples nowcreates ManExamples-out
  452. #
  453. # Revision 1.84 2014/05/14 07:37:29 bigatti
  454. # -- commented out line for manual about old gui
  455. #
  456. # Revision 1.83 2014/04/22 12:47:47 abbott
  457. # Summary: Added capability to increase max stack size when starting CoCoAInterpreter
  458. # Author: JAA
  459. #
  460. # Revision 1.82 2014/04/17 12:22:04 abbott
  461. # Summary: Changed clean-local, veryclean-local; new approach for rebuilding dependencies
  462. # Author: JAA
  463. #
  464. # Revision 1.81 2014/04/04 16:41:12 bigatti
  465. # Summary: makefile gui: gmpxx must be last!
  466. #
  467. # Revision 1.80 2014/03/21 12:01:39 abbott
  468. # Summary: Corrected (& simplified) defn of LIBS5
  469. # Author: JAA
  470. #
  471. # Revision 1.79 2014/03/14 11:03:31 abbott
  472. # Summary: clean and veryclean targets now delete *~ and .*~ files too
  473. # Author: JAA
  474. #
  475. # Revision 1.78 2014/03/07 14:17:57 abbott
  476. # Summary: Corrected dependencies for C5Makefile and QCodeEdit/Makefile
  477. # Author: JAA
  478. #
  479. # Revision 1.77 2014/03/05 11:15:23 bigatti
  480. # -- undoing wrong commit
  481. #
  482. # Revision 1.75 2014/01/29 18:55:34 abbott
  483. # Summary: Improved clean-subdirs target; wordlist.txt target now deletes PrintWordList executable.
  484. # Author: JAA
  485. #
  486. # Revision 1.74 2014/01/29 18:00:12 abbott
  487. # Summary: Target veryclean-local now deletes wordlist (generated file)
  488. # Author: JAA
  489. #
  490. # Revision 1.73 2014/01/29 15:46:25 abbott
  491. # Summary: Moved some rm command from veryclean-local to clean-local
  492. # Author: JAA
  493. #
  494. # Revision 1.72 2014/01/28 09:49:23 abbott
  495. # Corrected veryclean-local & veryclean-subdirs targets.
  496. #
  497. # Revision 1.71 2013/06/26 17:37:26 bigatti
  498. # -- added BuiltInFunctions-Frobby.C
  499. #
  500. # Revision 1.70 2013/05/14 14:24:47 abbott
  501. # Revised to be compatible with new BOOST libs script.
  502. #
  503. # Revision 1.69 2013/05/08 09:43:14 abbott
  504. # Added dependency of all object files on the Makefile itself.
  505. #
  506. # Revision 1.68 2013/03/15 17:47:46 abbott
  507. # Further change to make sure Qt dependent code is rebuilt when autoconf.mk changes.
  508. #
  509. # Revision 1.67 2013/03/15 11:03:36 abbott
  510. # Added extra line to force rebuilding of QCodeEdit stuff when autoconf.mk changes.
  511. #
  512. # Revision 1.66 2013/03/12 15:16:57 abbott
  513. # Attempt to fix a "wrong architecture" error message.
  514. #
  515. # Revision 1.65 2013/03/07 17:49:34 abbott
  516. # Added (first impl of) new command SourceRegion.
  517. # Had to hack uglily readAndExecute (in Interpreter.C).
  518. #
  519. # Revision 1.64 2012/10/24 14:05:59 abbott
  520. # Made veryclean-local remove more files.
  521. #
  522. # Revision 1.63 2012/10/02 12:12:40 abbott
  523. # Simplified defn of COMPILE5.
  524. # Removed defn of INCLUDE5.
  525. # Removed commented out code referring to ZIP library.
  526. #
  527. # Revision 1.62 2012/10/01 13:59:30 abbott
  528. # Updated command for generating dependency file.
  529. #
  530. # Revision 1.61 2012/09/27 15:29:09 abbott
  531. # Simplified and updated the rule for building C5Makefile.
  532. #
  533. # Revision 1.60 2012/08/06 09:45:41 abbott
  534. # Removed an unwanted space in a printed message.
  535. #
  536. # Revision 1.59 2012/08/06 09:20:07 abbott
  537. # Improved layout of message saying we're not building GUI.
  538. # Added wordlist.o to files to remove when cleaning.
  539. #
  540. # Revision 1.58 2012/08/06 09:14:53 abbott
  541. # Added a check for HAVE_qmake-qt4 so we give the user a helpful message instead of
  542. # an error when trying to builf GUI but qmake-qt4 is absent.
  543. #
  544. # Revision 1.57 2012/08/05 12:26:03 abbott
  545. # Added check-prerequisites and check-prerequisites-verbose targets
  546. # (replaced the old targets boost-hdr-check and boost-lib-check)
  547. #
  548. # Revision 1.56 2012/08/02 16:35:35 abbott
  549. # Added check-prerequisites target, so main Makefile can give a helpful mesg if there's a problem.
  550. # Added a check for BOOST when rebuilding dependencies -- if absent, the dependency file is left
  551. # (largely) empty.
  552. #
  553. # Revision 1.55 2012/07/19 17:03:23 bigatti
  554. # -- passing GMPXX_LIB as last argument to make-c5makefile
  555. # (for linker problem with Normaliz)
  556. #
  557. # Revision 1.54 2012/07/16 10:20:24 bigatti
  558. # -- added GSL and Normaliz arguments to "make-c5makefile" call
  559. #
  560. # Revision 1.53 2012/07/11 09:05:06 bigatti
  561. # -- added BuiltInFunctions-Normaliz and BuiltInFunctions-GSL
  562. #
  563. # Revision 1.52 2012/07/05 14:24:25 bigatti
  564. # -- added BuiltInOneLiners.C
  565. #
  566. # Revision 1.51 2012/07/03 12:43:20 abbott
  567. # Added specific path for PrintWordlist
  568. #
  569. # Revision 1.50 2012/06/26 08:52:35 bigatti
  570. # -- make target wordlist less verbose
  571. #
  572. # Revision 1.49 2012/06/26 06:52:49 bigatti
  573. # -- removed experimental COCOA_5_OBJ_DIR
  574. #
  575. # Revision 1.48 2012/06/26 06:44:48 bigatti
  576. # -- added texdoc target
  577. # -- fixed CompilationDate proper compilation also for GUI
  578. # -- added wordlist generation
  579. #
  580. # Revision 1.47 2012/06/18 10:04:22 bigatti
  581. # -- added VersionInfo.C
  582. #
  583. # Revision 1.46 2012/06/07 16:07:05 bigatti
  584. # -- added make for wordlist and htmldoc
  585. #
  586. # Revision 1.45 2012/04/11 09:55:59 abbott
  587. # Makefile now performs boost-lib-check for CoCoAInterpreter
  588. # (previsouly was only boost-hdr-check).
  589. #
  590. # Revision 1.44 2012/04/10 18:55:55 abbott
  591. # Several changes to accomodate using BOOST filesystem fns in Main.C to check
  592. # whether the default packages directory exists. Needed to modify the script
  593. # which generates C5Makefile as the extra BOOST libs must be passed as params.
  594. #
  595. # Revision 1.43 2012/03/16 17:04:53 abbott
  596. # Corrected clean-subdirs target; it now leaves subdir Debug/ as empty but existing.
  597. #
  598. # Revision 1.42 2012/03/16 16:22:02 abbott
  599. # Improved clean & clean-subdirs targets.
  600. #
  601. # Revision 1.41 2011/10/05 10:00:45 bigatti
  602. # -- fixed make gui for non-standard installation of boost
  603. #
  604. # Revision 1.40 2011/10/03 16:07:57 abbott
  605. # Corrected two minor bugs.
  606. #
  607. # Revision 1.39 2011/09/30 14:29:12 abbott
  608. # Major revision to gui target recipe.
  609. # Removed cruft from start of file.
  610. #
  611. # Revision 1.38 2011/09/30 13:02:33 bigatti
  612. # -- modified target all: no longer fails if boost not present (just
  613. # prints a big warning)
  614. # -- removed now useless configuration for boost
  615. #
  616. # Revision 1.37 2011/09/28 12:44:52 abbott
  617. # Moved default target up -- correcting a bug I introduced :-(
  618. #
  619. # Revision 1.36 2011/09/21 14:48:11 abbott
  620. # OBJS now depend on autoconf.mk ==> rebuild them if the compilation flags change.
  621. #
  622. # Revision 1.35 2011/09/12 16:49:36 bigatti
  623. # -- added GMP_INC_DIR as 4th arg for make-gui.sh
  624. #
  625. # Revision 1.34 2011/08/17 12:00:48 abbott
  626. # Changed the following targets clean-subdirs, veryclean, veryclean-local
  627. # (cleaning works better in QCodeEdit directory).
  628. #
  629. # Revision 1.33 2011/07/21 17:34:35 abbott
  630. # Consequential change for modified make-gui.sh script.
  631. #
  632. # Revision 1.32 2011/07/20 13:55:06 bigatti
  633. # -- added some "@"
  634. #
  635. # Revision 1.31 2011/07/20 13:02:32 abbott
  636. # Removed the word "version" from logging message when rebuilding dependencies.
  637. #
  638. # Revision 1.30 2011/07/20 09:55:51 abbott
  639. # Corrected infinite recursion bug (when Makefile_dependencies doesn't exist).
  640. #
  641. # Revision 1.29 2011/07/20 09:04:19 abbott
  642. # New approach to generating Makefile_dependencies: affects almost all Makefiles.
  643. #
  644. # Revision 1.28 2011/07/18 09:03:47 abbott
  645. # Removed some pointless (& harmless?) double quotes.
  646. # Added missing ./ before call to make-gui.sh
  647. #
  648. # Revision 1.27 2011/07/16 19:53:43 abbott
  649. # New files and change to Makefile to allow C5 GUI to built automatically
  650. # (as if it were a normal "make" target)
  651. #
  652. # Revision 1.26 2011/07/15 16:56:46 abbott
  653. # Now gets BOOST location from autoconf.mk (i.e. as set by configure script).
  654. #
  655. # Revision 1.25 2011/05/18 15:22:42 bigatti
  656. # -- fixed dependencies on cocoalib
  657. #
  658. # Revision 1.24 2011/05/16 19:02:20 lagorio
  659. # Workaround per gcc bug
  660. #
  661. # Revision 1.23 2011/05/13 17:02:05 abbott
  662. # Moved definition of OBJS; added two .PHONY declarations.
  663. #
  664. # Revision 1.22 2011/05/10 16:45:59 bigatti
  665. # -- added "make check"
  666. #
  667. # Revision 1.21 2011/05/03 09:39:24 abbott
  668. # All Makefiles now offer both "clean" and "veryclean" as targets.
  669. #
  670. # Revision 1.20 2011/02/15 09:39:34 bigatti
  671. # -- added ManExamples target
  672. #
  673. # Revision 1.19 2011/01/27 15:52:10 bigatti
  674. # -- added -DNDEBUG
  675. #
  676. # Revision 1.18 2011/01/19 16:36:58 bigatti
  677. # -- removed dependency for BuiltInFunctions.o (I didn't do what I meant)
  678. #
  679. # Revision 1.17 2011/01/18 14:44:48 bigatti
  680. # -- added #include CoCoALibSupplement.H
  681. # -- added dependency of BuiltInFunctions from cocoalib.a
  682. #
  683. # Revision 1.16 2010/11/22 17:36:25 bigatti
  684. # -- added "make library"
  685. #
  686. # Revision 1.15 2010/10/11 14:19:27 bigatti
  687. # -- fixed boost path for bigatti
  688. #
  689. # Revision 1.14 2010/10/08 22:05:35 abbott
  690. # Removed pointless CoCoALib prefix in definitions of CWD in Makefiles.
  691. #
  692. # Revision 1.13 2010/10/07 15:41:22 abbott
  693. # Replaced explicit recursive calls to "make" by calls to "$(MAKE)".
  694. #
  695. # Revision 1.12 2010/08/31 14:57:22 bigatti
  696. # -- added OnlineHelp.C to sources
  697. #
  698. # Revision 1.11 2010/08/31 13:14:58 bigatti
  699. # -- commented out compilation of zip library
  700. #
  701. # Revision 1.10 2010/08/23 20:19:22 lagorio
  702. # *** empty log message ***
  703. #
  704. # Revision 1.9 2010/08/02 16:12:03 bigatti
  705. # -- added code for zip support
  706. #
  707. # Revision 1.8 2010/05/07 14:19:01 bigatti
  708. # -- added BuiltInFunctions.C
  709. #
  710. # Revision 1.7 2010/04/22 13:40:14 abbott
  711. # Now inherits most compilation flags from autoconf.mk
  712. # Make clean works properly.
  713. # Object files now depend one the library.
  714. #
  715. # Revision 1.6 2010/04/22 09:30:17 bigatti
  716. # -- added CompilationDate.C and forced its compilation for
  717. # CoCoAInterpreter target
  718. #
  719. # Revision 1.5 2010/04/21 16:08:06 bigatti
  720. # -- more clever now: recompile only what is needed and with dependencies
  721. #
  722. # Revision 1.4 2010/04/13 15:24:44 bigatti
  723. # -- updated after new "compile" file (with true interpreter starting!)
  724. #
  725. # Revision 1.3 2009/09/13 11:12:06 lagorio
  726. # *** empty log message ***
  727. #
  728. # Revision 1.2 2009/09/13 08:41:13 lagorio
  729. # *** empty log message ***
  730. #
  731. # Revision 1.1 2009/09/03 14:35:44 bigatti
  732. # -- first import
  733. #
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment