Set automake conditionals OS_WIN32 if on (native) Win32, and
[platform/upstream/atk.git] / atk / Makefile.am
1 EXTRA_DIST = atk.def
2 if OS_WIN32
3 export_symbols = -export-symbols atk.def
4 endif
5
6 lib_LTLIBRARIES = libatk.la
7
8 if MS_LIB_AVAILABLE
9 noinst_DATA = atk.lib
10
11 install-data-local:
12         cp atk.lib $(DESTDIR)$(libdir)
13
14 uninstall-local:
15         -rm $(DESTDIR)$(libdir)/atk.lib
16 endif
17
18 libatk_la_SOURCES =             \
19         atkaction.c             \
20         atkcomponent.c          \
21         atkdocument.c           \
22         atkeditabletext.c       \
23         atkhyperlink.c          \
24         atkhypertext.c          \
25         atkimage.c              \
26         atknoopobject.c         \
27         atknoopobjectfactory.c  \
28         atkobject.c             \
29         atkobjectfactory.c      \
30         atkregistry.c           \
31         atkrelation.c           \
32         atkrelationset.c        \
33         atkselection.c          \
34         atkstate.c              \
35         atkstateset.c           \
36         atkstreamablecontent.c  \
37         atktable.c              \
38         atktext.c               \
39         atkutil.c               \
40         atkvalue.c
41
42 EXTRA_DIST += atkmarshal.list
43 MAINTAINERCLEANFILES +=         \
44         atkmarshal.c            \
45         atkmarshal.h            \
46         stamp-atkmarshal.c      \
47         stamp-atkmarshal.h
48
49 INCLUDES = \
50         -I$(top_srcdir)         \
51         @DEP_CFLAGS@
52
53 LDFLAGS =  \
54         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)    \
55         -no-undefined                                           \
56         $(export_symbols)                                       \
57         @DEP_LIBS@
58
59 libatkincludedir=$(includedir)/atk-1.0/atk
60
61 libatkinclude_HEADERS = \
62         atk.h                   \
63         atkaction.h             \
64         atkcomponent.h          \
65         atkdocument.h           \
66         atkeditabletext.h       \
67         atkhyperlink.h          \
68         atkhypertext.h          \
69         atknoopobject.h         \
70         atknoopobjectfactory.h  \
71         atkobject.h             \
72         atkobjectfactory.h      \
73         atkimage.h              \
74         atkregistry.h           \
75         atkrelation.h           \
76         atkrelationset.h        \
77         atkselection.h          \
78         atkstate.h              \
79         atkstateset.h           \
80         atkstreamablecontent.h  \
81         atktable.h              \
82         atktext.h               \
83         atkutil.h               \
84         atkvalue.h
85
86 $(libatk_la_OBJECTS): atkmarshal.c atkmarshal.h
87
88 atkmarshal.h: @REBUILD@ stamp-atkmarshal.h
89         @true
90 stamp-atkmarshal.h: atkmarshal.list
91         case @GLIB_GENMARSHAL@ in                                                                       \
92            .*) glib_genmarshal=`pwd`/@GLIB_GENMARSHAL@ ;;                               \
93            *) glib_genmarshal=@GLIB_GENMARSHAL@ ;;                                                      \
94         esac;                                                                                           \
95         $$glib_genmarshal --prefix=atk_marshal $(srcdir)/atkmarshal.list --header >> xgen-gmh           \
96         && (cmp -s xgen-gmh $(srcdir)/atkmarshal.h || cp xgen-gmh $(srcdir)/atkmarshal.h)               \
97         && rm -f xgen-gmh xgen-gmh~                                                                     \
98         && echo timestamp > $(@F)
99
100 atkmarshal.c: @REBUILD@ stamp-atkmarshal.c
101         @true
102 stamp-atkmarshal.c: atkmarshal.list
103         case @GLIB_GENMARSHAL@ in                                                                       \
104            .*) glib_genmarshal=`pwd`/@GLIB_GENMARSHAL@ ;;                               \
105            *) glib_genmarshal=@GLIB_GENMARSHAL@ ;;                                                      \
106         esac;                                                                                           \
107         $$glib_genmarshal --prefix=atk_marshal $(srcdir)/atkmarshal.list --body >> xgen-gmc             \
108         && (cmp -s xgen-gmc $(srcdir)/atkmarshal.c || cp xgen-gmc $(srcdir)/atkmarshal.c)               \
109         && rm -f xgen-gmc xgen-gmc~                                                                     \
110         && echo timestamp > $(@F)
111
112 atk.lib: libatk.la atk.def
113         lib -name:libatk-@LT_CURRENT_MINUS_AGE@.dll -def:atk.def -out:$@