| | 1 | ## This file contains Automake rules for the TADS 3 compiler. |
| | 2 | |
| | 3 | ## Include rules for the TADS 3 test suite if we're building the debug |
| | 4 | ## version. |
| | 5 | ## |
| | 6 | if T3_DEBUG_BUILD |
| | 7 | include $(srcdir)/t3compiler/Testsuite.am |
| | 8 | endif |
| | 9 | |
| | 10 | bin_PROGRAMS += t3make |
| | 11 | |
| | 12 | AM_CPPFLAGS += -I$(srcdir)/t3compiler/src -I$(srcdir)/t3compiler/tads3 -I$(srcdir)/t3compiler/tads3/test |
| | 13 | |
| | 14 | ## Tell the compiler's base code to use the T3VM as target. |
| | 15 | ## |
| | 16 | AM_CPPFLAGS += -DTC_TARGET_T3 |
| | 17 | |
| | 18 | ## TADS 3 compiler headers. |
| | 19 | ## |
| | 20 | T3CHEADERS = \ |
| | 21 | t3compiler/tads3/t3_os.h \ |
| | 22 | t3compiler/tads3/tct3ty.h \ |
| | 23 | t3compiler/tads3/tct3drv.h \ |
| | 24 | t3compiler/tads3/tct3int.h \ |
| | 25 | t3compiler/tads3/tctarg.h \ |
| | 26 | t3compiler/tads3/tct3base.h \ |
| | 27 | t3compiler/tads3/tclibprs.h \ |
| | 28 | t3compiler/tads3/tcunas.h \ |
| | 29 | t3compiler/tads3/tcpndrv.h \ |
| | 30 | t3compiler/tads3/tcpnint.h \ |
| | 31 | t3compiler/tads3/tcpnbase.h \ |
| | 32 | t3compiler/tads3/tccmdutl.h \ |
| | 33 | t3compiler/tads3/tct3unas.h \ |
| | 34 | t3compiler/tads3/tcerr.h \ |
| | 35 | t3compiler/tads3/tcgen.h \ |
| | 36 | t3compiler/tads3/tcprs.h \ |
| | 37 | t3compiler/tads3/tcsrc.h \ |
| | 38 | t3compiler/tads3/tctok.h \ |
| | 39 | t3compiler/tads3/tcvsn.h \ |
| | 40 | t3compiler/tads3/tcerrnum.h \ |
| | 41 | t3compiler/tads3/core.h \ |
| | 42 | t3compiler/tads3/tct3.h \ |
| | 43 | t3compiler/tads3/tchostsi.h \ |
| | 44 | t3compiler/tads3/tcglob.h \ |
| | 45 | t3compiler/tads3/tchost.h \ |
| | 46 | t3compiler/tads3/tcmain.h \ |
| | 47 | t3compiler/tads3/tcmake.h \ |
| | 48 | t3compiler/tads3/tctargty.h \ |
| | 49 | t3compiler/tads3/rcmain.h \ |
| | 50 | t3compiler/tads3/vmpreini.h |
| | 51 | |
| | 52 | ## TADS 3 compiler sources. |
| | 53 | ## |
| | 54 | T3CSOURCES = \ |
| | 55 | t3compiler/src/osportable3.cc \ |
| | 56 | t3compiler/tads3/os_stdio.cpp \ |
| | 57 | t3compiler/tads3/rcmain.cpp \ |
| | 58 | t3compiler/tads3/std_dbg.cpp \ |
| | 59 | t3compiler/tads3/tccmdutl.cpp \ |
| | 60 | t3compiler/tads3/tcerr.cpp \ |
| | 61 | t3compiler/tads3/tcerrmsg.cpp \ |
| | 62 | t3compiler/tads3/tcgen.cpp \ |
| | 63 | t3compiler/tads3/tcglob.cpp \ |
| | 64 | t3compiler/tads3/tchostsi.cpp \ |
| | 65 | t3compiler/tads3/tclibprs.cpp \ |
| | 66 | t3compiler/tads3/tcmain.cpp \ |
| | 67 | t3compiler/tads3/tcmakecl.cpp \ |
| | 68 | t3compiler/tads3/tcmake.cpp \ |
| | 69 | t3compiler/tads3/tcprs.cpp \ |
| | 70 | t3compiler/tads3/tcprsimg.cpp \ |
| | 71 | t3compiler/tads3/tcprsstm.cpp \ |
| | 72 | t3compiler/tads3/tcsrc.cpp \ |
| | 73 | t3compiler/tads3/tct3.cpp \ |
| | 74 | t3compiler/tads3/tct3img.cpp \ |
| | 75 | t3compiler/tads3/tct3stm.cpp \ |
| | 76 | t3compiler/tads3/tct3unas.cpp \ |
| | 77 | t3compiler/tads3/tctok.cpp \ |
| | 78 | t3compiler/tads3/vmbifc.cpp \ |
| | 79 | t3compiler/tads3/vmimgrb.cpp \ |
| | 80 | t3compiler/tads3/vmpreini.cpp \ |
| | 81 | t3compiler/tads3/vmwrtimg.cpp |
| | 82 | |
| | 83 | ## Compiler sources don't go into the main distribution, so we use |
| | 84 | ## 'nodist'. |
| | 85 | ## |
| | 86 | nodist_t3make_SOURCES = $(COMMONSOURCES) $(T3CHEADERS) $(T3RCSOURCES) $(T3CSOURCES) |
| | 87 | |
| | 88 | ## Very simple targets for creating a package containing the compiler |
| | 89 | ## sources. |
| | 90 | ## |
| | 91 | T3COMP_DISTFILES = \ |
| | 92 | $(T3CHEADERS) \ |
| | 93 | $(T3CSOURCES) \ |
| | 94 | t3compiler/tads3/doc \ |
| | 95 | t3compiler/tads3/include \ |
| | 96 | t3compiler/tads3/lib \ |
| | 97 | t3compiler/tads3/samples \ |
| | 98 | t3compiler/tads3/test \ |
| | 99 | t3compiler/testscripts \ |
| | 100 | t3compiler/tads3/resnoexe.cpp \ |
| | 101 | t3compiler/tads3/tcprs_d.cpp \ |
| | 102 | t3compiler/tads3/tcprsnl.cpp \ |
| | 103 | t3compiler/tads3/tct3nl.cpp \ |
| | 104 | t3compiler/tads3/tct3_d.cpp |
| | 105 | |
| | 106 | t3comp-dist: |
| | 107 | @cd "$(srcdir)" && $(AMTAR) chof - $(T3COMP_DISTFILES) | GZIP=$(GZIP_ENV) gzip -c
>"@abs_builddir@/$(PACKAGE)-t3compiler-$(VERSION).tar.gz" |
| | 108 | |
| | 109 | t3comp-dist-gzip: t3comp-dist |
| | 110 | |
| | 111 | t3comp-dist-bzip2: |
| | 112 | @cd "$(srcdir)" && $(AMTAR) chof - $(T3COMP_DISTFILES) | bzip2 -9 -c >"@abs_builddir@/$(PACKAGE)-t3compiler-$(VERSION).tar.bz2" |
| | 113 | |
| | 114 | ## We cannot install whole directories at once; Automake requires us to |
| | 115 | ## list each and every file we wish to install. This is normally a Good |
| | 116 | ## Thing for most projects. But in this case, it's a brain damage, as |
| | 117 | ## the files we wish to install are not ours, but belong to the TADS 3 |
| | 118 | ## base package. Ah, well. |
| | 119 | ## |
| | 120 | t3incdir = $(T3_INC_DIR) |
| | 121 | t3libdir = $(T3_LIB_DIR) |
| | 122 | t3libextensionsdir = $(T3_LIB_DIR)/extensions |
| | 123 | t3libextensionstcommanddir = $(T3_LIB_DIR)/extensions/TCommand |
| | 124 | t3libextensionstcommanddocdir = $(T3_LIB_DIR)/extensions/TCommand/doc |
| | 125 | t3libadv3dir = $(T3_LIB_DIR)/adv3 |
| | 126 | t3libadv3enusdir = $(T3_LIB_DIR)/adv3/en_us |
| | 127 | t3docdir = $(pkgdatadir)/tads3/doc |
| | 128 | |
| | 129 | t3inc_DATA = \ |
| | 130 | t3compiler/tads3/include/t3.h \ |
| | 131 | t3compiler/tads3/include/strcomp.h \ |
| | 132 | t3compiler/tads3/include/t3test.h \ |
| | 133 | t3compiler/tads3/include/tok.h \ |
| | 134 | t3compiler/tads3/include/charset.h \ |
| | 135 | t3compiler/tads3/include/tadsgen.h \ |
| | 136 | t3compiler/tads3/include/vector.h \ |
| | 137 | t3compiler/tads3/include/systype.h \ |
| | 138 | t3compiler/tads3/include/dict.h \ |
| | 139 | t3compiler/tads3/include/file.h \ |
| | 140 | t3compiler/tads3/include/tadsio.h \ |
| | 141 | t3compiler/tads3/include/tadsiox.h \ |
| | 142 | t3compiler/tads3/include/gramprod.h \ |
| | 143 | t3compiler/tads3/include/bytearr.h \ |
| | 144 | t3compiler/tads3/include/tads.h \ |
| | 145 | t3compiler/tads3/include/reflect.h \ |
| | 146 | t3compiler/tads3/include/lookup.h \ |
| | 147 | t3compiler/tads3/include/bignum.h |
| | 148 | |
| | 149 | t3lib_DATA = \ |
| | 150 | t3compiler/tads3/lib/tok.t \ |
| | 151 | t3compiler/tads3/lib/system.tl \ |
| | 152 | t3compiler/tads3/lib/_main.t \ |
| | 153 | t3compiler/tads3/lib/file.t \ |
| | 154 | t3compiler/tads3/lib/gameinfo.t \ |
| | 155 | t3compiler/tads3/lib/gramprod.t \ |
| | 156 | t3compiler/tads3/lib/multmeth.t \ |
| | 157 | t3compiler/tads3/lib/reflect.t |
| | 158 | |
| | 159 | t3libextensions_DATA = \ |
| | 160 | t3compiler/tads3/lib/extensions/combineReports.t \ |
| | 161 | t3compiler/tads3/lib/extensions/cquotes.t \ |
| | 162 | t3compiler/tads3/lib/extensions/custmsg.t \ |
| | 163 | t3compiler/tads3/lib/extensions/customBanner.t \ |
| | 164 | t3compiler/tads3/lib/extensions/CustomStatus.t \ |
| | 165 | t3compiler/tads3/lib/extensions/newNames.t \ |
| | 166 | t3compiler/tads3/lib/extensions/pathfind.t \ |
| | 167 | t3compiler/tads3/lib/extensions/showTranscript.t \ |
| | 168 | t3compiler/tads3/lib/extensions/SimpleAttachable.t \ |
| | 169 | t3compiler/tads3/lib/extensions/smartAccompany.t \ |
| | 170 | t3compiler/tads3/lib/extensions/subtime.t |
| | 171 | |
| | 172 | t3libextensionstcommand_DATA = \ |
| | 173 | t3compiler/tads3/lib/extensions/TCommand/GiveToAskFor.t \ |
| | 174 | t3compiler/tads3/lib/extensions/TCommand/TCommand.t |
| | 175 | |
| | 176 | t3libextensionstcommanddoc_DATA = \ |
| | 177 | t3compiler/tads3/lib/extensions/TCommand/doc/cicon9.gif \ |
| | 178 | t3compiler/tads3/lib/extensions/TCommand/doc/contpage.htm \ |
| | 179 | t3compiler/tads3/lib/extensions/TCommand/doc/givetoaskfor.htm \ |
| | 180 | t3compiler/tads3/lib/extensions/TCommand/doc/index.html \ |
| | 181 | t3compiler/tads3/lib/extensions/TCommand/doc/introduction.htm \ |
| | 182 | t3compiler/tads3/lib/extensions/TCommand/doc/tcommand.htm \ |
| | 183 | t3compiler/tads3/lib/extensions/TCommand/doc/telltoaction.htm |
| | 184 | |
| | 185 | t3libadv3_DATA = \ |
| | 186 | t3compiler/tads3/lib/adv3/resolver.t \ |
| | 187 | t3compiler/tads3/lib/adv3/travel.t \ |
| | 188 | t3compiler/tads3/lib/adv3/lister.t \ |
| | 189 | t3compiler/tads3/lib/adv3/extras.t \ |
| | 190 | t3compiler/tads3/lib/adv3/report.t \ |
| | 191 | t3compiler/tads3/lib/adv3/menusys.t \ |
| | 192 | t3compiler/tads3/lib/adv3/pov.t \ |
| | 193 | t3compiler/tads3/lib/adv3/score.t \ |
| | 194 | t3compiler/tads3/lib/adv3/sense.t \ |
| | 195 | t3compiler/tads3/lib/adv3/precond.t \ |
| | 196 | t3compiler/tads3/lib/adv3/parser.t \ |
| | 197 | t3compiler/tads3/lib/adv3/adv3.h \ |
| | 198 | t3compiler/tads3/lib/adv3/thing.t \ |
| | 199 | t3compiler/tads3/lib/adv3/tips.t \ |
| | 200 | t3compiler/tads3/lib/adv3/exits.t \ |
| | 201 | t3compiler/tads3/lib/adv3/modid.t \ |
| | 202 | t3compiler/tads3/lib/adv3/exec.t \ |
| | 203 | t3compiler/tads3/lib/adv3/verify.t \ |
| | 204 | t3compiler/tads3/lib/adv3/misc.t \ |
| | 205 | t3compiler/tads3/lib/adv3/events.t \ |
| | 206 | t3compiler/tads3/lib/adv3/actor.t \ |
| | 207 | t3compiler/tads3/lib/adv3/adv3.tl \ |
| | 208 | t3compiler/tads3/lib/adv3/output.t \ |
| | 209 | t3compiler/tads3/lib/adv3/action.t \ |
| | 210 | t3compiler/tads3/lib/adv3/disambig.t \ |
| | 211 | t3compiler/tads3/lib/adv3/objects.t \ |
| | 212 | t3compiler/tads3/lib/adv3/hintsys.t \ |
| | 213 | t3compiler/tads3/lib/adv3/status.t \ |
| | 214 | t3compiler/tads3/lib/adv3/to_do.txt \ |
| | 215 | t3compiler/tads3/lib/adv3/actions.t \ |
| | 216 | t3compiler/tads3/lib/adv3/banner.t \ |
| | 217 | t3compiler/tads3/lib/adv3/footnote.t \ |
| | 218 | t3compiler/tads3/lib/adv3/input.t \ |
| | 219 | t3compiler/tads3/lib/adv3/numbers.t \ |
| | 220 | t3compiler/tads3/lib/adv3/settings.t \ |
| | 221 | t3compiler/tads3/lib/adv3/changes.htm |
| | 222 | |
| | 223 | t3libadv3enus_DATA = \ |
| | 224 | t3compiler/tads3/lib/adv3/en_us/msg_neu.t \ |
| | 225 | t3compiler/tads3/lib/adv3/en_us/en_us.h \ |
| | 226 | t3compiler/tads3/lib/adv3/en_us/en_us.t \ |
| | 227 | t3compiler/tads3/lib/adv3/en_us/en_us.tl \ |
| | 228 | t3compiler/tads3/lib/adv3/en_us/instruct.t |
| | 229 | |
| | 230 | t3doc_DATA = \ |
| | 231 | t3compiler/tads3/doc/getacro.gif \ |
| | 232 | t3compiler/tads3/doc/index.htm \ |
| | 233 | t3compiler/tads3/doc/nodoc.htm \ |
| | 234 | t3compiler/tads3/doc/nolibref.htm \ |
| | 235 | t3compiler/tads3/doc/t3changes.htm \ |
| | 236 | t3compiler/tads3/doc/title2.gif |
| | 237 | |
| | 238 | ## Target to build the TADS 3 sample game. We'll always rebuild it, no |
| | 239 | ## matter if it already exists or not. |
| | 240 | ## |
| | 241 | sample: t3make |
| | 242 | test -z "@abs_builddir@/samples/obj" || $(mkinstalldirs) "@abs_builddir@/samples/obj" |
| | 243 | rm -f "@abs_builddir@/samples/sample.t3m" |
| | 244 | cp "$(srcdir)/t3compiler/tads3/samples/sample.t3m" "@abs_builddir@/samples/sample.t3m" |
| | 245 | cd "@abs_builddir@/samples" && "@abs_builddir@/t3make" -f sample.t3m -a -FL "@abs_srcdir@/t3compiler/tads3/lib" -FI
"@abs_srcdir@/t3compiler/tads3/include" -I "@abs_srcdir@/t3compiler/tads3/samples" -Fs "@abs_srcdir@/t3compiler/tads3/samples" -Fy
"@abs_builddir@/samples/obj" -Fo "@abs_builddir@/samples/obj" |
| | 246 | |
| | 247 | sample-clean: |
| | 248 | rm -f "@abs_builddir@/samples/sample.t3m" "@abs_builddir@/samples/sample.t3" "@abs_builddir@/samples/gameinfo.txt" |
| | 249 | rm -rf "@abs_builddir@/samples/obj" |