git: Line endings of README.txt
[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 libchimara_la_SOURCES = \
8         abort.c abort.h \
9         case.c \
10         charset.c charset.h \
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 \
14         datetime.c \
15         dispatch.c \
16         event.c event.h \
17         fileref.c fileref.h \
18         garglk.c garglk.h \
19         gestalt.c \
20         graphics.c graphics.h \
21         gi_blorb.c gi_blorb.h \
22         gi_dispa.c gi_dispa.h \
23         glk.c glk.h \
24         glkstart.h \
25         glkunix.c glkunix.h \
26         hyperlink.c hyperlink.h \
27         init.c init.h \
28         input.c input.h \
29         magic.c magic.h \
30         mouse.c mouse.h \
31         pager.c pager.h \
32         resource.c resource.h \
33         schannel.c schannel.h \
34         stream.c stream.h \
35         strio.c strio.h \
36         style.c style.h \
37         timer.c timer.h \
38         window.c window.h
39 libchimara_la_CPPFLAGS = $(AM_CPPFLAGS) \
40         -DG_LOG_DOMAIN=\"Chimara\" \
41         -DLOCALEDIR=\""$(datadir)/locale"\" \
42         -DPLUGINDIR=\""$(pkglibdir)"\" \
43         -DPLUGINSOURCEDIR=\""$(abs_builddir)/../interpreters"\" \
44         -I$(top_srcdir)
45 libchimara_la_CFLAGS = @CHIMARA_CFLAGS@ $(AM_CFLAGS)
46 libchimara_la_LIBADD = @CHIMARA_LIBS@
47 libchimara_la_LDFLAGS = -version-info $(LT_VERSION_INFO) \
48         -no-undefined \
49         -export-symbols-regex "^(glk|chimara|glkunix|giblorb|gidispatch|garglk)_"
50 libchimara_includedir = $(includedir)/chimara/libchimara
51 libchimara_include_HEADERS = \
52         chimara-glk.h \
53         chimara-if.h \
54         glk.h \
55         glkstart.h \
56         gi_blorb.h \
57         gi_dispa.h \
58         garglk.h
59
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 $< > $@
63
64 chimara-marshallers.h: chimara-marshallers.txt
65         $(AM_V_GEN)glib-genmarshal --header --prefix=_chimara_marshal $< > $@
66
67 EXTRA_DIST = doc.c glkstart.c chimara-marshallers.txt
68 CLEANFILES =
69
70 -include $(INTROSPECTION_MAKEFILE)
71 INTROSPECTION_GIRS =
72 INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
73 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
74
75 if HAVE_INTROSPECTION
76 introspection_sources = \
77         chimara-glk.c chimara-glk.h \
78         chimara-if.c chimara-if.h
79
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 = \
86         --warn-all \
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
91
92 girdir = $(datadir)/gir-1.0
93 gir_DATA = $(INTROSPECTION_GIRS)
94
95 typelibdir = $(libdir)/girepository-1.0
96 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
97
98 CLEANFILES += $(gir_DATA) $(typelib_DATA)
99 endif
100 GITIGNOREFILES = Chimara-1.0.gir Chimara-1.0.typelib
101
102 vapidir = $(datadir)/vala/vapi
103 dist_vapi_DATA = chimara.vapi
104
105 if BUILDING_VAPI
106 chimara.vapi: $(INTROSPECTION_GIRS)
107         $(AM_V_GEN)$(VAPIGEN) --library=chimara --pkg gtk+-2.0 Chimara-1.0.gir && \
108         touch $@
109 endif
110
111 MAINTAINERCLEANFILES = chimara.vapi
112 -include $(top_srcdir)/git.mk