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 \
55 atkstreamablecontent.c \
62 libatk_1_0_la_SOURCES = \
66 libatkincludedir=$(includedir)/atk-1.0/atk
74 atkgobjectaccessible.h \
79 atknoopobjectfactory.h \
92 atkstreamablecontent.h \
99 libatkinclude_HEADERS = \
104 # ---------- Handle built sources ----------
106 BUILT_SOURCES = atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c
108 atkmarshal.h: stamp-atkmarshal.h
110 stamp-atkmarshal.h: @REBUILD@ atkmarshal.list
111 $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh \
112 && (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
113 && rm -f xgen-gmh xgen-gmh~ \
114 && echo timestamp > $(@F)
116 atkmarshal.c: stamp-atkmarshal.c
118 stamp-atkmarshal.c: @REBUILD@ atkmarshal.list
119 $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc \
120 && (cmp -s xgen-gmc atkmarshal.c || cp xgen-gmc atkmarshal.c) \
121 && rm -f xgen-gmc xgen-gmc~ \
122 && echo timestamp > $(@F)
124 atk-enum-types.h: s-enum-types-h
126 s-enum-types-h: @REBUILD@ $(atk_headers) Makefile
127 $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) \
128 --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" \
129 --fprod "/* enumerations from \"@filename@\" */\n" \
130 --vhead "GType @enum_name@_get_type (void);\n#define ATK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
131 --ftail "G_END_DECLS\n\n#endif /* __ATK_ENUM_TYPES_H__ */" \
132 $(atk_headers) ) > tmp-atk-enum-types.h \
133 && (cmp -s tmp-atk-enum-types.h atk-enum-types.h || cp tmp-atk-enum-types.h atk-enum-types.h ) \
134 && rm -f tmp-atk-enum-types.h \
135 && echo timestamp > $(@F)
137 atk-enum-types.c: s-enum-types-c
139 s-enum-types-c: @REBUILD@ $(atk_headers) Makefile
140 $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) \
141 --fhead "#include <atk.h>" \
142 --fprod "\n/* enumerations from \"@filename@\" */" \
143 --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[] = {" \
144 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
145 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
146 $(atk_headers) ) > tmp-atk-enum-types.c \
147 && (cmp -s tmp-atk-enum-types.c atk-enum-types.c || cp tmp-atk-enum-types.c atk-enum-types.c ) \
148 && rm -f tmp-atk-enum-types.c \
149 && echo timestamp > $(@F)
152 if HAVE_INTROSPECTION
153 introspection_sources = \
156 introspection_generated_sources = \
160 Atk-1.0.gir: libatk-1.0.la Makefile
161 Atk_1_0_gir_INCLUDES = GObject-2.0
162 Atk_1_0_gir_CFLAGS = $(INCLUDES)
163 Atk_1_0_gir_LIBS = libatk-1.0.la
164 Atk_1_0_gir_SCANNERFLAGS = --pkg-export atk --warn-all
165 Atk_1_0_gir_FILES = \
166 $(addprefix $(srcdir)/, $(introspection_sources)) \
167 $(introspection_generated_sources)
168 INTROSPECTION_GIRS += Atk-1.0.gir
170 girdir = $(datadir)/gir-1.0
171 gir_DATA = $(INTROSPECTION_GIRS)
173 typelibsdir = $(libdir)/girepository-1.0
174 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
176 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
179 # ---------- Win32 stuff ----------
182 libatk_1_0_la_LDFLAGS += -export-symbols $(srcdir)/atk.def -no-undefined -Wl,atk-win32-res.o
183 libatk_1_0_la_DEPENDENCIES = atk-win32-res.o atk.def
186 $(INSTALL) $(srcdir)/atk.def $(DESTDIR)$(libdir)/atk-1.0.def
188 -rm $(DESTDIR)$(libdir)/atk-1.0.def
194 atk-win32-res.o: atk.rc
198 noinst_DATA = atk-$(ATK_API_VERSION).lib
201 $(INSTALL) atk-$(ATK_API_VERSION).lib $(DESTDIR)$(libdir)
204 -rm $(DESTDIR)$(libdir)/atk-$(ATK_API_VERSION).lib
211 (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
213 atk-$(ATK_API_VERSION).lib: libatk-$(ATK_API_VERSION).la atk.def
214 lib -machine:$(LIB_EXE_MACHINE_FLAG) -name:libatk-$(ATK_API_VERSION)-$(LT_CURRENT_MINUS_AGE).dll -def:atk.def -out:$@
217 EXTRA_DIST = atk.symbols atk.rc.in atkmarshal.list atkintl.h atk.rc
219 dist-hook: ../build/win32/vs9/atk.vcproj ../build/win32/vs10/atk.vcxproj ../build/win32/vs10/atk.vcxproj.filters
221 ../build/win32/vs9/atk.vcproj: ../build/win32/vs9/atk.vcprojin
222 for F in $(libatk_1_0_la_SOURCES); do \
224 *.c) echo ' <File RelativePath="..\..\..\atk\'$$F'" />' \
227 done >libatk.sourcefiles
228 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/atk.vcprojin >$@
229 rm libatk.sourcefiles
231 ../build/win32/vs10/atk.vcxproj: ../build/win32/vs10/atk.vcxprojin
232 for F in $(libatk_1_0_la_SOURCES); do \
234 *.c) echo ' <ClCompile Include="..\..\..\atk\'$$F'" />' \
237 done >libatk.vs10.sourcefiles
238 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/atk.vcxprojin >$@
239 rm libatk.vs10.sourcefiles
241 ../build/win32/vs10/atk.vcxproj.filters: ../build/win32/vs10/atk.vcxproj.filtersin
242 for F in $(libatk_1_0_la_SOURCES); do \
244 *.c) echo ' <ClCompile Include="..\..\..\atk\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
247 done >libatk.vs10.sourcefiles.filters
248 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/atk.vcxproj.filtersin >$@
249 rm libatk.vs10.sourcefiles.filters
252 stamp-atkmarshal.h stamp-atkmarshal.c \
253 s-enum-types-h s-enum-types-c
256 if test $(srcdir) = .; then :; else \
257 rm -f atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c; \
260 install-data-local: install-ms-lib install-def-file
262 uninstall-local: uninstall-ms-lib uninstall-def-file