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