Install plugin files and Libpeas plugin objects
[projects/chimara/chimara.git] / interpreters / Makefile.am
1 # All plugins
2
3 plugindir = $(pkglibdir)/plugins
4 plugin_LTLIBRARIES = libbocfel.la libfrotz.la libgit.la libglulxe.la \
5         libnitfol.la
6 CLEANFILES =
7
8 # Bocfel
9
10 libbocfel_la_SOURCES = bocfel/blorb.c bocfel/blorb.h bocfel/branch.c \
11         bocfel/branch.h bocfel/dict.c bocfel/dict.h bocfel/glkstart.c bocfel/iff.c \
12         bocfel/iff.h bocfel/io.c bocfel/io.h bocfel/math.c bocfel/math.h \
13         bocfel/memory.c bocfel/memory.h bocfel/objects.c bocfel/objects.h \
14         bocfel/osdep.c bocfel/osdep.h bocfel/process.c bocfel/process.h \
15         bocfel/random.c bocfel/random.h bocfel/screen.c bocfel/screen.h \
16         bocfel/stack.c bocfel/stack.h bocfel/table.c bocfel/table.h \
17         bocfel/unicode.c bocfel/unicode.h bocfel/util.c bocfel/util.h \
18         bocfel/zoom.c bocfel/zoom.h bocfel/zterp.c bocfel/zterp.h \
19         chimara-bocfel-plugin.c chimara-bocfel-plugin.h
20 libbocfel_la_CPPFLAGS = -DZTERP_GLK -DZTERP_UNIX \
21         -I$(top_srcdir) -I$(top_srcdir)/libchimara
22 libbocfel_la_CFLAGS = -std=c99 $(PLUGIN_CFLAGS) $(AM_CFLAGS)
23 libbocfel_la_LDFLAGS = -module $(PLUGIN_LIBS) $(PLUGIN_LIBTOOL_FLAGS)
24
25 # Frotz
26
27 libfrotz_la_SOURCES = frotz/buffer.c frotz/err.c frotz/fastmem.c frotz/files.c \
28         frotz/input.c frotz/main.c frotz/math.c frotz/object.c frotz/process.c \
29         frotz/quetzal.c frotz/random.c frotz/redirect.c frotz/sound.c \
30         frotz/stream.c frotz/table.c frotz/text.c frotz/variable.c \
31         frotz/glkscreen.c frotz/glkmisc.c frotz/frotz.h frotz/glkfrotz.h \
32         frotz/glkio.h chimara-frotz-plugin.c chimara-frotz-plugin.h
33 libfrotz_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/libchimara
34 libfrotz_la_CFLAGS = -Wno-pointer-sign $(PLUGIN_CFLAGS) $(AM_CFLAGS)
35 libfrotz_la_LDFLAGS = -module $(PLUGIN_LIBS) $(PLUGIN_LIBTOOL_FLAGS)
36
37 # Git
38
39 libgit_la_SOURCES = git/version.h git/git.h git/config.h git/compiler.h \
40         git/memory.h git/opcodes.h git/labels.inc git/compiler.c git/gestalt.c \
41         git/git.c git/git_unix.c git/glkop.c git/heap.c git/memory.c git/opcodes.c \
42         git/operands.c git/peephole.c git/savefile.c git/saveundo.c git/search.c \
43         git/terp.c git/accel.c chimara-git-plugin.c chimara-git-plugin.h
44 libgit_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/libchimara
45 libgit_la_CFLAGS = -DCHIMARA_EXTENSIONS -DUSE_INLINE \
46         $(PLUGIN_CFLAGS) $(AM_CFLAGS)
47 libgit_la_LDFLAGS = -module $(PLUGIN_LIBS) $(PLUGIN_LIBTOOL_FLAGS)
48 # Memory mapping (-DUSE_MMAP) doesn't seem to work... FIXME
49
50 CLEANFILES += git/test/*.tmp
51
52 # Glulxe
53
54 libglulxe_la_SOURCES = glulxe/accel.c glulxe/exec.c glulxe/files.c \
55         glulxe/funcs.c glulxe/gestalt.c glulxe/gestalt.h glulxe/glkop.c \
56         glulxe/glulxe.h glulxe/heap.c glulxe/main.c glulxe/opcodes.h \
57         glulxe/operand.c glulxe/osdepend.c glulxe/profile.c glulxe/search.c \
58         glulxe/serial.c glulxe/string.c glulxe/unixstrt.c glulxe/vm.c \
59         glulxe/float.c chimara-glulxe-plugin.c chimara-glulxe-plugin.h
60 libglulxe_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/libchimara -DOS_UNIX
61 libglulxe_la_CFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes \
62         -Wno-unused $(PLUGIN_CFLAGS) $(AM_CFLAGS)
63 libglulxe_la_LDFLAGS = -module $(PLUGIN_LIBS) $(PLUGIN_LIBTOOL_FLAGS)
64
65 #noinst_PROGRAMS = glulxdump
66 #glulxdump_SOURCES = glulxe/glulxdump.c
67 #glulxdump_CPPFLAGS = -I$(top_srcdir)/src/libchimara
68 #glulxdump_LDADD = ../libchimara/libchimara.la
69
70 dist_pkglibexec_SCRIPTS = glulxe/profile-analyze.py
71
72 # Nitfol
73
74 NITFOL_GRAPHICS = nitfol/graphics.c nitfol/graphics.h
75 NITFOL_BLORB = nitfol/blorb.c
76 NITFOL_SOUND = nitfol/sound.c nitfol/sound.h
77 # NITFOL_GRAPHICS = nitfol/no_graph.c nitfol/no_graph.h
78 # NITFOL_BLORB = nitfol/no_blorb.c
79 # NITFOL_SOUND = nitfol/no_snd.c nitfol/no_snd.h
80 # no_blorb.h is apparently the header file for both blorb.c and no_blorb.c
81
82 dist_noinst_SCRIPTS = nitfol/copying.awk nitfol/opt2glkc.pl nitfol/y2help.pl
83
84 libnitfol_la_SOURCES = nitfol/automap.c nitfol/automap.h nitfol/binary.h \
85         nitfol/copying.h nitfol/debug.c nitfol/debug.h nitfol/decode.c \
86         nitfol/decode.h nitfol/errmesg.c nitfol/errmesg.h nitfol/globals.c \
87         nitfol/globals.h nitfol/hash.c nitfol/hash.h nitfol/iff.c nitfol/iff.h \
88         nitfol/infix.c nitfol/infix.h nitfol/inform.y nitfol/inform.h \
89         nitfol/init.c nitfol/init.h nitfol/io.c nitfol/nio.h nitfol/linkevil.h \
90         nitfol/main.c nitfol/main.h nitfol/nitfol.h nitfol/no_blorb.h \
91         nitfol/objects.c nitfol/objects.h nitfol/op_call.c nitfol/op_call.h \
92         nitfol/op_jmp.c nitfol/op_jmp.h nitfol/oplist.c nitfol/oplist.h \
93         nitfol/op_math.c nitfol/op_math.h nitfol/op_save.c nitfol/op_save.h \
94         nitfol/op_table.c nitfol/op_table.h nitfol/op_v6.c nitfol/op_v6.h \
95         nitfol/portfunc.c nitfol/portfunc.h nitfol/quetzal.c nitfol/quetzal.h \
96         nitfol/solve.c nitfol/solve.h nitfol/stack.c nitfol/stack.h \
97         nitfol/struct.c nitfol/struct.h nitfol/tokenise.c nitfol/tokenise.h \
98         nitfol/undo.c nitfol/undo.h nitfol/z_io.c nitfol/z_io.h nitfol/zscii.c \
99         nitfol/zscii.h \
100         $(NITFOL_GRAPHICS) $(NITFOL_BLORB) $(NITFOL_SOUND) \
101         chimara-nitfol-plugin.c chimara-nitfol-plugin.h
102 nodist_libnitfol_la_SOURCES = nitfol/copying.c nitfol/dbg_help.h \
103         nitfol/startunix.c
104 libnitfol_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/libchimara \
105         -I$(srcdir)/nitfol -DSMART_TOKENISER -DUSE_INLINE
106 libnitfol_la_CFLAGS = $(PLUGIN_CFLAGS) $(AM_CFLAGS)
107 libnitfol_la_LDFLAGS = -module $(PLUGIN_LIBS) $(PLUGIN_LIBTOOL_FLAGS)
108
109 info_TEXINFOS = nitfol/nitfol.texi
110 nitfol_TEXINFOS = nitfol/dbg_help.texi nitfol/options.texi
111 # man_MANS = nitfol/nitfol.6
112
113 BUILT_SOURCES = nitfol/copying.c nitfol/dbg_help.h nitfol/startunix.c \
114         nitfol/dbg_help.texi nitfol/options.texi
115 CLEANFILES += $(BUILT_SOURCES) nitfol/nitfol.6
116 DISTCLEANFILES = nitfol/inform.c nitfol/nitfol.info
117 MAINTAINERCLEANFILES = texinfo.tex
118
119 nitfol/dbg_help.h: nitfol/inform.y nitfol/y2help.pl
120         $(AM_V_GEN)cd nitfol && \
121         $(PERL) $(abs_srcdir)/nitfol/y2help.pl $(abs_srcdir)/nitfol/inform.y
122
123 nitfol/dbg_help.texi: nitfol/inform.y nitfol/y2help.pl
124         $(AM_V_GEN)cd nitfol && \
125         $(PERL) $(abs_srcdir)/nitfol/y2help.pl $(abs_srcdir)/nitfol/inform.y
126
127 nitfol/copying.c: nitfol/COPYING nitfol/copying.awk
128         $(AM_V_GEN)$(AWK) -f $(srcdir)/nitfol/copying.awk <$(srcdir)/nitfol/COPYING >$@
129
130 # nitfol/nitfol.6: nitfol/nitfol.opt nitfol/opt2glkc.pl
131 #       $(AM_V_GEN)cd nitfol && \
132 #       $(PERL) $(abs_srcdir)/nitfol/opt2glkc.pl -man $(abs_srcdir)/nitfol/nitfol.opt
133
134 nitfol/options.texi: nitfol/nitfol.opt nitfol/opt2glkc.pl
135         $(AM_V_GEN)cd nitfol && \
136         $(PERL) $(abs_srcdir)/nitfol/opt2glkc.pl -info $(abs_srcdir)/nitfol/nitfol.opt
137
138 nitfol/startunix.c: nitfol/nitfol.opt nitfol/opt2glkc.pl
139         $(AM_V_GEN)cd nitfol && \
140         $(PERL) $(abs_srcdir)/nitfol/opt2glkc.pl -unix $(abs_srcdir)/nitfol/nitfol.opt
141
142 EXTRA_DIST = nitfol/nitfol.opt nitfol/crashme.inf nitfol/test.inf
143
144 # Plugin files
145
146 dist_plugin_DATA = bocfel.plugin frotz.plugin git.plugin glulxe.plugin \
147         nitfol.plugin
148
149 # Documentation
150
151 pkgdocdir = $(datadir)/doc/$(PACKAGE)
152 nobase_dist_pkgdoc_DATA = bocfel/BUILDING bocfel/COPYING.GPLv2 \
153         bocfel/COPYING.GPLv3 bocfel/README \
154         frotz/AUTHORS frotz/COPYING frotz/README frotz/TODO \
155         git/README.txt \
156         glulxe/README \
157         nitfol/ChangeLog nitfol/COPYING nitfol/INSTALL nitfol/README
158
159 -include $(top_srcdir)/git.mk