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