1 ## Process this file with automake to produce Makefile.in
5 lib_LTLIBRARIES = libchimara.la
7 libchimara_la_SOURCES = \
11 chimara-glk.c chimara-glk.h chimara-glk-private.h \
12 chimara-if.c chimara-if.h \
13 chimara-marshallers.c chimara-marshallers.h \
20 graphics.c graphics.h \
21 gi_blorb.c gi_blorb.h \
22 gi_dispa.c gi_dispa.h \
26 hyperlink.c hyperlink.h \
32 resource.c resource.h \
33 schannel.c schannel.h \
39 libchimara_la_CPPFLAGS = $(AM_CPPFLAGS) \
40 -DG_LOG_DOMAIN=\"Chimara\" \
41 -DLOCALEDIR=\""$(datadir)/locale"\" \
42 -DPLUGINDIR=\""$(pkglibdir)"\" \
43 -DPLUGINSOURCEDIR=\""$(abs_builddir)/../interpreters"\" \
45 libchimara_la_CFLAGS = @CHIMARA_CFLAGS@ $(AM_CFLAGS)
46 libchimara_la_LIBADD = @CHIMARA_LIBS@
47 libchimara_la_LDFLAGS = -version-info $(LT_VERSION_INFO) \
49 -export-symbols-regex "^(glk|chimara|glkunix|giblorb|gidispatch|garglk)_"
50 libchimara_includedir = $(includedir)/chimara/libchimara
51 libchimara_include_HEADERS = \
60 BUILT_SOURCES = chimara-marshallers.c chimara-marshallers.h
61 chimara-marshallers.c: chimara-marshallers.txt
62 $(AM_V_GEN)glib-genmarshal --body --prefix=_chimara_marshal $< > $@
64 chimara-marshallers.h: chimara-marshallers.txt
65 $(AM_V_GEN)glib-genmarshal --header --prefix=_chimara_marshal $< > $@
67 EXTRA_DIST = doc.c glkstart.c chimara-marshallers.txt
70 -include $(INTROSPECTION_MAKEFILE)
72 INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
73 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
76 introspection_sources = \
77 chimara-glk.c chimara-glk.h \
78 chimara-if.c chimara-if.h
80 Chimara-1.0.gir: libchimara.la
81 Chimara_1_0_gir_INCLUDES = GObject-2.0 GLib-2.0 Gtk-2.0
82 Chimara_1_0_gir_CFLAGS = @CHIMARA_CFLAGS@ -I$(top_srcdir)
83 Chimara_1_0_gir_LIBS = libchimara.la
84 Chimara_1_0_gir_FILES = $(introspection_sources)
85 Chimara_1_0_gir_SCANNERFLAGS = \
87 --c-include='libchimara/chimara-glk.h' \
88 --c-include='libchimara/chimara-if.h'
89 Chimara_1_0_gir_EXPORT_PACKAGES = chimara
90 INTROSPECTION_GIRS += Chimara-1.0.gir
92 girdir = $(datadir)/gir-1.0
93 gir_DATA = $(INTROSPECTION_GIRS)
95 typelibdir = $(libdir)/girepository-1.0
96 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
98 CLEANFILES += $(gir_DATA) $(typelib_DATA)
100 GITIGNOREFILES = Chimara-1.0.gir Chimara-1.0.typelib
102 vapidir = $(datadir)/vala/vapi
103 dist_vapi_DATA = chimara.vapi
106 chimara.vapi: $(INTROSPECTION_GIRS)
107 $(AM_V_GEN)$(VAPIGEN) --library=chimara --pkg gtk+-2.0 Chimara-1.0.gir && \
111 MAINTAINERCLEANFILES = chimara.vapi
112 -include $(top_srcdir)/git.mk