1 ## Process this file with automake to produce Makefile.in
5 lib_LTLIBRARIES = libchimara.la
8 pluginpath = "../interpreters"
10 pluginpath = $(pkglibdir)
13 libchimara_la_SOURCES = \
17 chimara-glk.c chimara-glk.h chimara-glk-private.h \
18 chimara-if.c chimara-if.h \
19 chimara-marshallers.c chimara-marshallers.h \
26 graphics.c graphics.h \
27 gi_blorb.c gi_blorb.h \
28 gi_dispa.c gi_dispa.h \
32 hyperlink.c hyperlink.h \
38 resource.c resource.h \
39 schannel.c schannel.h \
45 libchimara_la_CPPFLAGS = \
46 -DG_LOG_DOMAIN=\"Chimara\" \
47 -DLOCALEDIR=\""$(datadir)/locale"\" \
48 -DPLUGINDIR=\""$(pluginpath)"\" \
49 -DPLUGINSOURCEDIR=\""$(abs_builddir)/../interpreters"\" \
51 libchimara_la_CFLAGS = @CHIMARA_CFLAGS@ $(AM_CFLAGS)
52 libchimara_la_LIBADD = @CHIMARA_LIBS@
53 libchimara_la_LDFLAGS = -version-info $(LT_VERSION_INFO) \
55 -export-symbols-regex "^(glk|chimara|glkunix|giblorb|gidispatch|garglk)_"
56 libchimara_includedir = $(includedir)/chimara/libchimara
57 libchimara_include_HEADERS = \
66 BUILT_SOURCES = chimara-marshallers.c chimara-marshallers.h
67 chimara-marshallers.c: chimara-marshallers.txt
68 $(AM_V_GEN)glib-genmarshal --body --prefix=_chimara_marshal $< > $@
70 chimara-marshallers.h: chimara-marshallers.txt
71 $(AM_V_GEN)glib-genmarshal --header --prefix=_chimara_marshal $< > $@
73 EXTRA_DIST = doc.c glkstart.c chimara-marshallers.txt
76 -include $(INTROSPECTION_MAKEFILE)
78 INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
79 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
82 introspection_sources = \
83 chimara-glk.c chimara-glk.h \
84 chimara-if.c chimara-if.h
86 Chimara-1.0.gir: libchimara.la
87 Chimara_1_0_gir_INCLUDES = GObject-2.0 GLib-2.0 Gtk-2.0
88 Chimara_1_0_gir_CFLAGS = @CHIMARA_CFLAGS@ -I$(top_srcdir)
89 Chimara_1_0_gir_LIBS = libchimara.la
90 Chimara_1_0_gir_FILES = $(introspection_sources)
91 Chimara_1_0_gir_SCANNERFLAGS = \
93 --c-include='libchimara/chimara-glk.h' \
94 --c-include='libchimara/chimara-if.h'
95 Chimara_1_0_gir_EXPORT_PACKAGES = chimara
96 INTROSPECTION_GIRS += Chimara-1.0.gir
98 girdir = $(datadir)/gir-1.0
99 gir_DATA = $(INTROSPECTION_GIRS)
101 typelibdir = $(libdir)/girepository-1.0
102 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
104 CLEANFILES += $(gir_DATA) $(typelib_DATA)
107 # Currently, install the Vala VAPI file statically - generation is broken?
109 vapidir = $(datadir)/vala/vapi
110 dist_vapi_DATA = chimara.vapi
112 -include $(top_srcdir)/git.mk