===== Released 1.1.1 =====
[atk.git] / atk / Makefile.am
blobf34e6e960512d3dc838c9a728811ca09e78b812c
1 # We set GPATH here; this gives us semantics for GNU make
2 # which are more like other make's VPATH.
3 GPATH = $(srcdir)
5 EXTRA_DIST = atk.def
6 if OS_WIN32
7 export_symbols = -export-symbols atk.def
8 no_undefined = -no-undefined
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
19 lib_LTLIBRARIES = libatk-1.0.la
21 if MS_LIB_AVAILABLE
22 noinst_DATA = atk-$(ATK_API_VERSION).lib
24 install-ms-lib:
25         $(INSTALL) atk-$(ATK_API_VERSION).lib $(DESTDIR)$(libdir)
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
34 atk_built_headers = atk-enum-types.h
35 atk_built_cfiles = atk-enum-types.c
37 $(OBJECTS): $(atk_built_headers)
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)
65 EXTRA_DIST += atkmarshal.list   \
66                 atkintl.h
68 MAINTAINERCLEANFILES +=         \
69         atkmarshal.c            \
70         atkmarshal.h            \
71         stamp-atkmarshal.c      \
72         stamp-atkmarshal.h
74 INCLUDES = \
75         -I$(top_srcdir)         \
76         -DG_DISABLE_DEPRECATED  \
77         @DEP_CFLAGS@
79 LDFLAGS =                                       \
80         -version-info $(LT_VERSION_INFO)        \
81         $(export_symbols)                       \
82         $(no_undefined)                         \
83         @DEP_LIBS@
85 libatkincludedir=$(includedir)/atk-1.0/atk
87 atk_headers = \
88         atk.h                   \
89         atkaction.h             \
90         atkcomponent.h          \
91         atkdocument.h           \
92         atkeditabletext.h       \
93         atkgobjectaccessible.h  \
94         atkhyperlink.h          \
95         atkhypertext.h          \
96         atknoopobject.h         \
97         atknoopobjectfactory.h  \
98         atkobject.h             \
99         atkobjectfactory.h      \
100         atkimage.h              \
101         atkregistry.h           \
102         atkrelation.h           \
103         atkrelationtype.h       \
104         atkrelationset.h        \
105         atkselection.h          \
106         atkstate.h              \
107         atkstateset.h           \
108         atkstreamablecontent.h  \
109         atktable.h              \
110         atktext.h               \
111         atkutil.h               \
112         atkvalue.h
114 libatkinclude_HEADERS =         \
115         $(atk_headers)          \
116         $(atk_built_headers)
118 $(libatk_1_0_la_OBJECTS): atkmarshal.c atkmarshal.h $(atk_built_headers)
120 atkmarshal.h: @REBUILD@ stamp-atkmarshal.h
121         @true
122 stamp-atkmarshal.h: atkmarshal.list
123         case @GLIB_GENMARSHAL@ in                                                                       \
124            .*) glib_genmarshal=`pwd`/@GLIB_GENMARSHAL@ ;;                               \
125            *) glib_genmarshal=@GLIB_GENMARSHAL@ ;;                                                      \
126         esac;                                                                                           \
127         $$glib_genmarshal --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh           \
128         && (cmp -s xgen-gmh $(srcdir)/atkmarshal.h || cp xgen-gmh $(srcdir)/atkmarshal.h)               \
129         && rm -f xgen-gmh xgen-gmh~                                                                     \
130         && echo timestamp > $(@F)
132 atkmarshal.c: @REBUILD@ stamp-atkmarshal.c
133         @true
134 stamp-atkmarshal.c: atkmarshal.list
135         case @GLIB_GENMARSHAL@ in                                                                       \
136            .*) glib_genmarshal=`pwd`/@GLIB_GENMARSHAL@ ;;                               \
137            *) glib_genmarshal=@GLIB_GENMARSHAL@ ;;                                                      \
138         esac;                                                                                           \
139         $$glib_genmarshal --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc             \
140         && (cmp -s xgen-gmc $(srcdir)/atkmarshal.c || cp xgen-gmc $(srcdir)/atkmarshal.c)               \
141         && rm -f xgen-gmc xgen-gmc~                                                                     \
142         && echo timestamp > $(@F)
144 atk-enum-types.h: s-enum-types-h
145         @true
147 s-enum-types-h: @REBUILD@ $(atk_headers) Makefile
148         ( cd $(srcdir) && glib-mkenums \
149                         --fhead "#ifndef __ATK_ENUM_TYPES_H__\n#define __ATK_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
150                         --fprod "/* enumerations from \"@filename@\" */\n" \
151                         --vhead "GType @enum_name@_get_type (void);\n#define ATK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
152                         --ftail "G_END_DECLS\n\n#endif /* __ATK_ENUM_TYPES_H__ */" \
153                 $(atk_headers) ) > tmp-atk-enum-types.h \
154         && (cmp -s tmp-atk-enum-types.h $(srcdir)/atk-enum-types.h || cp tmp-atk-enum-types.h $(srcdir)/atk-enum-types.h ) \
155         && rm -f tmp-atk-enum-types.h \
156         && echo timestamp > $(@F)
158 atk-enum-types.c: s-enum-types-c
159         @true
161 s-enum-types-c: @REBUILD@ $(atk_headers) Makefile
162         ( cd $(srcdir) && glib-mkenums \
163                         --fhead "#include <atk.h>" \
164                         --fprod "\n/* enumerations from \"@filename@\" */" \
165                         --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[] = {"     \
166                         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
167                         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
168                 $(atk_headers) ) > tmp-atk-enum-types.c \
169         && (cmp -s tmp-atk-enum-types.c $(srcdir)/atk-enum-types.c || cp tmp-atk-enum-types.c $(srcdir)/atk-enum-types.c ) \
170         && rm -f tmp-atk-enum-types.c \
171         && echo timestamp > $(@F)
174 atk-$(ATK_API_VERSION).lib: libatk-$(ATK_API_VERSION).la atk.def
175         lib -name:libatk-$(ATK_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:atk.def -out:$@
177 install-data-local: install-ms-lib install-libtool-import-lib
179 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib