Really fix marshal generation.
[platform/upstream/atk.git] / atk / Makefile.am
1
2 lib_LTLIBRARIES = libatk.la
3
4 libatk_la_SOURCES =             \
5         atkaction.c             \
6         atkcomponent.c          \
7         atkeditabletext.c       \
8         atkhyperlink.c          \
9         atkhypertext.c          \
10         atkimage.c              \
11         atknoopobject.c         \
12         atknoopobject.h         \
13         atknoopobjectfactory.c  \
14         atknoopobjectfactory.h  \
15         atkobject.c             \
16         atkobjectfactory.c      \
17         atkregistry.c           \
18         atkrelation.c           \
19         atkrelationset.c        \
20         atkselection.c          \
21         atkstate.c              \
22         atkstateset.c           \
23         atkstreamablecontent.c  \
24         atktable.c              \
25         atktext.c               \
26         atkutil.c               \
27         atkvalue.c
28
29 EXTRA_DIST += atkmarshal.list
30 MAINTAINERCLEANFILES += atkmarshal.c
31
32 INCLUDES = \
33         -I$(top_srcdir)         \
34         @DEP_CFLAGS@
35
36 LDFLAGS =  \
37         -no-undefined   \
38         @DEP_LIBS@
39
40 libatkincludedir=$(includedir)/atk-1.0/atk
41
42 libatkinclude_HEADERS = \
43         atk.h                   \
44         atkaction.h             \
45         atkcomponent.h          \
46         atkeditabletext.h       \
47         atkhyperlink.h          \
48         atkhypertext.h          \
49         atkobject.h             \
50         atkobjectfactory.h      \
51         atkimage.h              \
52         atkregistry.h           \
53         atkrelation.h           \
54         atkrelationset.h        \
55         atkselection.h          \
56         atkstate.h              \
57         atkstateset.h           \
58         atkstreamablecontent.h  \
59         atktable.h              \
60         atktext.h               \
61         atkutil.h               \
62         atkvalue.h
63
64 $(libatk_la_OBJECTS): atkmarshal.c atkmarshal.h
65
66 atkmarshal.h: @REBUILD@ stamp-atkmarshal.h
67         @true
68 stamp-atkmarshal.h: atkmarshal.list
69         case @GLIB_GENMARSHAL@ in                                                                       \
70            .*) glib_genmarshal=`cd $(top_builddir) && pwd`/@GLIB_GENMARSHAL@ ;;                         \
71            *) glib_genmarshal=@GLIB_GENMARSHAL@ ;;                                                      \
72         esac;                                                                                           \
73         $$glib_genmarshal --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh           \
74         && (cmp -s xgen-gmh $(srcdir)/atkmarshal.h || cp xgen-gmh $(srcdir)/atkmarshal.h)               \
75         && rm -f xgen-gmh xgen-gmh~                                                                     \
76         && echo timestamp > $(@F)
77
78 atkmarshal.c: @REBUILD@ stamp-atkmarshal.c
79         @true
80 stamp-atkmarshal.c: atkmarshal.list
81         case @GLIB_GENMARSHAL@ in                                                                       \
82            .*) glib_genmarshal=`cd $(top_builddir) && pwd`/@GLIB_GENMARSHAL@ ;;                         \
83            *) glib_genmarshal=@GLIB_GENMARSHAL@ ;;                                                      \
84         esac;                                                                                           \
85         $$glib_genmarshal --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc             \
86         && (cmp -s xgen-gmc $(srcdir)/atkmarshal.c || cp xgen-gmc $(srcdir)/atkmarshal.c)               \
87         && rm -f xgen-gmc xgen-gmc~                                                                     \
88         && echo timestamp > $(@F)