c1031b1203183f007c78aded9296dd9e246fcef7
[rodin/chimara.git] / interpreters / nitfol / Makefile.am
1 GRAPHICS = no_graph.c no_graph.h
2 # GRAPHICS = graphics.c graphics.h
3 BLORB = blorb.c 
4 # BLORB = no_blorb.c
5 SOUND = no_snd.c no_snd.h
6 # SOUND = sound.c sound.h
7
8 dist_noinst_SCRIPTS = copying.awk opt2glkc.pl y2help.pl
9
10 pkglib_LTLIBRARIES = nitfol.la
11 nitfol_la_SOURCES = automap.c automap.h binary.h copying.h debug.c debug.h \
12         decode.c decode.h errmesg.c errmesg.h globals.c globals.h hash.c hash.h \
13         iff.c iff.h infix.c infix.h inform.y inform.h init.c init.h io.c \
14         linkevil.h main.c main.h nio.h nitfol.h no_blorb.h objects.c objects.h \
15         op_call.c op_call.h op_jmp.c op_jmp.h oplist.c oplist.h op_math.c \
16         op_math.h op_save.c op_save.h op_table.c op_table.h op_v6.c op_v6.h \
17         portfunc.c portfunc.h quetzal.c quetzal.h solve.c solve.h stack.c stack.h \
18         struct.c struct.h tokenise.c tokenise.h undo.c undo.h z_io.c z_io.h \
19         zscii.c zscii.h \
20         $(GRAPHICS) \
21         $(BLORB) \
22         $(SOUND)
23 nodist_nitfol_la_SOURCES = copying.c dbg_help.h startunix.c
24 nitfol_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/libchimara \
25         -DSMART_TOKENISER -DUSE_INLINE
26 nitfol_la_LDFLAGS = -module $(PLUGIN_LIBTOOL_FLAGS)
27
28 info_TEXINFOS = nitfol.texi
29 nitfol_TEXINFOS = dbg_help.texi options.texi
30 # man_MANS = nitfol.6
31
32 BUILT_SOURCES = copying.c dbg_help.h startunix.c
33 CLEANFILES = $(BUILT_SOURCES) dbg_help.texi nitfol.6 options.texi 
34
35 dbg_help.h: inform.y y2help.pl
36         $(PERL) $(srcdir)/y2help.pl $(srcdir)/inform.y
37
38 dbg_help.texi: inform.y y2help.pl
39         $(PERL) $(srcdir)/y2help.pl $(srcdir)/inform.y
40
41 copying.c: COPYING copying.awk
42         $(AWK) -f $(srcdir)/copying.awk <$(srcdir)/COPYING >copying.c
43
44 # nitfol.6: nitfol.opt opt2glkc.pl
45 #       $(PERL) $(srcdir)/opt2glkc.pl -man $(srcdir)/nitfol.opt
46
47 options.texi: nitfol.opt opt2glkc.pl
48         $(PERL) $(srcdir)/opt2glkc.pl -info $(srcdir)/nitfol.opt
49
50 startunix.c: nitfol.opt opt2glkc.pl
51         $(PERL) $(srcdir)/opt2glkc.pl -unix $(srcdir)/nitfol.opt
52
53 EXTRA_DIST = nitfol.opt crashme.inf test.inf 
54
55 nitfoldocdir = $(datadir)/doc/$(PACKAGE)/nitfol
56 dist_nitfoldoc_DATA = ChangeLog COPYING INSTALL README