* plugins/document-manager/plugin.c:
[anjuta-git-plugin.git] / libanjuta / Makefile.am
blob23404206a88e5207886cad66803e998a0dc3a5ec
2 SUBDIRS = interfaces
4 INCLUDES = \
5         $(WARN_CFLAGS) \
6         $(DEPRECATED_FLAGS) \
7         $(GNOME_UI_CFLAGS) \
8         $(GLADE_CFLAGS) \
9         $(LIBXML_CFLAGS) \
10         $(GNOMEVFS_CFAGS) \
11         -I$(top_srcdir) \
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="\"$(datadir)/doc/$(PACKAGE)\"" \
16         -DPACKAGE_DATA_DIR="\"$(datadir)/$(PACKAGE)\"" \
17         -DG_LOG_DOMAIN=\"libanjuta\"
19 lib_LTLIBRARIES=libanjuta.la
20 libanjuta_la_LDFLAGS = $(ANJUTA_LDFLAGS)
21 libanjuta_la_LIBADD = \
22         $(top_builddir)/libegg/libanjuta-egg.la \
23         $(top_builddir)/libanjuta/interfaces/libanjuta-interfaces.la \
24         $(GNOME_UI_LIBS) \
25         $(GLADE_LIBS)
27 libanjuta_la_SOURCES= \
28         anjuta-enum-types.h \
29         anjuta-enum-types.c \
30         anjuta-marshal.c \
31         anjuta-shell.c \
32         anjuta-status.c \
33         anjuta-encodings.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-children.c \
48         anjuta-session.c \
49         anjuta-save-prompt.c \
50         anjuta-serializer.c \
51         resources.c \
52         resources.h \
53         anjuta-glue-plugin.c \
54         anjuta-glue-factory.c \
55         anjuta-glue-c.h \
56         anjuta-glue-c.c \
57         anjuta-glue-cpp.h \
58         anjuta-glue-cpp.c \
59         cell-renderer-captioned-image.c \
60         cell-renderer-captioned-image.h \
61         e-splash.h \
62         e-splash.c \
63         anjuta-error.c \
64         anjuta-error.h
66 libanjutaincludedir=$(includedir)/libanjuta-1.0/libanjuta
68 libanjuta_include = \
69         libanjuta.h \
70         anjuta-debug.h \
71         anjuta-shell.h \
72         anjuta-status.h \
73         anjuta-encodings.h \
74         anjuta-plugin.h \
75         anjuta-plugin-description.h \
76         anjuta-plugin-manager.h \
77         anjuta-profile.h \
78         anjuta-profile-manager.h \
79         anjuta-marshal.h \
80         anjuta-utils.h \
81         anjuta-preferences-dialog.h \
82         anjuta-preferences.h \
83         anjuta-ui.h \
84         anjuta-launcher.h \
85         anjuta-children.h \
86         anjuta-session.h \
87         anjuta-save-prompt.h \
88         anjuta-serializer.h \
89         anjuta-glue-plugin.h \
90         anjuta-glue-factory.h \
91         anjuta-error.h \
92         resources.h
94 libanjutainclude_HEADERS = \
95         $(libanjuta_include) \
96         anjuta-enum-types.h
98 BUILT_SOURCES=anjuta-marshal.c anjuta-marshal.h  anjuta-enum-types.h anjuta-enum-types.c
100 anjuta-marshal.h: anjuta-marshal.list
101         @GLIB_GENMARSHAL@ \
102                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --header > xgen-gmc \
103         && cp xgen-gmc $(@F) \
104         && rm -f xgen-gmc
106 anjuta-marshal.c: anjuta-marshal.h anjuta-marshal.list
107         echo "#include \"anjuta-marshal.h\"" > xgen-gmc \
108         && @GLIB_GENMARSHAL@ \
109                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --body >> xgen-gmc \
110         && cp xgen-gmc $(@F) \
111         && rm -f xgen-gmc
113 anjuta-enum-types.h: stamp-anjuta-enum-types.h
114         @true
115 stamp-anjuta-enum-types.h: Makefile $(libanjuta_include) anjuta-enum-types.c
116         ( cd $(srcdir) && $(GLIB_MKENUMS) \
117                         --fhead "#ifndef __ANJUTA_ENUM_TYPES_H__\n#define __ANJUTA_ENUM_TYPES_H__\n\n#include <libanjuta/libanjuta.h>\n\nG_BEGIN_DECLS\n" \
118                         --fprod "/* enumerations from \"@filename@\" */\n" \
119                         --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define ANJUTA_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
120                         --ftail "G_END_DECLS\n\n#endif /* __ANJUTA_ENUM_TYPES_H__ */" \
121                 $(libanjuta_include) ) >> xgen-geth \
122         && (cmp -s xgen-geth anjuta-enum-types.h || cp xgen-geth anjuta-enum-types.h ) \
123         && rm -f xgen-geth \
124         && echo timestamp > $(@F)
126 anjuta-enum-types.c: Makefile
127         ( cd $(srcdir) && $(GLIB_MKENUMS) \
128                         --fhead "#include \"anjuta-enum-types.h\"\n" \
129                         --fprod "\n/* enumerations from \"@filename@\" */" \
130                         --ftail "\n#define __ANJUTA_ENUM_TYPES_C__\n" \
131                         --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[] = {" \
132                         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
133                         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n  }\n  return etype;\n}\n" \
134                 $(libanjuta_include) ) > xgen-getc \
135         && cp xgen-getc anjuta-enum-types.c  \
136         && rm -f xgen-getc
139 pkgconfigdir = $(libdir)/pkgconfig
140 pkgconfig_DATA = libanjuta-1.0.pc
142 EXTRA_DIST = \
143         $(libanjutainclude_HEADERS) \
144         libanjuta-1.0.pc.in \
145         anjuta-marshal.list