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 \
25 libanjuta_3_la_SOURCES= \
38 anjuta-preferences-dialog.c \
39 anjuta-preferences-dialog.h \
40 anjuta-preferences.c \
41 anjuta-preferences.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 \
52 anjuta-profile-manager.c \
53 anjuta-profile-manager.h \
63 anjuta-save-prompt.c \
64 anjuta-save-prompt.h \
69 anjuta-c-plugin-factory.c \
70 anjuta-c-plugin-factory.h \
73 cell-renderer-captioned-image.c \
74 cell-renderer-captioned-image.h \
78 anjuta-vcs-status-tree-view.c \
79 anjuta-vcs-status-tree-view.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 \
92 anjuta-command-queue.c \
93 anjuta-command-queue.h \
98 anjuta-pkg-config-chooser.h \
99 anjuta-pkg-config-chooser.c
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 = \
116 # For now install in our own prefix
117 # catalogdir = @GLADE_CATALOG_PATH@
119 catalogdir = $(datadir)/glade3/catalogs
120 catalog_DATA = anjuta-glade.xml
124 libanjutaincludedir=$(includedir)/libanjuta-3.0/libanjuta
126 libanjuta_include = \
134 anjuta-plugin-description.h \
135 anjuta-plugin-manager.h \
136 anjuta-plugin-handle.h \
138 anjuta-profile-manager.h \
140 anjuta-preferences-dialog.h \
141 anjuta-preferences.h \
145 anjuta-save-prompt.h \
146 anjuta-serializer.h \
148 anjuta-vcs-status-tree-view.h \
149 anjuta-vcs-status.h \
151 anjuta-async-command.h \
152 anjuta-async-notify.h \
153 anjuta-sync-command.h \
157 anjuta-command-queue.h \
159 anjuta-pkg-config-chooser.h
161 libanjutainclude_HEADERS = \
162 $(libanjuta_include) \
163 anjuta-enum-types.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) \
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) \
181 anjuta-enum-types.h: stamp-anjuta-enum-types.h $(libanjuta_include)
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 ) \
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 \
207 pkgconfigdir = $(libdir)/pkgconfig
208 pkgconfig_DATA = libanjuta-3.0.pc
211 $(libanjutainclude_HEADERS) \
212 libanjuta-3.0.pc.in \
213 anjuta-marshal.list \
217 anjuta-enum-types.h \
218 anjuta-enum-types.c \
219 stamp-anjuta-enum-types.h
221 -include $(INTROSPECTION_MAKEFILE)
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)
256 -include $(top_srcdir)/git.mk