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)
7 INTROSPECTION_SCANNER_ENV = CC="$(CC)"
12 no_undefined = -no-undefined
19 -DG_DISABLE_DEPRECATED \
20 -DATK_DISABLE_DEPRECATED \
22 -DATK_LOCALEDIR="\"$(datadir)/locale\"" \
24 $(ATK_HIDDEN_VISIBILITY_CFLAGS)
26 lib_LTLIBRARIES = libatk-1.0.la
28 libatk_1_0_la_LDFLAGS = \
29 -version-info $(LT_VERSION_INFO) \
31 libatk_1_0_la_LIBADD = \
40 atkgobjectaccessible.c \
46 atknoopobjectfactory.c \
60 atkstreamablecontent.c \
70 libatk_1_0_la_SOURCES = \
74 libatkincludedir=$(includedir)/atk-1.0/atk
81 atkgobjectaccessible.h \
86 atknoopobjectfactory.h \
100 atkstreamablecontent.h \
109 libatkinclude_HEADERS = \
112 $(top_builddir)/atk/atkversion.h \
116 # ---------- Handle built sources ----------
118 BUILT_SOURCES = atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c
120 atkmarshal.h: stamp-atkmarshal.h
122 stamp-atkmarshal.h: @REBUILD@ atkmarshal.list
123 $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh \
124 && (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
125 && rm -f xgen-gmh xgen-gmh~ \
126 && echo timestamp > $(@F)
128 atkmarshal.c: stamp-atkmarshal.c
130 stamp-atkmarshal.c: @REBUILD@ atkmarshal.list
131 $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc \
132 && (cmp -s xgen-gmc atkmarshal.c || cp xgen-gmc atkmarshal.c) \
133 && rm -f xgen-gmc xgen-gmc~ \
134 && echo timestamp > $(@F)
136 atk-enum-types.h: s-enum-types-h
138 s-enum-types-h: @REBUILD@ $(atk_headers) Makefile
139 $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) \
140 --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" \
141 --fprod "/* enumerations from \"@filename@\" */\n" \
142 --vhead "ATK_AVAILABLE_IN_ALL\nGType @enum_name@_get_type (void);\n#define ATK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
143 --ftail "G_END_DECLS\n\n#endif /* __ATK_ENUM_TYPES_H__ */" \
144 $(atk_headers) ) > tmp-atk-enum-types.h \
145 && (cmp -s tmp-atk-enum-types.h atk-enum-types.h || cp tmp-atk-enum-types.h atk-enum-types.h ) \
146 && rm -f tmp-atk-enum-types.h \
147 && echo timestamp > $(@F)
149 atk-enum-types.c: s-enum-types-c
151 s-enum-types-c: @REBUILD@ $(atk_headers) Makefile
152 $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) \
153 --fhead "#include \"config.h\"\n\n#include <atk.h>" \
154 --fprod "\n/* enumerations from \"@filename@\" */" \
155 --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[] = {" \
156 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
157 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
158 $(atk_headers) ) > tmp-atk-enum-types.c \
159 && (cmp -s tmp-atk-enum-types.c atk-enum-types.c || cp tmp-atk-enum-types.c atk-enum-types.c ) \
160 && rm -f tmp-atk-enum-types.c \
161 && echo timestamp > $(@F)
164 if HAVE_INTROSPECTION
165 introspection_sources = \
168 introspection_generated_sources = \
169 $(top_builddir)/atk/atkversion.h \
173 Atk-1.0.gir: libatk-1.0.la Makefile
174 Atk_1_0_gir_INCLUDES = GObject-2.0
175 Atk_1_0_gir_CFLAGS = $(AM_CPPFLAGS) -I ..
176 Atk_1_0_gir_LIBS = libatk-1.0.la
177 Atk_1_0_gir_SCANNERFLAGS = --pkg-export atk --warn-all --c-include "atk/atk.h"
178 Atk_1_0_gir_FILES = \
179 $(addprefix $(srcdir)/, $(introspection_sources)) \
180 $(introspection_generated_sources)
181 INTROSPECTION_GIRS += Atk-1.0.gir
183 girdir = $(datadir)/gir-1.0
184 gir_DATA = $(INTROSPECTION_GIRS)
186 typelibsdir = $(libdir)/girepository-1.0
187 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
189 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
192 # ---------- Win32 stuff ----------
195 libatk_1_0_la_LDFLAGS += -no-undefined -Wl,atk-win32-res.o
196 libatk_1_0_la_DEPENDENCIES = atk-win32-res.o
199 atk-win32-res.o: atk.rc
202 EXTRA_DIST = atk.rc.in atkmarshal.list atk.rc atkversion.h.in
205 stamp-atkmarshal.h stamp-atkmarshal.c \
206 s-enum-types-h s-enum-types-c
208 # ---------- MSVC Project Items ---------
211 atk_FILES = $(libatk_1_0_la_SOURCES)
212 atk_EXCLUDES = atkdummy
214 atk_HEADERS_DIR = $(libatkincludedir)
215 atk_HEADERS_INST = $(libatkinclude_HEADERS) atkversion.h
216 atk_HEADERS_EXCLUDES = $(top_builddir)/atk/atkversion.h
218 include $(top_srcdir)/build/Makefile.msvcproj
221 $(top_builddir)/build/win32/vs9/atk.vcproj \
222 $(top_builddir)/build/win32/vs9/atk.headers
225 if test $(srcdir) = .; then :; else \
226 rm -f atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c; \