1 # We set GPATH here; this gives us semantics for GNU make
2 # which are more like other make's VPATH.
5 include $(INTROSPECTION_MAKEFILE)
11 no_undefined = -no-undefined
18 -DG_DISABLE_DEPRECATED \
19 -DATK_DISABLE_DEPRECATED \
21 -DATK_LOCALEDIR="\"$(datadir)/locale\"" \
23 $(ATK_HIDDEN_VISIBILITY_CFLAGS)
25 lib_LTLIBRARIES = libatk-1.0.la
27 libatk_1_0_la_LDFLAGS = \
28 -version-info $(LT_VERSION_INFO) \
30 libatk_1_0_la_LIBADD = \
39 atkgobjectaccessible.c \
45 atknoopobjectfactory.c \
59 atkstreamablecontent.c \
69 libatk_1_0_la_SOURCES = \
73 libatkincludedir=$(includedir)/atk-1.0/atk
80 atkgobjectaccessible.h \
85 atknoopobjectfactory.h \
99 atkstreamablecontent.h \
108 libatkinclude_HEADERS = \
111 $(top_builddir)/atk/atkversion.h \
115 # ---------- Handle built sources ----------
117 BUILT_SOURCES = atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c
119 atkmarshal.h: stamp-atkmarshal.h
121 stamp-atkmarshal.h: @REBUILD@ atkmarshal.list
122 $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh \
123 && (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
124 && rm -f xgen-gmh xgen-gmh~ \
125 && echo timestamp > $(@F)
127 atkmarshal.c: stamp-atkmarshal.c
129 stamp-atkmarshal.c: @REBUILD@ atkmarshal.list
130 $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc \
131 && (cmp -s xgen-gmc atkmarshal.c || cp xgen-gmc atkmarshal.c) \
132 && rm -f xgen-gmc xgen-gmc~ \
133 && echo timestamp > $(@F)
135 atk-enum-types.h: s-enum-types-h
137 s-enum-types-h: @REBUILD@ $(atk_headers) Makefile
138 $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) \
139 --fhead "#if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)\n#error \"Only <atk/atk.h> can be included directly.\"\n#endif\n\n#ifndef __ATK_ENUM_TYPES_H__\n#define __ATK_ENUM_TYPES_H__\n\n#include <atk/atkversion.h>\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
140 --fprod "/* enumerations from \"@filename@\" */\n" \
141 --vhead "ATK_AVAILABLE_IN_ALL\nGType @enum_name@_get_type (void);\n#define ATK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
142 --ftail "G_END_DECLS\n\n#endif /* __ATK_ENUM_TYPES_H__ */" \
143 $(atk_headers) ) > tmp-atk-enum-types.h \
144 && (cmp -s tmp-atk-enum-types.h atk-enum-types.h || cp tmp-atk-enum-types.h atk-enum-types.h ) \
145 && rm -f tmp-atk-enum-types.h \
146 && echo timestamp > $(@F)
148 atk-enum-types.c: s-enum-types-c
150 s-enum-types-c: @REBUILD@ $(atk_headers) Makefile
151 $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) \
152 --fhead "#include \"config.h\"\n\n#include <atk.h>" \
153 --fprod "\n/* enumerations from \"@filename@\" */" \
154 --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[] = {" \
155 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
156 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
157 $(atk_headers) ) > tmp-atk-enum-types.c \
158 && (cmp -s tmp-atk-enum-types.c atk-enum-types.c || cp tmp-atk-enum-types.c atk-enum-types.c ) \
159 && rm -f tmp-atk-enum-types.c \
160 && echo timestamp > $(@F)
163 if HAVE_INTROSPECTION
164 introspection_sources = \
167 introspection_generated_sources = \
168 $(top_builddir)/atk/atkversion.h \
172 Atk-1.0.gir: libatk-1.0.la Makefile
173 Atk_1_0_gir_INCLUDES = GObject-2.0
174 Atk_1_0_gir_CFLAGS = $(AM_CPPFLAGS)
175 Atk_1_0_gir_LIBS = libatk-1.0.la
176 Atk_1_0_gir_SCANNERFLAGS = --pkg-export atk --warn-all --c-include "atk/atk.h"
177 Atk_1_0_gir_FILES = \
178 $(addprefix $(srcdir)/, $(introspection_sources)) \
179 $(introspection_generated_sources)
180 INTROSPECTION_GIRS += Atk-1.0.gir
182 girdir = $(datadir)/gir-1.0
183 gir_DATA = $(INTROSPECTION_GIRS)
185 typelibsdir = $(libdir)/girepository-1.0
186 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
188 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
191 # ---------- Win32 stuff ----------
194 libatk_1_0_la_LDFLAGS += -export-symbols atk.def -no-undefined -Wl,atk-win32-res.o
195 libatk_1_0_la_DEPENDENCIES = atk-win32-res.o
198 atk-win32-res.o: atk.rc
201 EXTRA_DIST = atk.rc.in atkmarshal.list atk.rc atkversion.h.in
204 stamp-atkmarshal.h stamp-atkmarshal.c \
205 s-enum-types-h s-enum-types-c
208 if test $(srcdir) = .; then :; else \
209 rm -f atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c; \