Added AtkMisc class, uprev for gnome-2.17.5, and release.
[platform/upstream/atk.git] / atk / Makefile.am
1 # We set GPATH here; this gives us semantics for GNU make
2 # which are more like other make's VPATH.
3 GPATH = $(srcdir)
4
5 if PLATFORM_WIN32
6 no_undefined = -no-undefined
7 else
8 no_undefined =
9 endif
10
11 INCLUDES = \
12         -I$(top_srcdir)         \
13         -DG_DISABLE_DEPRECATED  \
14         $(DEP_CFLAGS)
15
16 lib_LTLIBRARIES = libatk-1.0.la
17
18 libatk_1_0_la_LDFLAGS =                         \
19         -version-info $(LT_VERSION_INFO)        \
20         $(no_undefined)
21 libatk_1_0_la_LIBADD = $(DEP_LIBS)
22
23 libatk_1_0_la_SOURCES =         \
24         atkaction.c             \
25         atkcomponent.c          \
26         atkdocument.c           \
27         atkeditabletext.c       \
28         atkgobjectaccessible.c  \
29         atkhyperlink.c          \
30         atkhyperlinkimpl.c      \
31         atkhypertext.c          \
32         atkimage.c              \
33         atknoopobject.c         \
34         atknoopobjectfactory.c  \
35         atkobject.c             \
36         atkobjectfactory.c      \
37         atkregistry.c           \
38         atkrelation.c           \
39         atkrelationset.c        \
40         atkselection.c          \
41         atkstate.c              \
42         atkstateset.c           \
43         atkstreamablecontent.c  \
44         atktable.c              \
45         atktext.c               \
46         atkutil.c               \
47         atkmisc.c               \
48         atkvalue.c              \
49         atk-enum-types.c
50
51 libatkincludedir=$(includedir)/atk-1.0/atk
52
53 atk_headers = \
54         atk.h                   \
55         atkaction.h             \
56         atkcomponent.h          \
57         atkdocument.h           \
58         atkeditabletext.h       \
59         atkgobjectaccessible.h  \
60         atkhyperlink.h          \
61         atkhyperlinkimpl.h      \
62         atkhypertext.h          \
63         atknoopobject.h         \
64         atknoopobjectfactory.h  \
65         atkobject.h             \
66         atkobjectfactory.h      \
67         atkimage.h              \
68         atkregistry.h           \
69         atkrelation.h           \
70         atkrelationtype.h       \
71         atkrelationset.h        \
72         atkselection.h          \
73         atkstate.h              \
74         atkstateset.h           \
75         atkstreamablecontent.h  \
76         atktable.h              \
77         atktext.h               \
78         atkutil.h               \
79         atkmisc.h               \
80         atkvalue.h
81
82 libatkinclude_HEADERS =         \
83         $(atk_headers)          \
84         atk-enum-types.h
85
86
87 # ---------- Handle built sources ----------
88
89 BUILT_SOURCES = atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c
90
91 atkmarshal.h: stamp-atkmarshal.h
92         @true
93 stamp-atkmarshal.h: @REBUILD@ atkmarshal.list
94         $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh \
95         && (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
96         && rm -f xgen-gmh xgen-gmh~                                     \
97         && echo timestamp > $(@F)
98
99 atkmarshal.c: stamp-atkmarshal.c
100         @true
101 stamp-atkmarshal.c: @REBUILD@ atkmarshal.list
102         $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc \
103         && (cmp -s xgen-gmc atkmarshal.c || cp xgen-gmc atkmarshal.c) \
104         && rm -f xgen-gmc xgen-gmc~                                     \
105         && echo timestamp > $(@F)
106
107 atk-enum-types.h: s-enum-types-h
108         @true
109 s-enum-types-h: @REBUILD@ $(atk_headers) Makefile
110         ( cd $(srcdir) && glib-mkenums \
111                         --fhead "#ifndef __ATK_ENUM_TYPES_H__\n#define __ATK_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
112                         --fprod "/* enumerations from \"@filename@\" */\n" \
113                         --vhead "GType @enum_name@_get_type (void);\n#define ATK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
114                         --ftail "G_END_DECLS\n\n#endif /* __ATK_ENUM_TYPES_H__ */" \
115                 $(atk_headers) ) > tmp-atk-enum-types.h \
116         && (cmp -s tmp-atk-enum-types.h atk-enum-types.h || cp tmp-atk-enum-types.h atk-enum-types.h ) \
117         && rm -f tmp-atk-enum-types.h \
118         && echo timestamp > $(@F)
119
120 atk-enum-types.c: s-enum-types-c
121         @true
122 s-enum-types-c: @REBUILD@ $(atk_headers) Makefile
123         ( cd $(srcdir) && glib-mkenums \
124                         --fhead "#include <atk.h>" \
125                         --fprod "\n/* enumerations from \"@filename@\" */" \
126                         --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[] = {"     \
127                         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
128                         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
129                 $(atk_headers) ) > tmp-atk-enum-types.c \
130         && (cmp -s tmp-atk-enum-types.c atk-enum-types.c || cp tmp-atk-enum-types.c atk-enum-types.c ) \
131         && rm -f tmp-atk-enum-types.c \
132         && echo timestamp > $(@F)
133
134 # ---------- Win32 stuff ----------
135
136 if OS_WIN32
137 libatk_1_0_la_LDFLAGS += -export-symbols $(srcdir)/atk.def -no-undefined -Wl,atk-win32-res.o
138 libatk_1_0_la_DEPENDENCIES = atk-win32-res.o
139
140 install-def-file:
141         $(INSTALL) $(srcdir)/atk.def $(DESTDIR)$(libdir)/atk-1.0.def
142 uninstall-def-file:
143         -rm $(DESTDIR)$(libdir)/atk-1.0.def
144 else
145 install-def-file:
146 uninstall-def-file:
147 endif
148
149 atk-win32-res.o: atk.rc
150         $(WINDRES) $< $@
151
152 if MS_LIB_AVAILABLE
153 noinst_DATA = atk-$(ATK_API_VERSION).lib
154
155 install-ms-lib:
156         $(INSTALL) atk-$(ATK_API_VERSION).lib $(DESTDIR)$(libdir)
157
158 uninstall-ms-lib:
159         -rm $(DESTDIR)$(libdir)/atk-$(ATK_API_VERSION).lib
160 else
161 install-ms-lib:
162 uninstall-ms-lib:
163 endif
164
165 atk-$(ATK_API_VERSION).lib: libatk-$(ATK_API_VERSION).la atk.def
166         lib -name:libatk-$(ATK_API_VERSION)-$(LT_CURRENT_MINUS_AGE).dll -def:atk.def -out:$@
167
168
169 EXTRA_DIST = atk.def atk.rc.in atkmarshal.list atkintl.h
170
171 DISTCLEANFILES = \
172   stamp-atkmarshal.h stamp-atkmarshal.c \
173   s-enum-types-h s-enum-types-c
174
175 distclean-local:
176         if test $(srcdir) = .; then :; else \
177           rm -f atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c; \
178         fi
179
180 install-data-local: install-ms-lib install-def-file
181
182 uninstall-local: uninstall-ms-lib uninstall-def-file