1 # We set GPATH here; this gives us semantics for GNU make
2 # which are more like other make's VPATH.
6 no_undefined = -no-undefined
13 -DG_DISABLE_DEPRECATED \
14 -DATK_DISABLE_DEPRECATED \
16 -DATK_LOCALEDIR="\"$(datadir)/locale\"" \
19 lib_LTLIBRARIES = libatk-1.0.la
21 libatk_1_0_la_LDFLAGS = \
22 -version-info $(LT_VERSION_INFO) \
24 libatk_1_0_la_LIBADD = $(DEP_LIBS)
26 libatk_1_0_la_SOURCES = \
31 atkgobjectaccessible.c \
37 atknoopobjectfactory.c \
46 atkstreamablecontent.c \
54 libatkincludedir=$(includedir)/atk-1.0/atk
62 atkgobjectaccessible.h \
67 atknoopobjectfactory.h \
78 atkstreamablecontent.h \
85 libatkinclude_HEADERS = \
90 # ---------- Handle built sources ----------
92 BUILT_SOURCES = atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c
94 atkmarshal.h: stamp-atkmarshal.h
96 stamp-atkmarshal.h: @REBUILD@ atkmarshal.list
97 $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh \
98 && (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
99 && rm -f xgen-gmh xgen-gmh~ \
100 && echo timestamp > $(@F)
102 atkmarshal.c: stamp-atkmarshal.c
104 stamp-atkmarshal.c: @REBUILD@ atkmarshal.list
105 $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc \
106 && (cmp -s xgen-gmc atkmarshal.c || cp xgen-gmc atkmarshal.c) \
107 && rm -f xgen-gmc xgen-gmc~ \
108 && echo timestamp > $(@F)
110 atk-enum-types.h: s-enum-types-h
112 s-enum-types-h: @REBUILD@ $(atk_headers) Makefile
113 ( cd $(srcdir) && $(GLIB_MKENUMS) \
114 --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" \
115 --fprod "/* enumerations from \"@filename@\" */\n" \
116 --vhead "GType @enum_name@_get_type (void);\n#define ATK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
117 --ftail "G_END_DECLS\n\n#endif /* __ATK_ENUM_TYPES_H__ */" \
118 $(atk_headers) ) > tmp-atk-enum-types.h \
119 && (cmp -s tmp-atk-enum-types.h atk-enum-types.h || cp tmp-atk-enum-types.h atk-enum-types.h ) \
120 && rm -f tmp-atk-enum-types.h \
121 && echo timestamp > $(@F)
123 atk-enum-types.c: s-enum-types-c
125 s-enum-types-c: @REBUILD@ $(atk_headers) Makefile
126 ( cd $(srcdir) && $(GLIB_MKENUMS) \
127 --fhead "#include <atk.h>" \
128 --fprod "\n/* enumerations from \"@filename@\" */" \
129 --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[] = {" \
130 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
131 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
132 $(atk_headers) ) > tmp-atk-enum-types.c \
133 && (cmp -s tmp-atk-enum-types.c atk-enum-types.c || cp tmp-atk-enum-types.c atk-enum-types.c ) \
134 && rm -f tmp-atk-enum-types.c \
135 && echo timestamp > $(@F)
137 # ---------- Win32 stuff ----------
140 libatk_1_0_la_LDFLAGS += -export-symbols $(srcdir)/atk.def -no-undefined -Wl,atk-win32-res.o
141 libatk_1_0_la_DEPENDENCIES = atk-win32-res.o atk.def
144 $(INSTALL) $(srcdir)/atk.def $(DESTDIR)$(libdir)/atk-1.0.def
146 -rm $(DESTDIR)$(libdir)/atk-1.0.def
152 atk-win32-res.o: atk.rc
156 noinst_DATA = atk-$(ATK_API_VERSION).lib
159 $(INSTALL) atk-$(ATK_API_VERSION).lib $(DESTDIR)$(libdir)
162 -rm $(DESTDIR)$(libdir)/atk-$(ATK_API_VERSION).lib
169 (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
171 atk-$(ATK_API_VERSION).lib: libatk-$(ATK_API_VERSION).la atk.def
172 lib -machine:$(LIB_EXE_MACHINE_FLAG) -name:libatk-$(ATK_API_VERSION)-$(LT_CURRENT_MINUS_AGE).dll -def:atk.def -out:$@
175 EXTRA_DIST = atk.symbols atk.rc.in atkmarshal.list atkintl.h
178 stamp-atkmarshal.h stamp-atkmarshal.c \
179 s-enum-types-h s-enum-types-c
182 if test $(srcdir) = .; then :; else \
183 rm -f atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c; \
186 install-data-local: install-ms-lib install-def-file
188 uninstall-local: uninstall-ms-lib uninstall-def-file