cfad47cfa3/t2compiler/Makefile.am

4b825dc642cb6eb9a060e54bf8d69288fbee4904cfad47cfa334b206c65f22086bcc5d63e6f70944
1
## This file contains Automake rules for the TADS 2 compiler.
2
3
bin_PROGRAMS += tadsc
4
5
AM_CPPFLAGS += -I$(srcdir)/t2compiler/src -I$(srcdir)/t2compiler/tads2
6
7
## TADS 2 compiler headers.
8
##
9
T2CHEADERS = \
10
	t2compiler/tads2/tcd.h \
11
	t2compiler/tads2/tcg.h
12
13
## TADS 2 compiler sources.
14
##
15
T2CSOURCES = \
16
	t2compiler/tads2/tcd.c \
17
	t2compiler/tads2/tcgdum.c \
18
	t2compiler/tads2/linf.c \
19
	t2compiler/tads2/tok.c \
20
	t2compiler/tads2/tokth.c \
21
	t2compiler/tads2/fiowrt.c \
22
	t2compiler/tads2/objcomp.c \
23
	t2compiler/tads2/sup.c \
24
	t2compiler/tads2/voccomp.c \
25
	t2compiler/tads2/prscomp.c \
26
	t2compiler/tads2/prs.c \
27
	t2compiler/tads2/emt.c \
28
	t2compiler/tads2/dbg.c
29
30
## Compiler sources don't go into the main distribution, so we use
31
## 'nodist'.
32
##
33
nodist_tadsc_SOURCES = t2compiler/src/main.c $(COMMONSOURCES) $(T2RCHEADERS) $(T2CHEADERS) $(T2RCSOURCES) $(T2CSOURCES)
34
35
## Installs the TADS 2 development library.
36
##
37
t2datadir = $(pkgdatadir)/tads2
38
t2data_DATA = t2compiler/tads2/adv.t t2compiler/tads2/std.t t2compiler/tads2/gameinfo.t
39
40
## Very simple targets for creating a package containing the compiler
41
## sources.
42
##
43
T2COMP_DISTFILES = t2compiler/src/main.c $(T2CHEADERS) $(T2CSOURCES) $(t2data_DATA)
44
45
t2comp-dist:
46
	@cd "$(srcdir)" && $(AMTAR) chof - $(T2COMP_DISTFILES) | GZIP=$(GZIP_ENV) gzip -c
>"@abs_builddir@/$(PACKAGE)-t2compiler-$(VERSION).tar.gz"
47
48
t2comp-dist-gzip: t2comp-dist
49
50
t2comp-dist-bzip2:
51
	@cd "$(srcdir)" && $(AMTAR) chof - $(T2COMP_DISTFILES) | bzip2 -9 -c >"@abs_builddir@/$(PACKAGE)-t2compiler-$(VERSION).tar.bz2"