libanjuta: Stylistic fixes to cell renderer implementation
[anjuta.git] / libanjuta / Makefile.am
blob94c07c12ecd1406765e540bce783e2e5e9741549
2 SUBDIRS = interfaces 
4 AM_CPPFLAGS = \
5         -I$(top_srcdir) \
6         -I . \
7         $(WARN_CFLAGS) \
8         $(DEPRECATED_FLAGS) \
9         $(ANJUTA_CFLAGS) \
10         $(XML_CFLAGS) \
11         -DDATADIR="\"$(datadir)\"" \
12         -DPACKAGE_PIXMAPS_DIR="\"$(datadir)/pixmaps/$(PACKAGE)\"" \
13         -DPACKAGE_DATA_DIR="\"$(datadir)/$(PACKAGE)\"" \
14         -DPACKAGE_HELP_DIR="\"$(datadir)/gnome/help/$(PACKAGE)\"" \
15         -DPACKAGE_DOC_DIR="\"$(docdir)\"" \
16         -DG_LOG_DOMAIN=\"libanjuta\"
18 lib_LTLIBRARIES = libanjuta-3.la 
19 libanjuta_3_la_LDFLAGS = $(ANJUTA_LDFLAGS) 
20 libanjuta_3_la_LIBADD = \
21         interfaces/libanjuta-interfaces.la \
22         $(ANJUTA_LIBS) \
23         $(XML_LIBS)
25 libanjuta_3_la_SOURCES= \
26         anjuta-enum-types.h \
27         anjuta-enum-types.c \
28         anjuta-marshal.h \
29         anjuta-marshal.c \
30         anjuta-shell.c \
31         anjuta-shell.h \
32         anjuta-status.c \
33         anjuta-status.h \
34         anjuta-encodings.c \
35         anjuta-encodings.h \
36         anjuta-convert.c \
37         anjuta-convert.h \
38         anjuta-preferences-dialog.c \
39         anjuta-preferences-dialog.h \
40         anjuta-preferences.c \
41         anjuta-preferences.h \
42         anjuta-plugin.c \
43         anjuta-plugin.h \
44         anjuta-plugin-handle.h \
45         anjuta-plugin-handle.c \
46         anjuta-plugin-description.c \
47         anjuta-plugin-description.h \
48         anjuta-plugin-manager.c \
49         anjuta-plugin-manager.h \
50         anjuta-profile.c \
51         anjuta-profile.h \
52         anjuta-profile-manager.c \
53         anjuta-profile-manager.h \
54         anjuta-ui.c \
55         anjuta-ui.h \
56         anjuta-launcher.c \
57         anjuta-launcher.h \
58         anjuta-utils.c \
59         anjuta-utils.h \
60         anjuta-utils-priv.h \
61         anjuta-session.c \
62         anjuta-session.h \
63         anjuta-save-prompt.c \
64         anjuta-save-prompt.h \
65         anjuta-serializer.c \
66         anjuta-serializer.h \
67         resources.c \
68         resources.h \
69         anjuta-c-plugin-factory.c \
70         anjuta-c-plugin-factory.h \
71         anjuta-c-module.c \
72         anjuta-c-module.h \
73         cell-renderer-captioned-image.c \
74         cell-renderer-captioned-image.h \
75         e-splash.h \
76         e-splash.c \
77         anjuta-vcs-status.h \
78         anjuta-vcs-status-tree-view.c \
79         anjuta-vcs-status-tree-view.h \
80         anjuta-command.c \
81         anjuta-command.h \
82         anjuta-async-command.c \
83         anjuta-async-command.h \
84         anjuta-sync-command.c \
85         anjuta-sync-command.h \
86         anjuta-async-notify.h \
87         anjuta-async-notify.c \
88         anjuta-debug.c \
89         anjuta-debug.h \
90         gbf-project.c \
91         gbf-project.h \
92         anjuta-command-queue.c \
93         anjuta-command-queue.h \
94         anjuta-project.c \
95         anjuta-project.h \
96         anjuta-tabber.c \
97         anjuta-tabber.h \
98         anjuta-pkg-config-chooser.h \
99         anjuta-pkg-config-chooser.c
102 if HAVE_PLUGIN_GLADE
104 # For now install in our own prefix
105 # gladeanjutadir = @GLADE_PLUGINS_PATH@
107 gladeanjutadir = $(libdir)/glade3/modules
109 gladeanjuta_LTLIBRARIES = libgladeanjuta-3.la
110 libgladeanjuta_3_la_SOURCES = anjuta-glade-catalog.c
111 libgladeanjuta_3_la_LDFLAGS = $(ANJUTA_LDFLAGS) -module -avoid-version
112 libgladeanjuta_3_la_LIBADD = \
113         libanjuta-3.la \
114         $(GLADE_LIBS)
116 # For now install in our own prefix
117 # catalogdir = @GLADE_CATALOG_PATH@
119 catalogdir = $(datadir)/glade3/catalogs
120 catalog_DATA = anjuta-glade.xml
122 endif
124 libanjutaincludedir=$(includedir)/libanjuta-3.0/libanjuta
126 libanjuta_include = \
127         libanjuta.h \
128         anjuta-debug.h \
129         anjuta-shell.h \
130         anjuta-status.h \
131         anjuta-encodings.h \
132         anjuta-convert.h \
133         anjuta-plugin.h \
134         anjuta-plugin-description.h \
135         anjuta-plugin-manager.h \
136         anjuta-plugin-handle.h \
137         anjuta-profile.h \
138         anjuta-profile-manager.h \
139         anjuta-utils.h \
140         anjuta-preferences-dialog.h \
141         anjuta-preferences.h \
142         anjuta-ui.h \
143         anjuta-launcher.h \
144         anjuta-session.h \
145         anjuta-save-prompt.h \
146         anjuta-serializer.h \
147         resources.h \
148         anjuta-vcs-status-tree-view.h \
149         anjuta-vcs-status.h \
150         anjuta-command.h \
151         anjuta-async-command.h \
152         anjuta-async-notify.h \
153         anjuta-sync-command.h \
154         anjuta-version.h \
155         gbf-project.h \
156         anjuta-project.h \
157         anjuta-command-queue.h \
158         anjuta-tabber.h \
159         anjuta-pkg-config-chooser.h
161 libanjutainclude_HEADERS = \
162         $(libanjuta_include) \
163         anjuta-enum-types.h \
164         anjuta-marshal.h
166 BUILT_SOURCES=anjuta-marshal.c anjuta-marshal.h  anjuta-enum-types.h anjuta-enum-types.c
168 anjuta-marshal.h: anjuta-marshal.list
169         $(AM_V_GEN)@GLIB_GENMARSHAL@ \
170                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --header > xgen-gmc \
171         && cp xgen-gmc $(@F) \
172         && rm -f xgen-gmc
174 anjuta-marshal.c: anjuta-marshal.h anjuta-marshal.list
175         $(AM_V_GEN)echo "#include \"anjuta-marshal.h\"" > xgenc-gmc \
176         && @GLIB_GENMARSHAL@ \
177                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --body >> xgenc-gmc \
178         && cp xgenc-gmc $(@F) \
179         && rm -f xgenc-gmc
181 anjuta-enum-types.h: stamp-anjuta-enum-types.h $(libanjuta_include)
182         @true
183 stamp-anjuta-enum-types.h: Makefile $(libanjuta_include) anjuta-enum-types.c
184         $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) \
185                         --fhead "#ifndef __ANJUTA_ENUM_TYPES_H__\n#define __ANJUTA_ENUM_TYPES_H__\n\n#include <libanjuta/libanjuta.h>\n\nG_BEGIN_DECLS\n" \
186                         --fprod "/* enumerations from \"@filename@\" */\n" \
187                         --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define ANJUTA_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
188                         --ftail "G_END_DECLS\n\n#endif /* __ANJUTA_ENUM_TYPES_H__ */" \
189                 $(libanjuta_include) ) >> xgen-geth \
190         && (cmp -s xgen-geth anjuta-enum-types.h || cp xgen-geth anjuta-enum-types.h ) \
191         && rm -f xgen-geth \
192         && echo timestamp > $(@F)
194 anjuta-enum-types.c: Makefile
195         $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) \
196                         --fhead "#include \"anjuta-enum-types.h\"\n" \
197                         --fprod "\n/* enumerations from \"@filename@\" */" \
198                         --ftail "\n#define __ANJUTA_ENUM_TYPES_C__\n" \
199                         --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[] = {" \
200                         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
201                         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n  }\n  return etype;\n}\n" \
202                 $(libanjuta_include) ) > xgen-getc \
203         && cp xgen-getc anjuta-enum-types.c  \
204         && rm -f xgen-getc
207 pkgconfigdir = $(libdir)/pkgconfig
208 pkgconfig_DATA = libanjuta-3.0.pc
210 EXTRA_DIST = \
211         $(libanjutainclude_HEADERS) \
212         libanjuta-3.0.pc.in \
213         anjuta-marshal.list \
214         $(catalog_DATA)
216 DISTCLEANFILES = \
217   anjuta-enum-types.h \
218   anjuta-enum-types.c \
219   stamp-anjuta-enum-types.h
221 -include $(INTROSPECTION_MAKEFILE)
222 INTROSPECTION_GIRS =
223 INTROSPECTION_SCANNER_ARGS = --add-include-path=$(builddir) -I $(top_builddir) --warn-all
224 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
226 if HAVE_INTROSPECTION
227 anjuta_introspection_sources = $(libanjuta_3_la_SOURCES)
228 ianjuta_introspection_sources = $(srcdir)/interfaces/*.c $(srcdir)/interfaces/*.h
230 Anjuta-3.0.gir: libanjuta-3.la
231 Anjuta_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0
232 Anjuta_3_0_gir_CFLAGS = $(ANJUTA_CFLAGS) $(XML_CFLAGS) -I$(top_srcdir)
233 Anjuta_3_0_gir_LIBS = anjuta-3
234 Anjuta_3_0_gir_FILES = $(anjuta_introspection_sources)
235 Anjuta_3_0_gir_SCANNERFLAGS = --c-include=libanjuta/libanjuta.h
236 INTROSPECTION_GIRS += Anjuta-3.0.gir
238 IAnjuta-3.0.gir: interfaces/libanjuta-interfaces.la libanjuta-3.la Anjuta-3.0.gir
239 IAnjuta_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0 Anjuta-3.0
240 IAnjuta_3_0_gir_CFLAGS = $(ANJUTA_CFLAGS) $(XML_CFLAGS) -I$(top_srcdir)
241 IAnjuta_3_0_gir_LIBS = interfaces/libanjuta-interfaces.la anjuta-3
242 IAnjuta_3_0_gir_FILES = $(ianjuta_introspection_sources)
243 IAnjuta_3_0_gir_SCANNERFLAGS = --add-include-path=$(top_srcdir)/libanjuta/ --symbol-prefix=ianjuta --c-include=libanjuta/interfaces/libanjuta-interfaces.h
244 INTROSPECTION_GIRS += IAnjuta-3.0.gir
246 girdir = $(datadir)/gir-1.0
247 gir_DATA = $(INTROSPECTION_GIRS)
249 typelibdir = $(libdir)/girepository-1.0
250 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
252 CLEANFILES = $(dist_gir_DATA) $(typelib_DATA)
253 endif
256 -include $(top_srcdir)/git.mk