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 \
10 lib_LTLIBRARIES = libatk-1.0.la
12 libatk_1_0_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
13 libatk_1_0_la_LIBADD = $(DEP_LIBS)
15 libatk_1_0_la_SOURCES = \
20 atkgobjectaccessible.c \
25 atknoopobjectfactory.c \
34 atkstreamablecontent.c \
41 libatkincludedir=$(includedir)/atk-1.0/atk
49 atkgobjectaccessible.h \
53 atknoopobjectfactory.h \
64 atkstreamablecontent.h \
70 libatkinclude_HEADERS = \
75 # ---------- Handle built sources ----------
77 BUILT_SOURCES = atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c
79 atkmarshal.h: stamp-atkmarshal.h
81 stamp-atkmarshal.h: @REBUILD@ atkmarshal.list
82 $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh \
83 && (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
84 && rm -f xgen-gmh xgen-gmh~ \
85 && echo timestamp > $(@F)
87 atkmarshal.c: stamp-atkmarshal.c
89 stamp-atkmarshal.c: @REBUILD@ atkmarshal.list
90 $(GLIB_GENMARSHAL) --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc \
91 && (cmp -s xgen-gmc atkmarshal.c || cp xgen-gmc atkmarshal.c) \
92 && rm -f xgen-gmc xgen-gmc~ \
93 && echo timestamp > $(@F)
95 atk-enum-types.h: s-enum-types-h
97 s-enum-types-h: @REBUILD@ $(atk_headers) Makefile
98 ( cd $(srcdir) && glib-mkenums \
99 --fhead "#ifndef __ATK_ENUM_TYPES_H__\n#define __ATK_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
100 --fprod "/* enumerations from \"@filename@\" */\n" \
101 --vhead "GType @enum_name@_get_type (void);\n#define ATK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
102 --ftail "G_END_DECLS\n\n#endif /* __ATK_ENUM_TYPES_H__ */" \
103 $(atk_headers) ) > tmp-atk-enum-types.h \
104 && (cmp -s tmp-atk-enum-types.h atk-enum-types.h || cp tmp-atk-enum-types.h atk-enum-types.h ) \
105 && rm -f tmp-atk-enum-types.h \
106 && echo timestamp > $(@F)
108 atk-enum-types.c: s-enum-types-c
110 s-enum-types-c: @REBUILD@ $(atk_headers) Makefile
111 ( cd $(srcdir) && glib-mkenums \
112 --fhead "#include <atk.h>" \
113 --fprod "\n/* enumerations from \"@filename@\" */" \
114 --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[] = {" \
115 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
116 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
117 $(atk_headers) ) > tmp-atk-enum-types.c \
118 && (cmp -s tmp-atk-enum-types.c atk-enum-types.c || cp tmp-atk-enum-types.c atk-enum-types.c ) \
119 && rm -f tmp-atk-enum-types.c \
120 && echo timestamp > $(@F)
122 # ---------- Win32 stuff ----------
125 libatk_1_0_la_LDFLAGS += -export-symbols atk.def -no-undefined
126 libatk_1_0_la_LIBADD += atk-win32res.lo
128 install-libtool-import-lib:
129 $(INSTALL) .libs/libatk-$(ATK_API_VERSION).dll.a $(DESTDIR)$(libdir)
130 uninstall-libtool-import-lib:
131 -rm $(DESTDIR)$(libdir)/libatk-$(ATK_API_VERSION).dll.a
133 install-libtool-import-lib:
134 uninstall-libtool-import-lib:
137 atk-win32res.lo: atk.rc
138 $(top_srcdir)/../glib/build/win32/lt-compile-resource $< $@
141 noinst_DATA = atk-$(ATK_API_VERSION).lib
144 $(INSTALL) atk-$(ATK_API_VERSION).lib $(DESTDIR)$(libdir)
147 -rm $(DESTDIR)$(libdir)/atk-$(ATK_API_VERSION).lib
153 atk-$(ATK_API_VERSION).lib: libatk-$(ATK_API_VERSION).la atk.def
154 lib -name:libatk-$(ATK_API_VERSION)-$(LT_CURRENT_MINUS_AGE).dll -def:atk.def -out:$@
157 EXTRA_DIST = atk.def atk.rc.in atkmarshal.list atkintl.h
160 stamp-atkmarshal.h stamp-atkmarshal.c \
161 s-enum-types-h s-enum-types-c
164 if test $(srcdir) = .; then :; else \
165 rm -f atkmarshal.h atkmarshal.c atk-enum-types.h atk-enum-types.c; \
168 install-data-local: install-ms-lib install-libtool-import-lib
170 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib