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\"" \
24 lib_LTLIBRARIES = libatk-1.0.la
26 libatk_1_0_la_LDFLAGS = \
27 -version-info $(LT_VERSION_INFO) \
29 libatk_1_0_la_LIBADD = \
38 atkgobjectaccessible.c \
44 atknoopobjectfactory.c \
57 atkstreamablecontent.c \
67 libatk_1_0_la_SOURCES = \
71 libatkincludedir=$(includedir)/atk-1.0/atk
78 atkgobjectaccessible.h \
83 atknoopobjectfactory.h \
97 atkstreamablecontent.h \
106 libatkinclude_HEADERS = \
109 $(top_builddir)/atk/atkversion.h \
113 # ---------- Handle built sources ----------
115 BUILT_SOURCES = atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c
117 atkmarshal.h: stamp-atkmarshal.h
119 stamp-atkmarshal.h: @REBUILD@ atkmarshal.list
120 $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh \
121 && (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
122 && rm -f xgen-gmh xgen-gmh~ \
123 && echo timestamp > $(@F)
125 atkmarshal.c: stamp-atkmarshal.c
127 stamp-atkmarshal.c: @REBUILD@ atkmarshal.list
128 $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc \
129 && (cmp -s xgen-gmc atkmarshal.c || cp xgen-gmc atkmarshal.c) \
130 && rm -f xgen-gmc xgen-gmc~ \
131 && echo timestamp > $(@F)
133 atk-enum-types.h: s-enum-types-h
135 s-enum-types-h: @REBUILD@ $(atk_headers) Makefile
136 $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) \
137 --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 <glib-object.h>\n\nG_BEGIN_DECLS\n" \
138 --fprod "/* enumerations from \"@filename@\" */\n" \
139 --vhead "GType @enum_name@_get_type (void);\n#define ATK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
140 --ftail "G_END_DECLS\n\n#endif /* __ATK_ENUM_TYPES_H__ */" \
141 $(atk_headers) ) > tmp-atk-enum-types.h \
142 && (cmp -s tmp-atk-enum-types.h atk-enum-types.h || cp tmp-atk-enum-types.h atk-enum-types.h ) \
143 && rm -f tmp-atk-enum-types.h \
144 && echo timestamp > $(@F)
146 atk-enum-types.c: s-enum-types-c
148 s-enum-types-c: @REBUILD@ $(atk_headers) Makefile
149 $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) \
150 --fhead "#include <atk.h>" \
151 --fprod "\n/* enumerations from \"@filename@\" */" \
152 --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[] = {" \
153 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
154 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
155 $(atk_headers) ) > tmp-atk-enum-types.c \
156 && (cmp -s tmp-atk-enum-types.c atk-enum-types.c || cp tmp-atk-enum-types.c atk-enum-types.c ) \
157 && rm -f tmp-atk-enum-types.c \
158 && echo timestamp > $(@F)
161 if HAVE_INTROSPECTION
162 introspection_sources = \
165 introspection_generated_sources = \
166 $(top_builddir)/atk/atkversion.h \
170 Atk-1.0.gir: libatk-1.0.la Makefile
171 Atk_1_0_gir_INCLUDES = GObject-2.0
172 Atk_1_0_gir_CFLAGS = $(AM_CPPFLAGS)
173 Atk_1_0_gir_LIBS = libatk-1.0.la
174 Atk_1_0_gir_SCANNERFLAGS = --pkg-export atk --warn-all --c-include "atk/atk.h"
175 Atk_1_0_gir_FILES = \
176 $(addprefix $(srcdir)/, $(introspection_sources)) \
177 $(introspection_generated_sources)
178 INTROSPECTION_GIRS += Atk-1.0.gir
180 girdir = $(datadir)/gir-1.0
181 gir_DATA = $(INTROSPECTION_GIRS)
183 typelibsdir = $(libdir)/girepository-1.0
184 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
186 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
189 # ---------- Win32 stuff ----------
192 libatk_1_0_la_LDFLAGS += -export-symbols atk.def -no-undefined -Wl,atk-win32-res.o
193 libatk_1_0_la_DEPENDENCIES = atk-win32-res.o atk.def
196 $(INSTALL) atk.def $(DESTDIR)$(libdir)/atk-1.0.def
198 -rm $(DESTDIR)$(libdir)/atk-1.0.def
204 atk-win32-res.o: atk.rc
208 noinst_DATA = atk-$(ATK_API_VERSION).lib
211 $(INSTALL) atk-$(ATK_API_VERSION).lib $(DESTDIR)$(libdir)
214 -rm $(DESTDIR)$(libdir)/atk-$(ATK_API_VERSION).lib
221 (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/atk.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g') > atk.def
223 atk-$(ATK_API_VERSION).lib: libatk-$(ATK_API_VERSION).la atk.def
224 lib -machine:$(LIB_EXE_MACHINE_FLAG) -name:libatk-$(ATK_API_VERSION)-$(LT_CURRENT_MINUS_AGE).dll -def:atk.def -out:$@
227 EXTRA_DIST = atk.symbols atk.rc.in atkmarshal.list atk.rc atkversion.h.in
230 stamp-atkmarshal.h stamp-atkmarshal.c \
231 s-enum-types-h s-enum-types-c
234 if test $(srcdir) = .; then :; else \
235 rm -f atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c; \
238 install-data-local: install-ms-lib install-def-file
240 uninstall-local: uninstall-ms-lib uninstall-def-file