Fix a Gtk warning when checking path input in the log viewer.
[anjuta-git-plugin.git] / libanjuta / Makefile.am
blob66d87bb0e69e93bedef86e9dfea92dbd5be32bb5
2 SUBDIRS = interfaces 
4 AM_CPPFLAGS = \
5         $(WARN_CFLAGS) \
6         $(DEPRECATED_FLAGS) \
7         $(GNOME_UI_CFLAGS) \
8         $(GLADE_CFLAGS) \
9         $(LIBXML_CFLAGS) \
10         $(GNOMEVFS_CFAGS) \
11         -I$(top_srcdir) \
12         -DDATADIR="\"$(datadir)\"" \
13         -DPACKAGE_PIXMAPS_DIR="\"$(datadir)/pixmaps/$(PACKAGE)\"" \
14         -DPACKAGE_DATA_DIR="\"$(datadir)/$(PACKAGE)\"" \
15         -DPACKAGE_HELP_DIR="\"$(datadir)/gnome/help/$(PACKAGE)\"" \
16         -DPACKAGE_DOC_DIR="\"$(datadir)/doc/$(PACKAGE)\"" \
17         -DG_LOG_DOMAIN=\"libanjuta\"
19 lib_LTLIBRARIES = libanjuta.la 
20 libanjuta_la_LDFLAGS = $(ANJUTA_LDFLAGS) 
21 libanjuta_la_LIBADD = \
22         interfaces/libanjuta-interfaces.la \
23         $(GNOME_UI_LIBS) \
24         $(GLADE_LIBS)
26 libanjuta_la_SOURCES= \
27         anjuta-enum-types.h \
28         anjuta-enum-types.c \
29         anjuta-marshal.c \
30         anjuta-shell.c \
31         anjuta-status.c \
32         anjuta-encodings.c \
33         anjuta-convert.c \
34         anjuta-message-area.c \
35         anjuta-preferences-dialog.c \
36         anjuta-preferences.c \
37         anjuta-plugin.c \
38         anjuta-plugin-handle.h \
39         anjuta-plugin-handle.c \
40         anjuta-plugin-description.c \
41         anjuta-plugin-manager.c \
42         anjuta-profile.c \
43         anjuta-profile-manager.c \
44         anjuta-ui.c \
45         anjuta-launcher.c \
46         anjuta-utils.c \
47         anjuta-utils-priv.h \
48         anjuta-session.c \
49         anjuta-save-prompt.c \
50         anjuta-serializer.c \
51         resources.c \
52         resources.h \
53         anjuta-c-plugin-factory.c \
54         anjuta-c-plugin-factory.h \
55         anjuta-c-module.c \
56         anjuta-c-module.h \
57         cell-renderer-captioned-image.c \
58         cell-renderer-captioned-image.h \
59         e-splash.h \
60         e-splash.c \
61         anjuta-error.c \
62         anjuta-error.h \
63         anjuta-vcs-status-tree-view.c \
64         anjuta-vcs-status-tree-view.h \
65         anjuta-widgets.c \
66         anjuta-widgets.h \
67         anjuta-command.c \
68         anjuta-command.h \
69         anjuta-async-command.c \
70         anjuta-async-command.h \
71         anjuta-sync-command.c \
72         anjuta-sync-command.h
73         anjuta-message-area.h
75 if HAVE_PLUGIN_GLADE
77 # For now install in our own prefix
78 # gladeanjutadir = @GLADE_PLUGINS_PATH@
80 gladeanjutadir = $(libdir)/glade3/modules
82 gladeanjuta_LTLIBRARIES = libgladeanjuta.la
83 libgladeanjuta_la_SOURCES = anjuta-glade-catalog.c
84 libgladeanjuta_la_LDFLAGS = $(ANJUTA_LDFLAGS) -module -avoid-version
85 libgladeanjuta_la_LIBADD = \
86         libanjuta.la \
87         $(GLADE_LIBS)
89 # For now install in our own prefix
90 # catalogdir = @GLADE_CATALOG_PATH@
92 catalogdir = $(datadir)/glade3/catalogs
93 catalog_DATA = anjuta-glade.xml
95 endif
97 libanjutaincludedir=$(includedir)/libanjuta-1.0/libanjuta
99 libanjuta_include = \
100         libanjuta.h \
101         anjuta-debug.h \
102         anjuta-shell.h \
103         anjuta-status.h \
104         anjuta-encodings.h \
105         anjuta-convert.h \
106         anjuta-message-area.h \
107         anjuta-plugin.h \
108         anjuta-plugin-description.h \
109         anjuta-plugin-manager.h \
110         anjuta-plugin-handle.h \
111         anjuta-profile.h \
112         anjuta-profile-manager.h \
113         anjuta-marshal.h \
114         anjuta-utils.h \
115         anjuta-preferences-dialog.h \
116         anjuta-preferences.h \
117         anjuta-ui.h \
118         anjuta-launcher.h \
119         anjuta-session.h \
120         anjuta-save-prompt.h \
121         anjuta-serializer.h \
122         anjuta-error.h \
123         resources.h \
124         anjuta-vcs-status-tree-view.h \
125         anjuta-command.h \
126         anjuta-async-command.h \
127         anjuta-sync-command.h
129 libanjutainclude_HEADERS = \
130         $(libanjuta_include) \
131         anjuta-enum-types.h
133 BUILT_SOURCES=anjuta-marshal.c anjuta-marshal.h  anjuta-enum-types.h anjuta-enum-types.c
135 anjuta-marshal.h: anjuta-marshal.list
136         @GLIB_GENMARSHAL@ \
137                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --header > xgen-gmc \
138         && cp xgen-gmc $(@F) \
139         && rm -f xgen-gmc
141 anjuta-marshal.c: anjuta-marshal.h anjuta-marshal.list
142         echo "#include \"anjuta-marshal.h\"" > xgenc-gmc \
143         && @GLIB_GENMARSHAL@ \
144                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --body >> xgenc-gmc \
145         && cp xgenc-gmc $(@F) \
146         && rm -f xgenc-gmc
148 anjuta-enum-types.h: stamp-anjuta-enum-types.h
149         @true
150 stamp-anjuta-enum-types.h: Makefile $(libanjuta_include) anjuta-enum-types.c
151         ( cd $(srcdir) && $(GLIB_MKENUMS) \
152                         --fhead "#ifndef __ANJUTA_ENUM_TYPES_H__\n#define __ANJUTA_ENUM_TYPES_H__\n\n#include <libanjuta/libanjuta.h>\n\nG_BEGIN_DECLS\n" \
153                         --fprod "/* enumerations from \"@filename@\" */\n" \
154                         --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define ANJUTA_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
155                         --ftail "G_END_DECLS\n\n#endif /* __ANJUTA_ENUM_TYPES_H__ */" \
156                 $(libanjuta_include) ) >> xgen-geth \
157         && (cmp -s xgen-geth anjuta-enum-types.h || cp xgen-geth anjuta-enum-types.h ) \
158         && rm -f xgen-geth \
159         && echo timestamp > $(@F)
161 anjuta-enum-types.c: Makefile
162         ( cd $(srcdir) && $(GLIB_MKENUMS) \
163                         --fhead "#include \"anjuta-enum-types.h\"\n" \
164                         --fprod "\n/* enumerations from \"@filename@\" */" \
165                         --ftail "\n#define __ANJUTA_ENUM_TYPES_C__\n" \
166                         --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[] = {" \
167                         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
168                         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n  }\n  return etype;\n}\n" \
169                 $(libanjuta_include) ) > xgen-getc \
170         && cp xgen-getc anjuta-enum-types.c  \
171         && rm -f xgen-getc
174 pkgconfigdir = $(libdir)/pkgconfig
175 pkgconfig_DATA = libanjuta-1.0.pc
177 EXTRA_DIST = \
178         $(libanjutainclude_HEADERS) \
179         libanjuta-1.0.pc.in \
180         anjuta-marshal.list \
181         $(catalog_DATA)