build-basic-autotools:bgo#688293 - build-basic-autotools: Fix invalid read
[anjuta.git] / libanjuta / Makefile.am
blob4801567ec112c356511bf765005a2ce6887dffc1
1 include interfaces/Makefile.am.gir
3 SUBDIRS = interfaces . tests
5 AM_CPPFLAGS = \
6         -I$(top_srcdir) \
7         -I . \
8         $(WARN_CFLAGS) \
9         $(DEPRECATED_FLAGS) \
10         $(ANJUTA_CFLAGS) \
11         $(XML_CFLAGS) \
12         $(GDL_CFLAGS) \
13         -DDATADIR="\"$(datadir)\"" \
14         -DPACKAGE_PIXMAPS_DIR="\"$(datadir)/pixmaps/$(PACKAGE)\"" \
15         -DPACKAGE_DATA_DIR="\"$(datadir)/$(PACKAGE)\"" \
16         -DPACKAGE_HELP_DIR="\"$(datadir)/gnome/help/$(PACKAGE)\"" \
17         -DPACKAGE_DOC_DIR="\"$(docdir)\"" \
18         -DG_LOG_DOMAIN=\"libanjuta\"
20 lib_LTLIBRARIES = libanjuta-3.la 
21 libanjuta_3_la_LDFLAGS = $(ANJUTA_LDFLAGS) 
22 libanjuta_3_la_LIBADD = \
23         interfaces/libanjuta-interfaces.la \
24         $(ANJUTA_LIBS) \
25         $(XML_LIBS) \
26         $(GDL_LIBS)
28 libanjuta_3_la_SOURCES= \
29         anjuta-enum-types.h \
30         anjuta-enum-types.c \
31         anjuta-marshal.h \
32         anjuta-marshal.c \
33         anjuta-shell.c \
34         anjuta-shell.h \
35         anjuta-status.c \
36         anjuta-status.h \
37         anjuta-encodings.c \
38         anjuta-encodings.h \
39         anjuta-convert.c \
40         anjuta-convert.h \
41         anjuta-preferences-dialog.c \
42         anjuta-preferences-dialog.h \
43         anjuta-preferences.c \
44         anjuta-preferences.h \
45         anjuta-plugin.c \
46         anjuta-plugin.h \
47         anjuta-plugin-handle.h \
48         anjuta-plugin-handle.c \
49         anjuta-plugin-description.c \
50         anjuta-plugin-description.h \
51         anjuta-plugin-manager.c \
52         anjuta-plugin-manager.h \
53         anjuta-profile.c \
54         anjuta-profile.h \
55         anjuta-profile-manager.c \
56         anjuta-profile-manager.h \
57         anjuta-ui.c \
58         anjuta-ui.h \
59         anjuta-language-provider.c \
60         anjuta-language-provider.h \
61         anjuta-launcher.c \
62         anjuta-launcher.h \
63         anjuta-utils.c \
64         anjuta-utils.h \
65         anjuta-utils-priv.h \
66         anjuta-session.c \
67         anjuta-session.h \
68         anjuta-save-prompt.c \
69         anjuta-save-prompt.h \
70         anjuta-serializer.c \
71         anjuta-serializer.h \
72         resources.c \
73         resources.h \
74         anjuta-c-plugin-factory.c \
75         anjuta-c-plugin-factory.h \
76         anjuta-c-module.c \
77         anjuta-c-module.h \
78         anjuta-cell-renderer-captioned-image.c  \
79         anjuta-cell-renderer-captioned-image.h \
80         e-splash.h \
81         e-splash.c \
82         anjuta-vcs-status.h \
83         anjuta-vcs-status-tree-view.c \
84         anjuta-vcs-status-tree-view.h \
85         anjuta-command.c \
86         anjuta-command.h \
87         anjuta-async-command.c \
88         anjuta-async-command.h \
89         anjuta-sync-command.c \
90         anjuta-sync-command.h \
91         anjuta-async-notify.h \
92         anjuta-async-notify.c \
93         anjuta-debug.h \
94         anjuta-command-queue.c \
95         anjuta-command-queue.h \
96         anjuta-token.c \
97         anjuta-token.h \
98         anjuta-token-list.h \
99         anjuta-token-list.c \
100         anjuta-token-file.h \
101         anjuta-token-file.c \
102         anjuta-token-stream.c \
103         anjuta-token-stream.h \
104         anjuta-project.c \
105         anjuta-project.h \
106         anjuta-drop-entry.c \
107         anjuta-drop-entry.h \
108         anjuta-tabber.c \
109         anjuta-tabber.h \
110         anjuta-command-bar.c \
111         anjuta-command-bar.h \
112         anjuta-dock.c \
113         anjuta-dock.h \
114         anjuta-dock-pane.c \
115         anjuta-dock-pane.h \
116         anjuta-file-list.c \
117         anjuta-file-list.h \
118         anjuta-pkg-config-chooser.h \
119         anjuta-pkg-config-chooser.c \
120         anjuta-pkg-config.h \
121         anjuta-pkg-config.c \
122         anjuta-pkg-scanner.h \
123         anjuta-pkg-scanner.c \
124         anjuta-column-text-view.h \
125         anjuta-column-text-view.c \
126         anjuta-file-drop-entry.h \
127         anjuta-file-drop-entry.c \
128         anjuta-entry.h \
129         anjuta-entry.c \
130         anjuta-environment-editor.h \
131         anjuta-environment-editor.c \
132         anjuta-tree-combo.h \
133         anjuta-tree-combo.c \
134         anjuta-autogen.h \
135         anjuta-autogen.c
137 # Glade module
138 if HAVE_PLUGIN_GLADE
140 # For now install in our own prefix
141 # gladeanjutadir = @GLADE_PLUGINS_PATH@
143 gladeanjutadir = $(libdir)/glade/modules
145 gladeanjuta_LTLIBRARIES = libgladeanjuta.la
146 libgladeanjuta_la_SOURCES = anjuta-glade-catalog.c
147 libgladeanjuta_la_LDFLAGS = $(ANJUTA_LDFLAGS) -module -avoid-version
148 libgladeanjuta_la_LIBADD = \
149         libanjuta-3.la \
150         $(GLADE_LIBS)
152 # For now install in our own prefix
153 # catalogdir = @GLADE_CATALOG_PATH@
155 catalogdir = $(datadir)/glade/catalogs
156 catalog_DATA = anjuta-glade.xml
158 endif
160 # libanjuta
162 libanjutaincludedir=$(includedir)/libanjuta-3.0/libanjuta
164 libanjuta_include = \
165         libanjuta.h \
166         anjuta-debug.h \
167         anjuta-shell.h \
168         anjuta-status.h \
169         anjuta-encodings.h \
170         anjuta-convert.h \
171         anjuta-plugin.h \
172         anjuta-plugin-description.h \
173         anjuta-plugin-manager.h \
174         anjuta-plugin-handle.h \
175         anjuta-profile.h \
176         anjuta-profile-manager.h \
177         anjuta-utils.h \
178         anjuta-preferences-dialog.h \
179         anjuta-preferences.h \
180         anjuta-ui.h \
181         anjuta-launcher.h \
182         anjuta-session.h \
183         anjuta-save-prompt.h \
184         anjuta-serializer.h \
185         resources.h \
186         anjuta-vcs-status-tree-view.h \
187         anjuta-vcs-status.h \
188         anjuta-command.h \
189         anjuta-async-command.h \
190         anjuta-async-notify.h \
191         anjuta-sync-command.h \
192         anjuta-version.h \
193         anjuta-project.h \
194         anjuta-command-queue.h \
195         anjuta-drop-entry.h \
196         anjuta-tabber.h \
197         anjuta-command-bar.h \
198         anjuta-dock.h \
199         anjuta-dock-pane.h \
200         anjuta-file-list.h \
201         anjuta-pkg-config-chooser.h \
202         anjuta-pkg-config.h \
203         anjuta-pkg-scanner.h \
204         anjuta-column-text-view.h \
205         anjuta-file-drop-entry.h \
206         anjuta-entry.h \
207         anjuta-token.h \
208         anjuta-pkg-config-chooser.h
210 libanjutainclude_HEADERS = \
211         $(libanjuta_include) \
212         anjuta-enum-types.h \
213         anjuta-marshal.h
215 BUILT_SOURCES = anjuta-marshal.c anjuta-marshal.h  anjuta-enum-types.h anjuta-enum-types.c
217 anjuta-marshal.h: anjuta-marshal.list
218         $(AM_V_GEN)@GLIB_GENMARSHAL@ \
219                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --header > xgen-gmc \
220         && cp xgen-gmc $(@F) \
221         && rm -f xgen-gmc
223 anjuta-marshal.c: anjuta-marshal.h anjuta-marshal.list
224         $(AM_V_GEN)echo "#include \"anjuta-marshal.h\"" > xgenc-gmc \
225         && @GLIB_GENMARSHAL@ \
226                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --body >> xgenc-gmc \
227         && cp xgenc-gmc $(@F) \
228         && rm -f xgenc-gmc
230 anjuta-enum-types.h: stamp-anjuta-enum-types.h $(libanjuta_include)
231         @true
232 stamp-anjuta-enum-types.h: Makefile $(libanjuta_include) anjuta-enum-types.c
233         $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) \
234                         --fhead "#ifndef __ANJUTA_ENUM_TYPES_H__\n#define __ANJUTA_ENUM_TYPES_H__\n\n#include <libanjuta/libanjuta.h>\n\nG_BEGIN_DECLS\n" \
235                         --fprod "/* enumerations from \"@filename@\" */\n" \
236                         --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define ANJUTA_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
237                         --ftail "G_END_DECLS\n\n#endif /* __ANJUTA_ENUM_TYPES_H__ */" \
238                 $(libanjuta_include) ) >> xgen-geth \
239         && (cmp -s xgen-geth anjuta-enum-types.h || cp xgen-geth anjuta-enum-types.h ) \
240         && rm -f xgen-geth \
241         && echo timestamp > $(@F)
243 anjuta-enum-types.c: Makefile
244         $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) \
245                         --fhead "#include \"anjuta-enum-types.h\"\n" \
246                         --fprod "\n/* enumerations from \"@filename@\" */" \
247                         --ftail "\n#define __ANJUTA_ENUM_TYPES_C__\n" \
248                         --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {" \
249                         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
250                         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n  }\n  return etype;\n}\n" \
251                 $(libanjuta_include) ) > xgen-getc \
252         && cp xgen-getc anjuta-enum-types.c  \
253         && rm -f xgen-getc
256 pkgconfigdir = $(libdir)/pkgconfig
257 pkgconfig_DATA = libanjuta-3.0.pc
259 EXTRA_DIST = \
260         $(libanjutainclude_HEADERS) \
261         libanjuta-3.0.pc.in \
262         anjuta-marshal.list \
263         $(catalog_DATA)
265 DISTCLEANFILES = \
266   anjuta-enum-types.h \
267   anjuta-enum-types.c \
268   stamp-anjuta-enum-types.h
270 -include $(INTROSPECTION_MAKEFILE)
271 INTROSPECTION_GIRS =
272 INTROSPECTION_SCANNER_ARGS = --add-include-path=$(builddir) -I $(top_builddir) --warn-all
273 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
275 if HAVE_INTROSPECTION
276 anjuta_introspection_sources = $(libanjuta_3_la_SOURCES)
277 ianjuta_introspection_sources = $(libanjuta_source_files) $(libanjuta_header_files)
279 Anjuta-3.0.gir: libanjuta-3.la
280 Anjuta_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0
281 Anjuta_3_0_gir_CFLAGS = $(ANJUTA_CFLAGS) $(XML_CFLAGS) $(GDL_CFLAGS) -I$(top_srcdir)
282 Anjuta_3_0_gir_LIBS = libanjuta-3.la
283 Anjuta_3_0_gir_FILES = $(anjuta_introspection_sources)
284 Anjuta_3_0_gir_SCANNERFLAGS = --c-include=libanjuta/libanjuta.h
285 INTROSPECTION_GIRS += Anjuta-3.0.gir
287 IAnjuta-3.0.gir: interfaces/libanjuta-interfaces.la libanjuta-3.la Anjuta-3.0.gir
288 IAnjuta_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0 Anjuta-3.0
289 IAnjuta_3_0_gir_CFLAGS = $(ANJUTA_CFLAGS) $(XML_CFLAGS) -I$(top_srcdir)
290 IAnjuta_3_0_gir_LIBS = interfaces/libanjuta-interfaces.la libanjuta-3.la
291 IAnjuta_3_0_gir_FILES = $(ianjuta_introspection_sources)
292 IAnjuta_3_0_gir_SCANNERFLAGS = --add-include-path=$(top_srcdir)/libanjuta/ --symbol-prefix=ianjuta --c-include=libanjuta/interfaces/libanjuta-interfaces.h
293 INTROSPECTION_GIRS += IAnjuta-3.0.gir
295 girdir = $(datadir)/gir-1.0
296 gir_DATA = $(INTROSPECTION_GIRS)
298 typelibdir = $(libdir)/girepository-1.0
299 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
301 CLEANFILES = $(gir_DATA) $(typelib_DATA)
302 endif
305 -include $(top_srcdir)/git.mk