2003-01-15 Padraig O'Briain <padraig.obriain@sun.com
[platform/core/uifw/at-spi2-atk.git] / libspi / Makefile.am
1 lib_LTLIBRARIES = libspi.la
2
3 INCLUDES = -I$(top_srcdir)      \
4            -I$(top_builddir)    \
5            $(LIBSPI_CFLAGS)
6
7 LDFLAGS = @LDFLAGS@ $(LIBSPI_LIBS) $(XTST_LIBS) @LT_VERSION_INFO@
8
9 #DEBUG_CFLAGS=-DSPI_DEBUG
10
11 CFLAGS = @CFLAGS@ $(DEBUG_CFLAGS)
12
13 libspiincludedir = $(includedir)/at-spi-1.0/libspi
14
15 libspiinclude_HEADERS =         \
16         Accessibility.h         \
17         accessible.h            \
18         eventlistener.h         \
19         action.h                \
20         application.h           \
21         base.h                  \
22         component.h             \
23         editabletext.h          \
24         hyperlink.h             \
25         hypertext.h             \
26         image.h                 \
27         devicelistener.h        \
28         keystrokelistener.h     \
29         keymasks.h              \
30         libspi.h                \
31         listener.h              \
32         relation.h              \
33         remoteobject.h          \
34         selection.h             \
35         stateset.h              \
36         table.h                 \
37         text.h                  \
38         value.h
39
40 IDL_OUT = Accessibility.h Accessibility-stubs.c Accessibility-skels.c Accessibility-common.c
41
42 IDL_DEPS = \
43         $(top_srcdir)/idl/Accessibility.idl                     \
44         $(top_srcdir)/idl/Accessibility_Accessible.idl          \
45         $(top_srcdir)/idl/Accessibility_Action.idl              \
46         $(top_srcdir)/idl/Accessibility_Application.idl         \
47         $(top_srcdir)/idl/Accessibility_Component.idl           \
48         $(top_srcdir)/idl/Accessibility_Desktop.idl             \
49         $(top_srcdir)/idl/Accessibility_EditableText.idl        \
50         $(top_srcdir)/idl/Accessibility_Event.idl               \
51         $(top_srcdir)/idl/Accessibility_Hyperlink.idl           \
52         $(top_srcdir)/idl/Accessibility_Hypertext.idl           \
53         $(top_srcdir)/idl/Accessibility_Image.idl               \
54         $(top_srcdir)/idl/Accessibility_Registry.idl            \
55         $(top_srcdir)/idl/Accessibility_Relation.idl            \
56         $(top_srcdir)/idl/Accessibility_Role.idl                \
57         $(top_srcdir)/idl/Accessibility_Selection.idl           \
58         $(top_srcdir)/idl/Accessibility_State.idl               \
59         $(top_srcdir)/idl/Accessibility_StreamableContent.idl   \
60         $(top_srcdir)/idl/Accessibility_Table.idl               \
61         $(top_srcdir)/idl/Accessibility_Text.idl                \
62         $(top_srcdir)/idl/Accessibility_Value.idl
63
64
65 BUILT_SOURCES = $(IDL_OUT) Accessibility-imodule.c
66 CLEANFILES+= $(IDL_OUT) Accessibility-imodule.c
67
68 libspi_la_SOURCES =             \
69         accessible.c            \
70         action.c                \
71         application.c           \
72         base.c                  \
73         component.c             \
74         editabletext.c          \
75         hyperlink.c             \
76         hypertext.c             \
77         image.c                 \
78         devicelistener.c        \
79         relation.c              \
80         remoteobject.c          \
81         selection.c             \
82         spi-private.h           \
83         stateset.c              \
84         table.c                 \
85         text.c                  \
86         util.c                  \
87         value.c                 \
88         listener.c              \
89         eventlistener.c         \
90         $(IDL_OUT)
91
92 $(top_srcdir)/libspi/accessible.c $(top_srcdir)/libspi/base.h $(top_srcdir)/libspi/keystrokelistener.h $(top_srcdir)/libspi/libspi.h $(top_srcdir)/libspi/listener.h $(top_srcdir)/libspi/remoteobject.h : Accessibility.h
93
94 IDLFLAGS = -I$(BONOBO_ACTIVATION_IDL_DIR) \
95            -I$(LIBBONOBO_IDL_DIR)         \
96            -I$(top_srcdir)/idl            \
97            --add-imodule
98
99 $(IDL_OUT) Accessibility-imodule.c : $(IDL_DEPS) $(ORBIT_IDL)
100         $(ORBIT_IDL) -D__ACCESSIBILITY_COMPILATION__ $(IDLFLAGS) $(top_srcdir)/idl/Accessibility.idl
101
102 orbittypelibdir = $(libdir)/orbit-2.0
103 orbittypelib_LTLIBRARIES = Accessibility_module.la
104
105 Accessibility_module_la_LDFLAGS = \
106         -export-dynamic -module -avoid-version
107 Accessibility_module_la_SOURCES = \
108         Accessibility-imodule.c
109
110 DONT_DIST_SOURCE = $(IDL_OUT) Accessibility-imodule.c
111
112 dist-hook:
113         for file in $(DONT_DIST_SOURCE) ; do \
114             rm -f $(distdir)/$$file ; \
115         done