Implement support for listing and merging branches.
[anjuta-git-plugin.git] / libanjuta / Makefile.am
blob1f9a14bf6981dd7a53b7e579a1658a67c950ff38
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         $(top_builddir)/libanjuta/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-preferences-dialog.c \
35         anjuta-preferences.c \
36         anjuta-plugin.c \
37         anjuta-plugin-handle.h \
38         anjuta-plugin-handle.c \
39         anjuta-plugin-description.c \
40         anjuta-plugin-manager.c \
41         anjuta-profile.c \
42         anjuta-profile-manager.c \
43         anjuta-ui.c \
44         anjuta-launcher.c \
45         anjuta-utils.c \
46         anjuta-utils-priv.h \
47         anjuta-session.c \
48         anjuta-save-prompt.c \
49         anjuta-serializer.c \
50         resources.c \
51         resources.h \
52         anjuta-c-plugin-factory.c \
53         anjuta-c-plugin-factory.h \
54         anjuta-c-module.c \
55         anjuta-c-module.h \
56         cell-renderer-captioned-image.c \
57         cell-renderer-captioned-image.h \
58         e-splash.h \
59         e-splash.c \
60         anjuta-error.c \
61         anjuta-error.h \
62         anjuta-vcs-status-tree-view.c \
63         anjuta-vcs-status-tree-view.h \
64         anjuta-widgets.c \
65         anjuta-widgets.h \
66         anjuta-command.c \
67         anjuta-command.h \
68         anjuta-async-command.c \
69         anjuta-async-command.h \
70         anjuta-sync-command.c \
71         anjuta-sync-command.h
73 if HAVE_PLUGIN_GLADE
75 # For now install in our own prefix
76 # gladeanjutadir = @GLADE_PLUGINS_PATH@
78 gladeanjutadir = $(libdir)/glade3/modules
80 gladeanjuta_LTLIBRARIES = libgladeanjuta.la
81 libgladeanjuta_la_DEPENDENCIES = libanjuta.la
82 libgladeanjuta_la_SOURCES = anjuta-glade-catalog.c
83 libgladeanjuta_la_LDFLAGS = $(ANJUTA_LDFLAGS) -module -avoid-version
84 libgladeanjuta_la_LIBADD = $(top_builddir)/libanjuta/libanjuta.la \
85                                                    $(GLADE_LIBS)
87 # For now install in our own prefix
88 # catalogdir = @GLADE_CATALOG_PATH@
90 catalogdir = $(datadir)/glade3/catalogs
91 catalog_DATA = anjuta-glade.xml
93 endif
95 libanjutaincludedir=$(includedir)/libanjuta-1.0/libanjuta
97 libanjuta_include = \
98         libanjuta.h \
99         anjuta-debug.h \
100         anjuta-shell.h \
101         anjuta-status.h \
102         anjuta-encodings.h \
103         anjuta-convert.h \
104         anjuta-plugin.h \
105         anjuta-plugin-description.h \
106         anjuta-plugin-manager.h \
107         anjuta-plugin-handle.h \
108         anjuta-profile.h \
109         anjuta-profile-manager.h \
110         anjuta-marshal.h \
111         anjuta-utils.h \
112         anjuta-preferences-dialog.h \
113         anjuta-preferences.h \
114         anjuta-ui.h \
115         anjuta-launcher.h \
116         anjuta-session.h \
117         anjuta-save-prompt.h \
118         anjuta-serializer.h \
119         anjuta-error.h \
120         resources.h \
121         anjuta-vcs-status-tree-view.h \
122         anjuta-command.h \
123         anjuta-async-command.h \
124         anjuta-sync-command.h
126 libanjutainclude_HEADERS = \
127         $(libanjuta_include) \
128         anjuta-enum-types.h
130 BUILT_SOURCES=anjuta-marshal.c anjuta-marshal.h  anjuta-enum-types.h anjuta-enum-types.c
132 anjuta-marshal.h: anjuta-marshal.list
133         @GLIB_GENMARSHAL@ \
134                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --header > xgen-gmc \
135         && cp xgen-gmc $(@F) \
136         && rm -f xgen-gmc
138 anjuta-marshal.c: anjuta-marshal.h anjuta-marshal.list
139         echo "#include \"anjuta-marshal.h\"" > xgenc-gmc \
140         && @GLIB_GENMARSHAL@ \
141                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --body >> xgenc-gmc \
142         && cp xgenc-gmc $(@F) \
143         && rm -f xgenc-gmc
145 anjuta-enum-types.h: stamp-anjuta-enum-types.h
146         @true
147 stamp-anjuta-enum-types.h: Makefile $(libanjuta_include) anjuta-enum-types.c
148         ( cd $(srcdir) && $(GLIB_MKENUMS) \
149                         --fhead "#ifndef __ANJUTA_ENUM_TYPES_H__\n#define __ANJUTA_ENUM_TYPES_H__\n\n#include <libanjuta/libanjuta.h>\n\nG_BEGIN_DECLS\n" \
150                         --fprod "/* enumerations from \"@filename@\" */\n" \
151                         --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define ANJUTA_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
152                         --ftail "G_END_DECLS\n\n#endif /* __ANJUTA_ENUM_TYPES_H__ */" \
153                 $(libanjuta_include) ) >> xgen-geth \
154         && (cmp -s xgen-geth anjuta-enum-types.h || cp xgen-geth anjuta-enum-types.h ) \
155         && rm -f xgen-geth \
156         && echo timestamp > $(@F)
158 anjuta-enum-types.c: Makefile
159         ( cd $(srcdir) && $(GLIB_MKENUMS) \
160                         --fhead "#include \"anjuta-enum-types.h\"\n" \
161                         --fprod "\n/* enumerations from \"@filename@\" */" \
162                         --ftail "\n#define __ANJUTA_ENUM_TYPES_C__\n" \
163                         --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[] = {" \
164                         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
165                         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n  }\n  return etype;\n}\n" \
166                 $(libanjuta_include) ) > xgen-getc \
167         && cp xgen-getc anjuta-enum-types.c  \
168         && rm -f xgen-getc
171 pkgconfigdir = $(libdir)/pkgconfig
172 pkgconfig_DATA = libanjuta-1.0.pc
174 EXTRA_DIST = \
175         $(libanjutainclude_HEADERS) \
176         libanjuta-1.0.pc.in \
177         anjuta-marshal.list \
178         $(catalog_DATA)