Merge commit 'git-svn'
[anjuta-git-plugin.git] / libanjuta / Makefile.am
blobcb233778486dcab9f2e8bdb3a7040b42a7c36e1a
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
125 libanjutainclude_HEADERS = \
126         $(libanjuta_include) \
127         anjuta-enum-types.h
129 BUILT_SOURCES=anjuta-marshal.c anjuta-marshal.h  anjuta-enum-types.h anjuta-enum-types.c
131 anjuta-marshal.h: anjuta-marshal.list
132         @GLIB_GENMARSHAL@ \
133                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --header > xgen-gmc \
134         && cp xgen-gmc $(@F) \
135         && rm -f xgen-gmc
137 anjuta-marshal.c: anjuta-marshal.h anjuta-marshal.list
138         echo "#include \"anjuta-marshal.h\"" > xgenc-gmc \
139         && @GLIB_GENMARSHAL@ \
140                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --body >> xgenc-gmc \
141         && cp xgenc-gmc $(@F) \
142         && rm -f xgenc-gmc
144 anjuta-enum-types.h: stamp-anjuta-enum-types.h
145         @true
146 stamp-anjuta-enum-types.h: Makefile $(libanjuta_include) anjuta-enum-types.c
147         ( cd $(srcdir) && $(GLIB_MKENUMS) \
148                         --fhead "#ifndef __ANJUTA_ENUM_TYPES_H__\n#define __ANJUTA_ENUM_TYPES_H__\n\n#include <libanjuta/libanjuta.h>\n\nG_BEGIN_DECLS\n" \
149                         --fprod "/* enumerations from \"@filename@\" */\n" \
150                         --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define ANJUTA_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
151                         --ftail "G_END_DECLS\n\n#endif /* __ANJUTA_ENUM_TYPES_H__ */" \
152                 $(libanjuta_include) ) >> xgen-geth \
153         && (cmp -s xgen-geth anjuta-enum-types.h || cp xgen-geth anjuta-enum-types.h ) \
154         && rm -f xgen-geth \
155         && echo timestamp > $(@F)
157 anjuta-enum-types.c: Makefile
158         ( cd $(srcdir) && $(GLIB_MKENUMS) \
159                         --fhead "#include \"anjuta-enum-types.h\"\n" \
160                         --fprod "\n/* enumerations from \"@filename@\" */" \
161                         --ftail "\n#define __ANJUTA_ENUM_TYPES_C__\n" \
162                         --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[] = {" \
163                         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
164                         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n  }\n  return etype;\n}\n" \
165                 $(libanjuta_include) ) > xgen-getc \
166         && cp xgen-getc anjuta-enum-types.c  \
167         && rm -f xgen-getc
170 pkgconfigdir = $(libdir)/pkgconfig
171 pkgconfig_DATA = libanjuta-1.0.pc
173 EXTRA_DIST = \
174         $(libanjutainclude_HEADERS) \
175         libanjuta-1.0.pc.in \
176         anjuta-marshal.list \
177         $(catalog_DATA)