Revert "Clean up enums"
[platform/upstream/at-spi2-core.git] / atspi / Makefile.am
1 lib_LTLIBRARIES = libatspi.la
2
3 libatspi_la_LDFLAGS = @LDFLAGS@ @LT_VERSION_INFO@ @LIBTOOL_EXPORT_OPTIONS@ -no-undefined
4
5 libatspi_la_CFLAGS = $(DBUS_CFLAGS) \
6                     $(DBIND_CFLAGS)     \
7                     $(GLIB_CFLAGS)     \
8                     -I$(top_srcdir)/registryd \
9                     -I$(top_srcdir)
10
11 libatspi_la_LIBADD = $(DBUS_LIBS) \
12         $(GOBJ_LIBS) \
13         $(X_LIBS) \
14         $(top_builddir)/dbind/libdbind.la
15
16 libatspiincludedir = $(includedir)/at-spi-2.0/atspi
17
18 libatspiinclude_HEADERS = \
19         atspi.h \
20         atspi-accessible.h \
21         atspi-action.h \
22         atspi-application.h \
23         atspi-collection.h \
24         atspi-component.h \
25         atspi-constants.h \
26         atspi-device-listener.h \
27         atspi-device-listener-private.h \
28         atspi-document.h \
29         atspi-editabletext.h \
30         atspi-event-listener.h \
31         atspi-event-listener-private.h \
32 atspi-gmain.c \
33 atspi-gmain.h \
34         atspi-hyperlink.h \
35         atspi-hypertext.h \
36         atspi-image.h \
37         atspi-matchrule.h \
38         atspi-misc.h \
39         atspi-object.h \
40         atspi-private.h \
41         atspi-registry.h \
42         atspi-relation.h \
43         atspi-selection.h \
44         atspi-stateset.h \
45         atspi-table.h \
46         atspi-text.h \
47         atspi-types.h \
48         atspi-value.h
49
50 libatspi_la_SOURCES =           \
51         $(libatspiinclude_HEADERS) \
52         atspi.h \
53         atspi-accessible.c \
54         atspi-accessible.h \
55         atspi-action.c \
56         atspi-action.h \
57         atspi-application.c \
58         atspi-application.h \
59         atspi-collection.c \
60         atspi-collection.h \
61         atspi-component.c \
62         atspi-component.h \
63         atspi-constants.h \
64         atspi-device-listener.c \
65         atspi-device-listener.h \
66         atspi-device-listener-private.h \
67         atspi-document.c \
68         atspi-document.h \
69         atspi-editabletext.c \
70         atspi-editabletext.h \
71         atspi-event-listener.c \
72         atspi-event-listener.h \
73         atspi-event-listener-private.h \
74         atspi-hyperlink.c \
75         atspi-hyperlink.h \
76         atspi-hypertext.c \
77         atspi-hypertext.h \
78         atspi-image.c \
79         atspi-image.h \
80         atspi-matchrule.c \
81         atspi-matchrule.h \
82         atspi-matchrule-private.h \
83         atspi-misc.c \
84         atspi-misc.h \
85         atspi-misc-private.h \
86         atspi-object.c \
87         atspi-object.h \
88         atspi-private.h \
89         atspi-registry.c \
90         atspi-registry.h \
91         atspi-relation.c \
92         atspi-relation.h \
93         atspi-selection.c \
94         atspi-selection.h \
95         atspi-stateset.c \
96         atspi-stateset.h \
97         atspi-table.c \
98         atspi-table.h \
99         atspi-text.c \
100         atspi-text.h \
101         atspi-types.h \
102         atspi-value.c \
103         atspi-value.h
104
105 #BUILT_SOURCES = atspi-constants.h
106
107 #CLEANFILES = atspi-constants.h
108
109 #atspi-constants.h: $(top_srcdir)/xml/spec.xml $(top_srcdir)/tools/c-constants-gen.py
110 #       python $(top_srcdir)/tools/c-constants-gen.py Atspi $(top_srcdir)/xml/spec.xml atspi-constants
111
112 if HAVE_INTROSPECTION
113 INTROSPECTION_FILES = $(libatspi_la_SOURCES)
114
115 Atspi-2.0.gir: $(INTROSPECTION_SCANNER) \
116                 libatspi.la \
117                 $(INTROSPECTION_FILES)
118         $(AM_V_GEN)$(INTROSPECTION_SCANNER) -v \
119                 --namespace Atspi \
120                 --nsversion=2.0 \
121                 -I$(top_builddir) \
122                 -I$(top_srcdir) \
123                 --include=GLib-2.0 \
124                 --include=GObject-2.0 \
125                 --libtool="$(top_builddir)/libtool" \
126                 --library=libatspi.la \
127                 --library=$(top_builddir)/dbind/libdbind.la \
128                 --pkg dbus-1 \
129                 --warn-all \
130                 --output $@ \
131                 $(addprefix $(srcdir)/, $(INTROSPECTION_FILES))
132
133 girdir = $(datadir)/gir-1.0
134 gir_DATA = Atspi-2.0.gir
135
136 %.typelib: %.gir $(INTROSPECTION_COMPILER)
137         $(AM_V_GEN)$(top_builddir)/libtool --mode=execute \
138             $(INTROSPECTION_COMPILER) \
139                 --includedir=$(srcdir) \
140                 --includedir=. \
141                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
142
143 typelibsdir = $(libdir)/girepository-1.0/
144 typelibs_DATA = $(gir_DATA:.gir=.typelib)
145
146 CLEANFILES = \
147     $(gir_DATA) \
148     $(typelibs_DATA)
149
150 endif