libanjuta: Reuse G_FILE_ERROR instead of defining a new error domain for autogen
[anjuta.git] / libanjuta / Makefile.am
blobfb74a87c7ee7feaa1dc317431f8c2ff8d34f0201
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-launcher.c \
60         anjuta-launcher.h \
61         anjuta-utils.c \
62         anjuta-utils.h \
63         anjuta-utils-priv.h \
64         anjuta-session.c \
65         anjuta-session.h \
66         anjuta-save-prompt.c \
67         anjuta-save-prompt.h \
68         anjuta-serializer.c \
69         anjuta-serializer.h \
70         resources.c \
71         resources.h \
72         anjuta-c-plugin-factory.c \
73         anjuta-c-plugin-factory.h \
74         anjuta-c-module.c \
75         anjuta-c-module.h \
76         anjuta-cell-renderer-captioned-image.c  \
77         anjuta-cell-renderer-captioned-image.h \
78         e-splash.h \
79         e-splash.c \
80         anjuta-vcs-status.h \
81         anjuta-vcs-status-tree-view.c \
82         anjuta-vcs-status-tree-view.h \
83         anjuta-command.c \
84         anjuta-command.h \
85         anjuta-async-command.c \
86         anjuta-async-command.h \
87         anjuta-sync-command.c \
88         anjuta-sync-command.h \
89         anjuta-async-notify.h \
90         anjuta-async-notify.c \
91         anjuta-debug.c \
92         anjuta-debug.h \
93         anjuta-command-queue.c \
94         anjuta-command-queue.h \
95         anjuta-token.c \
96         anjuta-token.h \
97         anjuta-token-list.h \
98         anjuta-token-list.c \
99         anjuta-token-file.h \
100         anjuta-token-file.c \
101         anjuta-token-stream.c \
102         anjuta-token-stream.h \
103         anjuta-project.c \
104         anjuta-project.h \
105         anjuta-drop-entry.c \
106         anjuta-drop-entry.h \
107         anjuta-tabber.c \
108         anjuta-tabber.h \
109         anjuta-command-bar.c \
110         anjuta-command-bar.h \
111         anjuta-dock.c \
112         anjuta-dock.h \
113         anjuta-dock-pane.c \
114         anjuta-dock-pane.h \
115         anjuta-file-list.c \
116         anjuta-file-list.h \
117         anjuta-pkg-config-chooser.h \
118         anjuta-pkg-config-chooser.c \
119         anjuta-pkg-config.h \
120         anjuta-pkg-config.c \
121         anjuta-pkg-scanner.h \
122         anjuta-pkg-scanner.c \
123         anjuta-column-text-view.h \
124         anjuta-column-text-view.c \
125         anjuta-file-drop-entry.h \
126         anjuta-file-drop-entry.c \
127         anjuta-entry.h \
128         anjuta-entry.c \
129         anjuta-environment-editor.h \
130         anjuta-environment-editor.c \
131         anjuta-tree-combo.h \
132         anjuta-tree-combo.c \
133         anjuta-autogen.h \
134         anjuta-autogen.c
136 # Glade module
137 if HAVE_PLUGIN_GLADE
139 # For now install in our own prefix
140 # gladeanjutadir = @GLADE_PLUGINS_PATH@
142 gladeanjutadir = $(libdir)/glade/modules
144 gladeanjuta_LTLIBRARIES = libgladeanjuta.la
145 libgladeanjuta_la_SOURCES = anjuta-glade-catalog.c
146 libgladeanjuta_la_LDFLAGS = $(ANJUTA_LDFLAGS) -module -avoid-version
147 libgladeanjuta_la_LIBADD = \
148         libanjuta-3.la \
149         $(GLADE_LIBS)
151 # For now install in our own prefix
152 # catalogdir = @GLADE_CATALOG_PATH@
154 catalogdir = $(datadir)/glade/catalogs
155 catalog_DATA = anjuta-glade.xml
157 endif
159 # libanjuta
161 libanjutaincludedir=$(includedir)/libanjuta-3.0/libanjuta
163 libanjuta_include = \
164         libanjuta.h \
165         anjuta-debug.h \
166         anjuta-shell.h \
167         anjuta-status.h \
168         anjuta-encodings.h \
169         anjuta-convert.h \
170         anjuta-plugin.h \
171         anjuta-plugin-description.h \
172         anjuta-plugin-manager.h \
173         anjuta-plugin-handle.h \
174         anjuta-profile.h \
175         anjuta-profile-manager.h \
176         anjuta-utils.h \
177         anjuta-preferences-dialog.h \
178         anjuta-preferences.h \
179         anjuta-ui.h \
180         anjuta-launcher.h \
181         anjuta-session.h \
182         anjuta-save-prompt.h \
183         anjuta-serializer.h \
184         resources.h \
185         anjuta-vcs-status-tree-view.h \
186         anjuta-vcs-status.h \
187         anjuta-command.h \
188         anjuta-async-command.h \
189         anjuta-async-notify.h \
190         anjuta-sync-command.h \
191         anjuta-version.h \
192         anjuta-project.h \
193         anjuta-command-queue.h \
194         anjuta-drop-entry.h \
195         anjuta-tabber.h \
196         anjuta-command-bar.h \
197         anjuta-dock.h \
198         anjuta-dock-pane.h \
199         anjuta-file-list.h \
200         anjuta-pkg-config-chooser.h \
201         anjuta-pkg-config.h \
202         anjuta-pkg-scanner.h \
203         anjuta-column-text-view.h \
204         anjuta-file-drop-entry.h \
205         anjuta-entry.h \
206         anjuta-token.h \
207         anjuta-pkg-config-chooser.h
209 libanjutainclude_HEADERS = \
210         $(libanjuta_include) \
211         anjuta-enum-types.h \
212         anjuta-marshal.h
214 BUILT_SOURCES = anjuta-marshal.c anjuta-marshal.h  anjuta-enum-types.h anjuta-enum-types.c
216 anjuta-marshal.h: anjuta-marshal.list
217         $(AM_V_GEN)@GLIB_GENMARSHAL@ \
218                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --header > xgen-gmc \
219         && cp xgen-gmc $(@F) \
220         && rm -f xgen-gmc
222 anjuta-marshal.c: anjuta-marshal.h anjuta-marshal.list
223         $(AM_V_GEN)echo "#include \"anjuta-marshal.h\"" > xgenc-gmc \
224         && @GLIB_GENMARSHAL@ \
225                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --body >> xgenc-gmc \
226         && cp xgenc-gmc $(@F) \
227         && rm -f xgenc-gmc
229 anjuta-enum-types.h: stamp-anjuta-enum-types.h $(libanjuta_include)
230         @true
231 stamp-anjuta-enum-types.h: Makefile $(libanjuta_include) anjuta-enum-types.c
232         $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) \
233                         --fhead "#ifndef __ANJUTA_ENUM_TYPES_H__\n#define __ANJUTA_ENUM_TYPES_H__\n\n#include <libanjuta/libanjuta.h>\n\nG_BEGIN_DECLS\n" \
234                         --fprod "/* enumerations from \"@filename@\" */\n" \
235                         --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define ANJUTA_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
236                         --ftail "G_END_DECLS\n\n#endif /* __ANJUTA_ENUM_TYPES_H__ */" \
237                 $(libanjuta_include) ) >> xgen-geth \
238         && (cmp -s xgen-geth anjuta-enum-types.h || cp xgen-geth anjuta-enum-types.h ) \
239         && rm -f xgen-geth \
240         && echo timestamp > $(@F)
242 anjuta-enum-types.c: Makefile
243         $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) \
244                         --fhead "#include \"anjuta-enum-types.h\"\n" \
245                         --fprod "\n/* enumerations from \"@filename@\" */" \
246                         --ftail "\n#define __ANJUTA_ENUM_TYPES_C__\n" \
247                         --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[] = {" \
248                         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
249                         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n  }\n  return etype;\n}\n" \
250                 $(libanjuta_include) ) > xgen-getc \
251         && cp xgen-getc anjuta-enum-types.c  \
252         && rm -f xgen-getc
255 pkgconfigdir = $(libdir)/pkgconfig
256 pkgconfig_DATA = libanjuta-3.0.pc
258 EXTRA_DIST = \
259         $(libanjutainclude_HEADERS) \
260         libanjuta-3.0.pc.in \
261         anjuta-marshal.list \
262         $(catalog_DATA)
264 DISTCLEANFILES = \
265   anjuta-enum-types.h \
266   anjuta-enum-types.c \
267   stamp-anjuta-enum-types.h
269 -include $(INTROSPECTION_MAKEFILE)
270 INTROSPECTION_GIRS =
271 INTROSPECTION_SCANNER_ARGS = --add-include-path=$(builddir) -I $(top_builddir) --warn-all
272 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
274 if HAVE_INTROSPECTION
275 anjuta_introspection_sources = $(libanjuta_3_la_SOURCES)
276 ianjuta_introspection_sources = $(libanjuta_source_files) $(libanjuta_header_files)
278 Anjuta-3.0.gir: libanjuta-3.la
279 Anjuta_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0
280 Anjuta_3_0_gir_CFLAGS = $(ANJUTA_CFLAGS) $(XML_CFLAGS) $(GDL_CFLAGS) -I$(top_srcdir)
281 Anjuta_3_0_gir_LIBS = libanjuta-3.la
282 Anjuta_3_0_gir_FILES = $(anjuta_introspection_sources)
283 Anjuta_3_0_gir_SCANNERFLAGS = --c-include=libanjuta/libanjuta.h
284 INTROSPECTION_GIRS += Anjuta-3.0.gir
286 IAnjuta-3.0.gir: interfaces/libanjuta-interfaces.la libanjuta-3.la Anjuta-3.0.gir
287 IAnjuta_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0 Anjuta-3.0
288 IAnjuta_3_0_gir_CFLAGS = $(ANJUTA_CFLAGS) $(XML_CFLAGS) -I$(top_srcdir)
289 IAnjuta_3_0_gir_LIBS = interfaces/libanjuta-interfaces.la libanjuta-3.la
290 IAnjuta_3_0_gir_FILES = $(ianjuta_introspection_sources)
291 IAnjuta_3_0_gir_SCANNERFLAGS = --add-include-path=$(top_srcdir)/libanjuta/ --symbol-prefix=ianjuta --c-include=libanjuta/interfaces/libanjuta-interfaces.h
292 INTROSPECTION_GIRS += IAnjuta-3.0.gir
294 girdir = $(datadir)/gir-1.0
295 gir_DATA = $(INTROSPECTION_GIRS)
297 typelibdir = $(libdir)/girepository-1.0
298 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
300 CLEANFILES = $(gir_DATA) $(typelib_DATA)
301 endif
304 -include $(top_srcdir)/git.mk