Avoid linking programs with plugin libraries
[anjuta.git] / libanjuta / Makefile.am
blobd47c978b6f40cd285d7a27764a0f850954d866a9
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 \
136         anjuta-completion.h \
137         anjuta-completion.c \
138         anjuta-close-button.c \
139         anjuta-close-button.h \
140         anjuta-modeline.c \
141         anjuta-modeline.h \
142         anjuta-cell-renderer-diff.c \
143         anjuta-cell-renderer-diff.h
145 # Glade module
146 if ENABLE_GLADE_CATALOG
148 gladeanjutadir = @GLADE_PLUGINS_PATH@
150 gladeanjuta_LTLIBRARIES = libgladeanjuta.la
151 libgladeanjuta_la_SOURCES = anjuta-glade-catalog.c
152 libgladeanjuta_la_LDFLAGS = $(ANJUTA_LDFLAGS) -module -avoid-version
153 libgladeanjuta_la_LIBADD = \
154         libanjuta-3.la \
155         $(GLADE_LIBS)
157 catalogdir = @GLADE_CATALOG_PATH@
159 dist_catalog_DATA = anjuta-glade.xml
161 endif
163 # libanjuta
165 libanjutaincludedir=$(includedir)/libanjuta-3.0/libanjuta
167 libanjuta_include = \
168         libanjuta.h \
169         anjuta-debug.h \
170         anjuta-shell.h \
171         anjuta-status.h \
172         anjuta-encodings.h \
173         anjuta-convert.h \
174         anjuta-plugin.h \
175         anjuta-plugin-description.h \
176         anjuta-plugin-manager.h \
177         anjuta-plugin-handle.h \
178         anjuta-profile.h \
179         anjuta-profile-manager.h \
180         anjuta-utils.h \
181         anjuta-preferences-dialog.h \
182         anjuta-preferences.h \
183         anjuta-ui.h \
184         anjuta-launcher.h \
185         anjuta-session.h \
186         anjuta-save-prompt.h \
187         anjuta-serializer.h \
188         resources.h \
189         anjuta-vcs-status-tree-view.h \
190         anjuta-vcs-status.h \
191         anjuta-command.h \
192         anjuta-async-command.h \
193         anjuta-async-notify.h \
194         anjuta-sync-command.h \
195         anjuta-version.h \
196         anjuta-project.h \
197         anjuta-command-queue.h \
198         anjuta-drop-entry.h \
199         anjuta-tabber.h \
200         anjuta-command-bar.h \
201         anjuta-dock.h \
202         anjuta-dock-pane.h \
203         anjuta-file-list.h \
204         anjuta-pkg-config-chooser.h \
205         anjuta-pkg-config.h \
206         anjuta-pkg-scanner.h \
207         anjuta-column-text-view.h \
208         anjuta-file-drop-entry.h \
209         anjuta-entry.h \
210         anjuta-token.h \
211         anjuta-autogen.h \
212         anjuta-cell-renderer-captioned-image.h \
213         anjuta-completion.h \
214         anjuta-environment-editor.h \
215         anjuta-language-provider.h \
216         anjuta-token-file.h \
217         anjuta-token-list.h \
218         anjuta-token-stream.h \
219         anjuta-tree-combo.h \
220         anjuta-close-button.h \
221         anjuta-modeline.h
223 libanjutainclude_HEADERS = \
224         $(libanjuta_include) \
225         anjuta-enum-types.h \
226         anjuta-marshal.h
228 BUILT_SOURCES = anjuta-marshal.c anjuta-marshal.h  anjuta-enum-types.h anjuta-enum-types.c
230 anjuta-marshal.h: anjuta-marshal.list
231         $(AM_V_GEN)@GLIB_GENMARSHAL@ \
232                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --header > xgen-gmc \
233         && cp xgen-gmc $(@F) \
234         && rm -f xgen-gmc
236 anjuta-marshal.c: anjuta-marshal.h anjuta-marshal.list
237         $(AM_V_GEN)echo "#include \"anjuta-marshal.h\"" > xgenc-gmc \
238         && @GLIB_GENMARSHAL@ \
239                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --body >> xgenc-gmc \
240         && cp xgenc-gmc $(@F) \
241         && rm -f xgenc-gmc
243 anjuta-enum-types.h: stamp-anjuta-enum-types.h $(libanjuta_include)
244         @true
245 stamp-anjuta-enum-types.h: Makefile $(libanjuta_include) anjuta-enum-types.c
246         $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) \
247                         --fhead "#ifndef __ANJUTA_ENUM_TYPES_H__\n#define __ANJUTA_ENUM_TYPES_H__\n\n#include <libanjuta/libanjuta.h>\n\nG_BEGIN_DECLS\n" \
248                         --fprod "/* enumerations from \"@filename@\" */\n" \
249                         --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define ANJUTA_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
250                         --ftail "G_END_DECLS\n\n#endif /* __ANJUTA_ENUM_TYPES_H__ */" \
251                 $(libanjuta_include) ) >> xgen-geth \
252         && (cmp -s xgen-geth anjuta-enum-types.h || cp xgen-geth anjuta-enum-types.h ) \
253         && rm -f xgen-geth \
254         && echo timestamp > $(@F)
256 anjuta-enum-types.c: Makefile
257         $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) \
258                         --fhead "#include \"anjuta-enum-types.h\"\n" \
259                         --fprod "\n/* enumerations from \"@filename@\" */" \
260                         --ftail "\n#define __ANJUTA_ENUM_TYPES_C__\n" \
261                         --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[] = {" \
262                         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
263                         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n  }\n  return etype;\n}\n" \
264                 $(libanjuta_include) ) > xgen-getc \
265         && cp xgen-getc anjuta-enum-types.c  \
266         && rm -f xgen-getc
269 pkgconfigdir = $(libdir)/pkgconfig
270 pkgconfig_DATA = libanjuta-3.0.pc
272 EXTRA_DIST = \
273         libanjuta-3.0.pc.in \
274         anjuta-marshal.list
276 DISTCLEANFILES = \
277   anjuta-enum-types.h \
278   anjuta-enum-types.c \
279   stamp-anjuta-enum-types.h
281 -include $(INTROSPECTION_MAKEFILE)
282 INTROSPECTION_GIRS =
283 INTROSPECTION_SCANNER_ARGS = --add-include-path=$(builddir) -I $(top_builddir) --warn-all
284 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
286 if HAVE_INTROSPECTION
287 anjuta_introspection_sources = $(libanjuta_3_la_SOURCES)
288 ianjuta_introspection_sources = $(libanjuta_source_files) $(libanjuta_header_files)
290 Anjuta-3.0.gir: libanjuta-3.la
291 Anjuta_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0 Gdl-3
292 Anjuta_3_0_gir_CFLAGS = $(ANJUTA_CFLAGS) $(XML_CFLAGS) $(GDL_CFLAGS) -I$(top_srcdir)
293 Anjuta_3_0_gir_LIBS = libanjuta-3.la
294 Anjuta_3_0_gir_FILES = $(anjuta_introspection_sources)
295 Anjuta_3_0_gir_SCANNERFLAGS = --c-include=libanjuta/libanjuta.h
296 INTROSPECTION_GIRS += Anjuta-3.0.gir
298 IAnjuta-3.0.gir: interfaces/libanjuta-interfaces.la libanjuta-3.la Anjuta-3.0.gir
299 IAnjuta_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0 Anjuta-3.0
300 IAnjuta_3_0_gir_CFLAGS = $(ANJUTA_CFLAGS) $(XML_CFLAGS) -I$(top_srcdir)
301 IAnjuta_3_0_gir_LIBS = interfaces/libanjuta-interfaces.la libanjuta-3.la
302 IAnjuta_3_0_gir_FILES = $(ianjuta_introspection_sources)
303 IAnjuta_3_0_gir_SCANNERFLAGS = --add-include-path=$(top_srcdir)/libanjuta/ --symbol-prefix=ianjuta --c-include=libanjuta/interfaces/libanjuta-interfaces.h
304 INTROSPECTION_GIRS += IAnjuta-3.0.gir
306 girdir = $(datadir)/gir-1.0
307 gir_DATA = $(INTROSPECTION_GIRS)
309 typelibdir = $(libdir)/girepository-1.0
310 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
312 CLEANFILES = $(gir_DATA) $(typelib_DATA)
313 endif
316 -include $(top_srcdir)/git.mk