Add new files atk/atkgobjectaccessible.c atk/atkgobjectaccessible.h
[platform/upstream/atk.git] / atk / Makefile.am
1 EXTRA_DIST = atk.def
2 if OS_WIN32
3 export_symbols = -export-symbols atk.def
4
5 install-libtool-import-lib:
6         $(INSTALL) .libs/libatk.dll.a $(DESTDIR)$(libdir)
7 uninstall-libtool-import-lib:
8         -rm $(DESTDIR)$(libdir)/libatk.dll.a
9 else
10 install-libtool-import-lib:
11 uninstall-libtool-import-lib:
12 endif
13
14 lib_LTLIBRARIES = libatk.la
15
16 if MS_LIB_AVAILABLE
17 noinst_DATA = atk.lib
18
19 install-ms-lib:
20         $(INSTALL) atk.lib $(DESTDIR)$(libdir)
21
22 uninstall-ms-lib:
23         -rm $(DESTDIR)$(libdir)/atk.lib
24 else
25 install-ms-lib:
26 uninstall-ms-lib:
27 endif
28
29 atk_built_headers = atk-enum-types.h
30 atk_built_cfiles = atk-enum-types.c
31
32 $(OBJECTS): $(atk_built_headers)
33
34 libatk_la_SOURCES =             \
35         atkaction.c             \
36         atkcomponent.c          \
37         atkdocument.c           \
38         atkeditabletext.c       \
39         atkgobjectaccessible.c  \
40         atkhyperlink.c          \
41         atkhypertext.c          \
42         atkimage.c              \
43         atknoopobject.c         \
44         atknoopobjectfactory.c  \
45         atkobject.c             \
46         atkobjectfactory.c      \
47         atkregistry.c           \
48         atkrelation.c           \
49         atkrelationset.c        \
50         atkselection.c          \
51         atkstate.c              \
52         atkstateset.c           \
53         atkstreamablecontent.c  \
54         atktable.c              \
55         atktext.c               \
56         atkutil.c               \
57         atkvalue.c              \
58         $(atk_built_cfiles)
59
60 EXTRA_DIST += atkmarshal.list
61 MAINTAINERCLEANFILES +=         \
62         atkmarshal.c            \
63         atkmarshal.h            \
64         stamp-atkmarshal.c      \
65         stamp-atkmarshal.h
66
67 INCLUDES = \
68         -I$(top_srcdir)         \
69         -DG_DISABLE_DEPRECATED  \
70         @DEP_CFLAGS@
71
72 LDFLAGS =  \
73         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)    \
74         -no-undefined                                           \
75         $(export_symbols)                                       \
76         @DEP_LIBS@
77
78 libatkincludedir=$(includedir)/atk-1.0/atk
79
80 atk_headers = \
81         atk.h                   \
82         atkaction.h             \
83         atkcomponent.h          \
84         atkdocument.h           \
85         atkeditabletext.h       \
86         atkgobjectaccessible.h  \
87         atkhyperlink.h          \
88         atkhypertext.h          \
89         atknoopobject.h         \
90         atknoopobjectfactory.h  \
91         atkobject.h             \
92         atkobjectfactory.h      \
93         atkimage.h              \
94         atkregistry.h           \
95         atkrelation.h           \
96         atkrelationset.h        \
97         atkselection.h          \
98         atkstate.h              \
99         atkstateset.h           \
100         atkstreamablecontent.h  \
101         atktable.h              \
102         atktext.h               \
103         atkutil.h               \
104         atkvalue.h
105
106 libatkinclude_HEADERS =         \
107         $(atk_headers)          \
108         $(atk_built_headers)
109
110 $(libatk_la_OBJECTS): atkmarshal.c atkmarshal.h $(atk_built_headers)
111
112 atkmarshal.h: @REBUILD@ stamp-atkmarshal.h
113         @true
114 stamp-atkmarshal.h: atkmarshal.list
115         case @GLIB_GENMARSHAL@ in                                                                       \
116            .*) glib_genmarshal=`pwd`/@GLIB_GENMARSHAL@ ;;                               \
117            *) glib_genmarshal=@GLIB_GENMARSHAL@ ;;                                                      \
118         esac;                                                                                           \
119         $$glib_genmarshal --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh           \
120         && (cmp -s xgen-gmh $(srcdir)/atkmarshal.h || cp xgen-gmh $(srcdir)/atkmarshal.h)               \
121         && rm -f xgen-gmh xgen-gmh~                                                                     \
122         && echo timestamp > $(@F)
123
124 atkmarshal.c: @REBUILD@ stamp-atkmarshal.c
125         @true
126 stamp-atkmarshal.c: atkmarshal.list
127         case @GLIB_GENMARSHAL@ in                                                                       \
128            .*) glib_genmarshal=`pwd`/@GLIB_GENMARSHAL@ ;;                               \
129            *) glib_genmarshal=@GLIB_GENMARSHAL@ ;;                                                      \
130         esac;                                                                                           \
131         $$glib_genmarshal --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc             \
132         && (cmp -s xgen-gmc $(srcdir)/atkmarshal.c || cp xgen-gmc $(srcdir)/atkmarshal.c)               \
133         && rm -f xgen-gmc xgen-gmc~                                                                     \
134         && echo timestamp > $(@F)
135
136 atk-enum-types.h: s-enum-types-h
137         @true
138
139 s-enum-types-h: @REBUILD@ $(atk_headers) Makefile
140         ( cd $(srcdir) && glib-mkenums \
141                         --fhead "#ifndef __ATK_ENUM_TYPES_H__\n#define __ATK_ENUM_TYPES_H__\n" \
142                         --fprod "/* enumerations from \"@filename@\" */\n" \
143                         --vhead "GType @enum_name@_get_type (void);\n#define ATK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
144                         --ftail "#endif /* __ATK_ENUM_TYPES_H__ */" \
145                 $(atk_headers) ) > tmp-atk-enum-types.h \
146         && (cmp -s tmp-atk-enum-types.h $(srcdir)/atk-enum-types.h || cp tmp-atk-enum-types.h $(srcdir)/atk-enum-types.h ) \
147         && rm -f tmp-atk-enum-types.h \
148         && echo timestamp > $(@F)
149
150 atk-enum-types.c: s-enum-types-c
151         @true
152
153 s-enum-types-c: @REBUILD@ $(atk_headers) Makefile
154         ( cd $(srcdir) && glib-mkenums \
155                         --fhead "#include <atk.h>" \
156                         --fprod "\n/* enumerations from \"@filename@\" */" \
157                         --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[] = {"     \
158                         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
159                         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
160                 $(atk_headers) ) > tmp-atk-enum-types.c \
161         && (cmp -s tmp-atk-enum-types.c $(srcdir)/atk-enum-types.c || cp tmp-atk-enum-types.c $(srcdir)/atk-enum-types.c ) \
162         && rm -f tmp-atk-enum-types.c \
163         && echo timestamp > $(@F)
164
165
166 atk.lib: libatk.la atk.def
167         lib -name:libatk-@LT_CURRENT_MINUS_AGE@.dll -def:atk.def -out:$@
168
169 install-data-local: install-ms-lib install-libtool-import-lib
170
171 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib