1 # We set GPATH here; this gives us semantics for GNU make
2 # which are more like other make's VPATH.
7 -DG_DISABLE_DEPRECATED \
9 -DATKLOCALEDIR=\""$(atklocaledir)"\"
11 lib_LTLIBRARIES = libatk-1.0.la
13 libatk_1_0_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
14 libatk_1_0_la_LIBADD = $(DEP_LIBS)
16 libatk_1_0_la_SOURCES = \
21 atkgobjectaccessible.c \
26 atknoopobjectfactory.c \
35 atkstreamablecontent.c \
42 libatkincludedir=$(includedir)/atk-1.0/atk
50 atkgobjectaccessible.h \
54 atknoopobjectfactory.h \
65 atkstreamablecontent.h \
71 libatkinclude_HEADERS = \
76 # ---------- Handle built sources ----------
78 BUILT_SOURCES = atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c
80 atkmarshal.h: stamp-atkmarshal.h
82 stamp-atkmarshal.h: @REBUILD@ atkmarshal.list
83 $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh \
84 && (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
85 && rm -f xgen-gmh xgen-gmh~ \
86 && echo timestamp > $(@F)
88 atkmarshal.c: stamp-atkmarshal.c
90 stamp-atkmarshal.c: @REBUILD@ atkmarshal.list
91 $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc \
92 && (cmp -s xgen-gmc atkmarshal.c || cp xgen-gmc atkmarshal.c) \
93 && rm -f xgen-gmc xgen-gmc~ \
94 && echo timestamp > $(@F)
96 atk-enum-types.h: s-enum-types-h
98 s-enum-types-h: @REBUILD@ $(atk_headers) Makefile
99 ( cd $(srcdir) && glib-mkenums \
100 --fhead "#ifndef __ATK_ENUM_TYPES_H__\n#define __ATK_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
101 --fprod "/* enumerations from \"@filename@\" */\n" \
102 --vhead "GType @enum_name@_get_type (void);\n#define ATK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
103 --ftail "G_END_DECLS\n\n#endif /* __ATK_ENUM_TYPES_H__ */" \
104 $(atk_headers) ) > tmp-atk-enum-types.h \
105 && (cmp -s tmp-atk-enum-types.h atk-enum-types.h || cp tmp-atk-enum-types.h atk-enum-types.h ) \
106 && rm -f tmp-atk-enum-types.h \
107 && echo timestamp > $(@F)
109 atk-enum-types.c: s-enum-types-c
111 s-enum-types-c: @REBUILD@ $(atk_headers) Makefile
112 ( cd $(srcdir) && glib-mkenums \
113 --fhead "#include <atk.h>" \
114 --fprod "\n/* enumerations from \"@filename@\" */" \
115 --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[] = {" \
116 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
117 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
118 $(atk_headers) ) > tmp-atk-enum-types.c \
119 && (cmp -s tmp-atk-enum-types.c atk-enum-types.c || cp tmp-atk-enum-types.c atk-enum-types.c ) \
120 && rm -f tmp-atk-enum-types.c \
121 && echo timestamp > $(@F)
123 # ---------- Win32 stuff ----------
126 libatk_1_0_la_LDFLAGS += -export-symbols atk.def -no-undefined
127 libatk_1_0_la_LIBADD += atk-win32res.lo
129 install-libtool-import-lib:
130 $(INSTALL) .libs/libatk-$(ATK_API_VERSION).dll.a $(DESTDIR)$(libdir)
131 uninstall-libtool-import-lib:
132 -rm $(DESTDIR)$(libdir)/libatk-$(ATK_API_VERSION).dll.a
134 install-libtool-import-lib:
135 uninstall-libtool-import-lib:
138 atk-win32res.lo: atk.rc
139 $(top_srcdir)/../glib/build/win32/lt-compile-resource $< $@
142 noinst_DATA = atk-$(ATK_API_VERSION).lib
145 $(INSTALL) atk-$(ATK_API_VERSION).lib $(DESTDIR)$(libdir)
148 -rm $(DESTDIR)$(libdir)/atk-$(ATK_API_VERSION).lib
154 atk-$(ATK_API_VERSION).lib: libatk-$(ATK_API_VERSION).la atk.def
155 lib -name:libatk-$(ATK_API_VERSION)-$(LT_CURRENT_MINUS_AGE).dll -def:atk.def -out:$@
158 EXTRA_DIST = atk.def atk.rc.in atkmarshal.list atkintl.h
161 stamp-atkmarshal.h stamp-atkmarshal.c \
162 s-enum-types-h s-enum-types-c
165 if test $(srcdir) = .; then :; else \
166 rm -f atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c; \
169 install-data-local: install-ms-lib install-libtool-import-lib
171 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib