TEACL is a fork of TECOC created for the purpose of describing diffs in a document being collaboratively edited
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

259 lines
11 KiB

  1. #
  2. # This makefile builds TECOC on OpenBSD 6.0
  3. # This port was privided by Andras Farkas <deepbluemistake@gmail.com>
  4. # Video mode works too
  5. #
  6. # Before running it, inspect the lines between here and the line containing
  7. # all #'s to select the way you want TECO-C built.
  8. # If you want to compile with built-in debugging support, uncomment the
  9. # following line. When debugging is compiled in, the control-P command
  10. # can be used to turn on function tracing or get views of internal data
  11. # structures (see the DbgDsp function in tecoc.c). Compiling in this support
  12. # makes TECO-C larger and a little slower, so you should only use this
  13. # when you're debugging TECO-C.
  14. #DEBG = -DDEBUGGING
  15. # If you're debugging TECO-C, use this option to compile in a consistency
  16. # checking function called after each command executes. The function checks
  17. # the sanity of TECO-C's internal variables. This obviously slows things
  18. # down a little.
  19. #CCHEK = -DCONSISTENCY_CHECKING
  20. # If you want to use gcc, uncomment the following lines, which override the
  21. # COMPILE.c macro so it doesn't stick in the -target option, which gcc
  22. # doesn't understand.
  23. CC= gcc
  24. # Uncomment the following line for non-video teco
  25. #CFLAGS= ${OSVERS} ${DEBG} ${CCHEK} -O -DOSX
  26. # Or, uncomment the following two lines for video teco
  27. CFLAGS= ${OSVERS} ${DEBG} ${CCHEK} -O -DOSX -DCURSES
  28. TERMOBJS = -lncurses
  29. #CFLAGS += -Wno-dangling-else
  30. COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c -g
  31. #############################################################################
  32. CFILES= baksrc.c bldstr.c clenup.c cmatch.c docjr.c doeves.c doflag.c \
  33. echoit.c err.c exea.c exeats.c exeb.c exebar.c exebsl.c exec.c \
  34. execcc.c execln.c execom.c execrt.c execst.c execta.c exectc.c \
  35. exectd.c execte.c execti.c exectl.c exectn.c execto.c exectp.c \
  36. exectq.c exectr.c exects.c exectt.c exectu.c exectv.c exectw.c \
  37. exectx.c execty.c exectz.c exed.c exedgt.c exedot.c exedqu.c \
  38. exee.c exeequ.c exeesc.c exeexc.c exeey.c exef.c exefb.c exeg.c \
  39. exegtr.c exeh.c exei.c exeill.c exej.c exek.c exel.c exelbr.c \
  40. exelst.c exem.c exen.c exenul.c exenyi.c exeo.c exeopr.c exep.c \
  41. exeprc.c exepw.c exeq.c exeqes.c exer.c exerbr.c exertp.c exes.c \
  42. exescl.c exet.c exeu.c exeund.c exeusc.c exev.c exew.c exex.c \
  43. exey.c exez.c findes.c findqr.c flowec.c flowee.c flowel.c \
  44. getara.c getnma.c inccbp.c init.c insstr.c isradx.c ln2chr.c \
  45. makdbf.c makrom.c popmac.c pshmac.c pushex.c rdline.c rdpage.c \
  46. readcs.c replac.c search.c singlp.c skpcmd.c srclop.c sserch.c \
  47. tabort.c typbuf.c typest.c uminus.c wrpage.c zfrsrc.c zosx.c
  48. OBJECTS= $(CFILES:.c=.o)
  49. tecoc: tecoc.o ${OBJECTS}
  50. ${LINK.c} -o $@ tecoc.o ${OBJECTS} ${TERMOBJS}
  51. tecoc.o: tecoc.c zport.h tecoc.h deferr.h dchars.h chmacs.h
  52. clpars.h: genclp clpars.tec
  53. ./genclp
  54. genclp: genclp.o
  55. ${LINK.c} -o $@ genclp.o
  56. genclp.o: genclp.c
  57. zosx.o : zosx.c
  58. $(CC) $(CFLAGS) $(CPPFLAGS) -Wno-parentheses -Wno-pointer-sign -Wno-deprecated-declarations -c $<
  59. clean:
  60. @for i in makedep? ${OBJECTS} ; do \
  61. if [ -f $$i ] ; then rm $$i ; fi ; \
  62. done
  63. rm -f tecoc tecoc.o core genclp.o genclp clpars.h *.tmp *~ *.bak
  64. tags:
  65. etags *.c *.h
  66. lint:
  67. # b = report unreachable break statements
  68. # c = complain about casts with questionable portability
  69. # h = apply heuristic tests
  70. # x = report unused externs
  71. lint -bchx -DSUNOS4_0 tecoc.c ${CFILES}
  72. #
  73. # Invoking this target (with "make depend") causes a new version of this
  74. # file to be created. This current version will be saved in a file named
  75. # "makefile.bak". In the new file, the lines following the special "DO NOT
  76. # DELETE" line will be replaced with a new set of dependency rules.
  77. #
  78. depend: makedep
  79. @echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >makedep0
  80. @echo '$$r makedep5' >>makedep0
  81. @echo 'w' >>makedep0
  82. @cp makefile makefile.bak
  83. @ed - makefile < makedep0
  84. @rm makedep?
  85. @echo "new version of makefile generated, old version in makefile.bak"
  86. makedep: FRC
  87. @cat /dev/null >makedep5
  88. @echo "generating include file dependency list..."
  89. @-(for i in ${CFILES} ; do \
  90. ${CPP} -M $$i >> makedep1; done) 2>makedepe
  91. @echo "generating new version of makefile..."
  92. @sed -e 's|: ./|: |' makedep1 > makedep2
  93. @awk ' { if ($$1 != prev) \
  94. { print rec; rec = $$0; prev = $$1; } \
  95. else \
  96. { if (length(rec $$2) > 70) \
  97. { print rec; rec = $$0; } \
  98. else \
  99. rec = rec " " $$2 \
  100. } \
  101. } \
  102. END { print rec } \
  103. ' \
  104. makedep2 >makedep3
  105. @awk '/:/ {printf "%s\n", $$0}' \
  106. makedep3 >makedep4
  107. @sed -e 's|:|:|' makedep4 > makedep5
  108. @cat makedepe
  109. @(if [ -s makedepe ]; then false; fi)
  110. FRC:
  111. # DO NOT DELETE THIS LINE -- make depend uses it
  112. baksrc.o: baksrc.c zport.h tecoc.h defext.h dchars.h chmacs.h deferr.h
  113. bldstr.o: bldstr.c zport.h tecoc.h defext.h deferr.h dchars.h chmacs.h
  114. clenup.o: clenup.c zport.h tecoc.h defext.h
  115. cmatch.o: cmatch.c zport.h tecoc.h defext.h dchars.h chmacs.h deferr.h
  116. docjr.o: docjr.c zport.h tecoc.h defext.h deferr.h
  117. doeves.o: doeves.c zport.h tecoc.h defext.h dchars.h
  118. doflag.o: doflag.c zport.h tecoc.h defext.h
  119. echoit.o: echoit.c zport.h tecoc.h defext.h dchars.h
  120. err.o: err.c zport.h tecoc.h defext.h deferr.h dchars.h
  121. exea.o: exea.c zport.h tecoc.h defext.h deferr.h
  122. exeats.o: exeats.c zport.h tecoc.h defext.h
  123. exeb.o: exeb.c zport.h tecoc.h defext.h
  124. exebar.o: exebar.c zport.h tecoc.h defext.h deferr.h
  125. exebsl.o: exebsl.c zport.h tecoc.h defext.h chmacs.h
  126. exec.o: exec.c zport.h tecoc.h defext.h
  127. execcc.o: execcc.c zport.h tecoc.h defext.h deferr.h
  128. execln.o: execln.c zport.h tecoc.h defext.h
  129. execom.o: execom.c zport.h tecoc.h defext.h deferr.h
  130. execrt.o: execrt.c zport.h tecoc.h defext.h chmacs.h deferr.h
  131. execst.o: execst.c zport.h tecoc.h defext.h deferr.h
  132. execta.o: execta.c zport.h tecoc.h defext.h dchars.h
  133. exectc.o: exectc.c zport.h tecoc.h defext.h dchars.h
  134. exectd.o: exectd.c zport.h tecoc.h defext.h
  135. execte.o: execte.c zport.h tecoc.h defext.h
  136. execti.o: execti.c zport.h tecoc.h defext.h dchars.h
  137. exectl.o: exectl.c zport.h tecoc.h defext.h dchars.h
  138. exectn.o: exectn.c zport.h tecoc.h defext.h
  139. execto.o: execto.c zport.h tecoc.h defext.h
  140. exectp.o: exectp.c zport.h tecoc.h defext.h
  141. exectq.o: exectq.c zport.h tecoc.h defext.h
  142. exectr.o: exectr.c zport.h tecoc.h defext.h deferr.h
  143. exects.o: exects.c zport.h tecoc.h defext.h
  144. exectt.o: exectt.c zport.h tecoc.h defext.h deferr.h
  145. exectu.o: exectu.c zport.h tecoc.h defext.h deferr.h dchars.h
  146. exectv.o: exectv.c zport.h tecoc.h defext.h deferr.h
  147. exectw.o: exectw.c zport.h tecoc.h defext.h deferr.h
  148. exectx.o: exectx.c zport.h tecoc.h defext.h
  149. execty.o: execty.c zport.h tecoc.h defext.h
  150. exectz.o: exectz.c zport.h tecoc.h defext.h
  151. exed.o: exed.c zport.h tecoc.h defext.h deferr.h
  152. exedgt.o: exedgt.c zport.h tecoc.h defext.h deferr.h chmacs.h
  153. exedot.o: exedot.c zport.h tecoc.h defext.h
  154. exedqu.o: exedqu.c zport.h tecoc.h defext.h deferr.h chmacs.h
  155. exee.o: exee.c zport.h tecoc.h defext.h chmacs.h dchars.h deferr.h
  156. exeequ.o: exeequ.c zport.h tecoc.h defext.h dchars.h deferr.h
  157. exeesc.o: exeesc.c zport.h tecoc.h defext.h dchars.h
  158. exeexc.o: exeexc.c zport.h tecoc.h defext.h
  159. exeey.o: exeey.c zport.h tecoc.h defext.h
  160. exef.o: exef.c zport.h tecoc.h defext.h chmacs.h deferr.h
  161. exefb.o: exefb.c zport.h tecoc.h defext.h deferr.h
  162. exeg.o: exeg.c zport.h tecoc.h defext.h deferr.h
  163. exegtr.o: exegtr.c zport.h tecoc.h defext.h deferr.h
  164. exeh.o: exeh.c zport.h tecoc.h defext.h
  165. exei.o: exei.c zport.h tecoc.h defext.h dchars.h deferr.h
  166. exeill.o: exeill.c zport.h tecoc.h defext.h deferr.h
  167. exej.o: exej.c zport.h tecoc.h defext.h
  168. exek.o: exek.c zport.h tecoc.h defext.h
  169. exel.o: exel.c zport.h tecoc.h defext.h
  170. exelbr.o: exelbr.c zport.h tecoc.h defext.h deferr.h
  171. exelst.o: exelst.c zport.h tecoc.h defext.h deferr.h
  172. exem.o: exem.c zport.h tecoc.h defext.h deferr.h
  173. exen.o: exen.c zport.h tecoc.h defext.h deferr.h
  174. exenul.o: exenul.c zport.h tecoc.h defext.h
  175. exenyi.o: exenyi.c zport.h tecoc.h defext.h deferr.h
  176. exeo.o: exeo.c zport.h tecoc.h defext.h dchars.h deferr.h
  177. exeopr.o: exeopr.c zport.h tecoc.h defext.h
  178. exep.o: exep.c zport.h tecoc.h defext.h deferr.h
  179. exeprc.o: exeprc.c zport.h tecoc.h defext.h deferr.h
  180. exepw.o: exepw.c zport.h tecoc.h defext.h
  181. exeq.o: exeq.c zport.h tecoc.h defext.h deferr.h
  182. exeqes.o: exeqes.c zport.h tecoc.h defext.h
  183. exer.o: exer.c zport.h tecoc.h defext.h
  184. exerbr.o: exerbr.c zport.h tecoc.h defext.h deferr.h
  185. exertp.o: exertp.c zport.h tecoc.h defext.h deferr.h
  186. exes.o: exes.c zport.h tecoc.h defext.h dchars.h deferr.h
  187. exescl.o: exescl.c zport.h tecoc.h defext.h deferr.h
  188. exet.o: exet.c zport.h tecoc.h defext.h dchars.h
  189. exeu.o: exeu.c zport.h tecoc.h defext.h deferr.h
  190. exeund.o: exeund.c zport.h tecoc.h defext.h deferr.h
  191. exeusc.o: exeusc.c zport.h tecoc.h defext.h dchars.h
  192. exev.o: exev.c zport.h tecoc.h defext.h
  193. exew.o: exew.c zport.h tecoc.h defext.h deferr.h
  194. exex.o: exex.c zport.h tecoc.h defext.h deferr.h
  195. exey.o: exey.c zport.h tecoc.h defext.h deferr.h
  196. exez.o: exez.c zport.h tecoc.h defext.h
  197. findes.o: findes.c zport.h tecoc.h defext.h deferr.h
  198. findqr.o: findqr.c zport.h tecoc.h defext.h deferr.h chmacs.h
  199. flowec.o: flowec.c zport.h tecoc.h defext.h deferr.h
  200. flowee.o: flowee.c zport.h tecoc.h defext.h deferr.h
  201. flowel.o: flowel.c zport.h tecoc.h defext.h deferr.h
  202. getara.o: getara.c zport.h tecoc.h defext.h deferr.h
  203. getnma.o: getnma.c zport.h tecoc.h defext.h deferr.h
  204. inccbp.o: inccbp.c zport.h tecoc.h defext.h deferr.h
  205. init.o: init.c zport.h tecoc.h defext.h deferr.h
  206. insstr.o: insstr.c zport.h tecoc.h defext.h deferr.h
  207. isradx.o: isradx.c zport.h tecoc.h defext.h chmacs.h
  208. ln2chr.o: ln2chr.c zport.h tecoc.h defext.h dchars.h chmacs.h
  209. makdbf.o: makdbf.c zport.h tecoc.h defext.h
  210. makrom.o: makrom.c zport.h tecoc.h defext.h deferr.h
  211. popmac.o: popmac.c zport.h tecoc.h defext.h
  212. pshmac.o: pshmac.c zport.h tecoc.h defext.h deferr.h
  213. pushex.o: pushex.c zport.h tecoc.h defext.h dchars.h deferr.h
  214. rdline.o: rdline.c zport.h tecoc.h defext.h deferr.h dchars.h
  215. rdpage.o: rdpage.c zport.h tecoc.h defext.h deferr.h
  216. readcs.o: readcs.c zport.h tecoc.h defext.h dchars.h chmacs.h deferr.h
  217. readcs.o: dscren.h
  218. replac.o: replac.c zport.h tecoc.h defext.h dchars.h
  219. search.o: search.c zport.h tecoc.h defext.h deferr.h dchars.h
  220. singlp.o: singlp.c zport.h tecoc.h defext.h dchars.h
  221. skpcmd.o: skpcmd.c zport.h tecoc.h defext.h chmacs.h dchars.h deferr.h
  222. srclop.o: srclop.c zport.h tecoc.h defext.h deferr.h
  223. sserch.o: sserch.c zport.h tecoc.h defext.h
  224. tabort.o: tabort.c zport.h tecoc.h
  225. typbuf.o: typbuf.c zport.h tecoc.h defext.h dchars.h chmacs.h
  226. typest.o: typest.c zport.h tecoc.h defext.h dchars.h
  227. uminus.o: uminus.c zport.h tecoc.h defext.h
  228. wrpage.o: wrpage.c zport.h tecoc.h defext.h dchars.h deferr.h
  229. zfrsrc.o: zfrsrc.c zport.h tecoc.h defext.h dchars.h chmacs.h deferr.h
  230. zosx.o: zosx.c tecoc.h clpars.h dchars.h deferr.h
  231. zlinux.o: defext.h dscren.h vrbmsg.h