configure: Remove check for graphviz
[anjuta.git] / libanjuta / Makefile.am
blobe9f84daa2e9f6c724450e8a7590973326edad8f9
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.c \
94         anjuta-debug.h \
95         anjuta-command-queue.c \
96         anjuta-command-queue.h \
97         anjuta-token.c \
98         anjuta-token.h \
99         anjuta-token-list.h \
100         anjuta-token-list.c \
101         anjuta-token-file.h \
102         anjuta-token-file.c \
103         anjuta-token-stream.c \
104         anjuta-token-stream.h \
105         anjuta-project.c \
106         anjuta-project.h \
107         anjuta-drop-entry.c \
108         anjuta-drop-entry.h \
109         anjuta-tabber.c \
110         anjuta-tabber.h \
111         anjuta-command-bar.c \
112         anjuta-command-bar.h \
113         anjuta-dock.c \
114         anjuta-dock.h \
115         anjuta-dock-pane.c \
116         anjuta-dock-pane.h \
117         anjuta-file-list.c \
118         anjuta-file-list.h \
119         anjuta-pkg-config-chooser.h \
120         anjuta-pkg-config-chooser.c \
121         anjuta-pkg-config.h \
122         anjuta-pkg-config.c \
123         anjuta-pkg-scanner.h \
124         anjuta-pkg-scanner.c \
125         anjuta-column-text-view.h \
126         anjuta-column-text-view.c \
127         anjuta-file-drop-entry.h \
128         anjuta-file-drop-entry.c \
129         anjuta-entry.h \
130         anjuta-entry.c \
131         anjuta-environment-editor.h \
132         anjuta-environment-editor.c \
133         anjuta-tree-combo.h \
134         anjuta-tree-combo.c \
135         anjuta-autogen.h \
136         anjuta-autogen.c
138 # Glade module
139 if HAVE_PLUGIN_GLADE
141 # For now install in our own prefix
142 # gladeanjutadir = @GLADE_PLUGINS_PATH@
144 gladeanjutadir = $(libdir)/glade/modules
146 gladeanjuta_LTLIBRARIES = libgladeanjuta.la
147 libgladeanjuta_la_SOURCES = anjuta-glade-catalog.c
148 libgladeanjuta_la_LDFLAGS = $(ANJUTA_LDFLAGS) -module -avoid-version
149 libgladeanjuta_la_LIBADD = \
150         libanjuta-3.la \
151         $(GLADE_LIBS)
153 # For now install in our own prefix
154 # catalogdir = @GLADE_CATALOG_PATH@
156 catalogdir = $(datadir)/glade/catalogs
157 catalog_DATA = anjuta-glade.xml
159 endif
161 # libanjuta
163 libanjutaincludedir=$(includedir)/libanjuta-3.0/libanjuta
165 libanjuta_include = \
166         libanjuta.h \
167         anjuta-debug.h \
168         anjuta-shell.h \
169         anjuta-status.h \
170         anjuta-encodings.h \
171         anjuta-convert.h \
172         anjuta-plugin.h \
173         anjuta-plugin-description.h \
174         anjuta-plugin-manager.h \
175         anjuta-plugin-handle.h \
176         anjuta-profile.h \
177         anjuta-profile-manager.h \
178         anjuta-utils.h \
179         anjuta-preferences-dialog.h \
180         anjuta-preferences.h \
181         anjuta-ui.h \
182         anjuta-launcher.h \
183         anjuta-session.h \
184         anjuta-save-prompt.h \
185         anjuta-serializer.h \
186         resources.h \
187         anjuta-vcs-status-tree-view.h \
188         anjuta-vcs-status.h \
189         anjuta-command.h \
190         anjuta-async-command.h \
191         anjuta-async-notify.h \
192         anjuta-sync-command.h \
193         anjuta-version.h \
194         anjuta-project.h \
195         anjuta-command-queue.h \
196         anjuta-drop-entry.h \
197         anjuta-tabber.h \
198         anjuta-command-bar.h \
199         anjuta-dock.h \
200         anjuta-dock-pane.h \
201         anjuta-file-list.h \
202         anjuta-pkg-config-chooser.h \
203         anjuta-pkg-config.h \
204         anjuta-pkg-scanner.h \
205         anjuta-column-text-view.h \
206         anjuta-file-drop-entry.h \
207         anjuta-entry.h \
208         anjuta-token.h \
209         anjuta-pkg-config-chooser.h
211 libanjutainclude_HEADERS = \
212         $(libanjuta_include) \
213         anjuta-enum-types.h \
214         anjuta-marshal.h
216 BUILT_SOURCES = anjuta-marshal.c anjuta-marshal.h  anjuta-enum-types.h anjuta-enum-types.c
218 anjuta-marshal.h: anjuta-marshal.list
219         $(AM_V_GEN)@GLIB_GENMARSHAL@ \
220                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --header > xgen-gmc \
221         && cp xgen-gmc $(@F) \
222         && rm -f xgen-gmc
224 anjuta-marshal.c: anjuta-marshal.h anjuta-marshal.list
225         $(AM_V_GEN)echo "#include \"anjuta-marshal.h\"" > xgenc-gmc \
226         && @GLIB_GENMARSHAL@ \
227                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --body >> xgenc-gmc \
228         && cp xgenc-gmc $(@F) \
229         && rm -f xgenc-gmc
231 anjuta-enum-types.h: stamp-anjuta-enum-types.h $(libanjuta_include)
232         @true
233 stamp-anjuta-enum-types.h: Makefile $(libanjuta_include) anjuta-enum-types.c
234         $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) \
235                         --fhead "#ifndef __ANJUTA_ENUM_TYPES_H__\n#define __ANJUTA_ENUM_TYPES_H__\n\n#include <libanjuta/libanjuta.h>\n\nG_BEGIN_DECLS\n" \
236                         --fprod "/* enumerations from \"@filename@\" */\n" \
237                         --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define ANJUTA_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
238                         --ftail "G_END_DECLS\n\n#endif /* __ANJUTA_ENUM_TYPES_H__ */" \
239                 $(libanjuta_include) ) >> xgen-geth \
240         && (cmp -s xgen-geth anjuta-enum-types.h || cp xgen-geth anjuta-enum-types.h ) \
241         && rm -f xgen-geth \
242         && echo timestamp > $(@F)
244 anjuta-enum-types.c: Makefile
245         $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) \
246                         --fhead "#include \"anjuta-enum-types.h\"\n" \
247                         --fprod "\n/* enumerations from \"@filename@\" */" \
248                         --ftail "\n#define __ANJUTA_ENUM_TYPES_C__\n" \
249                         --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[] = {" \
250                         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
251                         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n  }\n  return etype;\n}\n" \
252                 $(libanjuta_include) ) > xgen-getc \
253         && cp xgen-getc anjuta-enum-types.c  \
254         && rm -f xgen-getc
257 pkgconfigdir = $(libdir)/pkgconfig
258 pkgconfig_DATA = libanjuta-3.0.pc
260 EXTRA_DIST = \
261         $(libanjutainclude_HEADERS) \
262         libanjuta-3.0.pc.in \
263         anjuta-marshal.list \
264         $(catalog_DATA)
266 DISTCLEANFILES = \
267   anjuta-enum-types.h \
268   anjuta-enum-types.c \
269   stamp-anjuta-enum-types.h
271 -include $(INTROSPECTION_MAKEFILE)
272 INTROSPECTION_GIRS =
273 INTROSPECTION_SCANNER_ARGS = --add-include-path=$(builddir) -I $(top_builddir) --warn-all
274 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
276 if HAVE_INTROSPECTION
277 anjuta_introspection_sources = $(libanjuta_3_la_SOURCES)
278 ianjuta_introspection_sources = $(libanjuta_source_files) $(libanjuta_header_files)
280 Anjuta-3.0.gir: libanjuta-3.la
281 Anjuta_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0
282 Anjuta_3_0_gir_CFLAGS = $(ANJUTA_CFLAGS) $(XML_CFLAGS) $(GDL_CFLAGS) -I$(top_srcdir)
283 Anjuta_3_0_gir_LIBS = libanjuta-3.la
284 Anjuta_3_0_gir_FILES = $(anjuta_introspection_sources)
285 Anjuta_3_0_gir_SCANNERFLAGS = --c-include=libanjuta/libanjuta.h
286 INTROSPECTION_GIRS += Anjuta-3.0.gir
288 IAnjuta-3.0.gir: interfaces/libanjuta-interfaces.la libanjuta-3.la Anjuta-3.0.gir
289 IAnjuta_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0 Anjuta-3.0
290 IAnjuta_3_0_gir_CFLAGS = $(ANJUTA_CFLAGS) $(XML_CFLAGS) -I$(top_srcdir)
291 IAnjuta_3_0_gir_LIBS = interfaces/libanjuta-interfaces.la libanjuta-3.la
292 IAnjuta_3_0_gir_FILES = $(ianjuta_introspection_sources)
293 IAnjuta_3_0_gir_SCANNERFLAGS = --add-include-path=$(top_srcdir)/libanjuta/ --symbol-prefix=ianjuta --c-include=libanjuta/interfaces/libanjuta-interfaces.h
294 INTROSPECTION_GIRS += IAnjuta-3.0.gir
296 girdir = $(datadir)/gir-1.0
297 gir_DATA = $(INTROSPECTION_GIRS)
299 typelibdir = $(libdir)/girepository-1.0
300 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
302 CLEANFILES = $(gir_DATA) $(typelib_DATA)
303 endif
306 -include $(top_srcdir)/git.mk