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