Added a browser view with fake library data
[projects/chimara/chimara.git] / libchimara / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AM_CFLAGS = -Wall
4
5 lib_LTLIBRARIES = libchimara.la
6
7 if TARGET_ILIAD
8 pluginpath = "../interpreters"
9 else
10 pluginpath = $(pkglibdir)
11 endif
12
13 libchimara_la_SOURCES = \
14         abort.c abort.h \
15         case.c \
16         charset.c charset.h \
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 \
20         datetime.c \
21         dispatch.c \
22         event.c event.h \
23         fileref.c fileref.h \
24         garglk.c garglk.h \
25         gestalt.c \
26         graphics.c graphics.h \
27         gi_blorb.c gi_blorb.h \
28         gi_dispa.c gi_dispa.h \
29         glk.c glk.h \
30         glkstart.h \
31         glkunix.c glkunix.h \
32         hyperlink.c hyperlink.h \
33         init.c init.h \
34         input.c input.h \
35         magic.c magic.h \
36         mouse.c mouse.h \
37         pager.c pager.h \
38         resource.c resource.h \
39         schannel.c schannel.h \
40         stream.c stream.h \
41         strio.c strio.h \
42         style.c style.h \
43         timer.c timer.h \
44         window.c window.h
45 libchimara_la_CPPFLAGS = \
46         -DG_LOG_DOMAIN=\"Chimara\" \
47         -DLOCALEDIR=\""$(datadir)/locale"\" \
48         -DPLUGINDIR=\""$(pluginpath)"\" \
49         -DPLUGINSOURCEDIR=\""$(abs_builddir)/../interpreters"\" \
50         -I$(top_srcdir)
51 libchimara_la_CFLAGS = @CHIMARA_CFLAGS@ $(AM_CFLAGS)
52 libchimara_la_LIBADD = @CHIMARA_LIBS@
53 libchimara_la_LDFLAGS = -version-info $(LT_VERSION_INFO) \
54         -no-undefined \
55         -export-symbols-regex "^(glk|chimara|glkunix|giblorb|gidispatch|garglk)_"
56 libchimara_includedir = $(includedir)/chimara/libchimara
57 libchimara_include_HEADERS = \
58         chimara-glk.h \
59         chimara-if.h \
60         glk.h \
61         glkstart.h \
62         gi_blorb.h \
63         gi_dispa.h \
64         garglk.h
65
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 $< > $@
69
70 chimara-marshallers.h: chimara-marshallers.txt
71         $(AM_V_GEN)glib-genmarshal --header --prefix=_chimara_marshal $< > $@
72
73 EXTRA_DIST = doc.c glkstart.c chimara-marshallers.txt
74 CLEANFILES =
75
76 -include $(INTROSPECTION_MAKEFILE)
77 INTROSPECTION_GIRS =
78 INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
79 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
80
81 if HAVE_INTROSPECTION
82 introspection_sources = \
83         chimara-glk.c chimara-glk.h \
84         chimara-if.c chimara-if.h
85
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 = \
92         --warn-all \
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
97
98 girdir = $(datadir)/gir-1.0
99 gir_DATA = $(INTROSPECTION_GIRS)
100
101 typelibdir = $(libdir)/girepository-1.0
102 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
103
104 CLEANFILES += $(gir_DATA) $(typelib_DATA)
105 endif
106
107 # Currently, install the Vala VAPI file statically - generation is broken?
108
109 vapidir = $(datadir)/vala/vapi
110 dist_vapi_DATA = chimara.vapi
111
112 -include $(top_srcdir)/git.mk