Add a note about g_strreverse() and UTF-8.
[platform/upstream/glib.git] / glib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 SUBDIRS=libcharset
4
5 INCLUDES = -I$(top_srcdir) -DG_LOG_DOMAIN=\"GLib\" \
6         @GLIB_DEBUG_FLAGS@ -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION 
7
8 EXTRA_DIST =                    \
9         makefile.mingw.in       \
10         makefile.msc.in         \
11         glib.rc.in              \
12         gen-unicode-tables.pl   \
13         glib.def
14
15 # These may be in the builddir too
16 BUILT_EXTRA_DIST =              \
17         makefile.msc            \
18         makefile.mingw          \
19         glib.rc
20
21 lib_LTLIBRARIES = libglib-2.0.la
22
23 if MS_LIB_AVAILABLE
24 noinst_DATA = glib-2.0.lib
25
26 install-ms-lib:
27         $(INSTALL) glib-2.0.lib $(DESTDIR)$(libdir)
28
29 uninstall-ms-lib:
30         -rm $(DESTDIR)$(libdir)/glib-2.0.lib
31 else
32 install-ms-lib:
33 uninstall-ms-lib:
34 endif
35
36 libglib_2_0_la_SOURCES =        \
37         garray.c                \
38         gasyncqueue.c           \
39         gbacktrace.c            \
40         gbsearcharray.c         \
41         gbsearcharray.h         \
42         gcache.c                \
43         gcompletion.c           \
44         gconvert.c              \
45         gdataset.c              \
46         gdate.c                 \
47         gdir.c                  \
48         gerror.c                \
49         gfileutils.c            \
50         ghash.c                 \
51         ghook.c                 \
52         giochannel.c            \
53         glibintl.h              \
54         glist.c                 \
55         gmain.c                 \
56         gmarkup.c               \
57         gmem.c                  \
58         gmessages.c             \
59         gnode.c                 \
60         gpattern.c              \
61         gprimes.c               \
62         gqsort.c                \
63         gqueue.c                \
64         grel.c                  \
65         grand.c                 \
66         gscanner.c              \
67         gshell.c                \
68         gslist.c                \
69         gstrfuncs.c             \
70         gstring.c               \
71         gthread.c               \
72         gthreadpool.c           \
73         gtimer.c                \
74         gtree.c                 \
75         guniprop.c              \
76         gutf8.c                 \
77         gunibreak.h             \
78         gunibreak.c             \
79         gunichartables.h        \
80         gunicollate.c           \
81         gunicomp.h              \
82         gunidecomp.h            \
83         gunidecomp.c            \
84         gutils.c                \
85         gdebug.h
86
87 EXTRA_libglib_2_0_la_SOURCES = \
88         giounix.c       \
89         giowin32.c      \
90         gspawn.c        \
91         gspawn-win32.c  \
92         gwin32.c
93
94 glibincludedir=$(includedir)/glib-2.0
95 glibinclude_HEADERS =   \
96         glib-object.h   \
97         glib.h
98
99 glibsubincludedir=$(includedir)/glib-2.0/glib
100 glibsubinclude_HEADERS =   \
101         galloca.h       \
102         garray.h        \
103         gasyncqueue.h   \
104         gbacktrace.h    \
105         gcache.h        \
106         gcompletion.h   \
107         gconvert.h      \
108         gdataset.h      \
109         gdate.h         \
110         gdir.h          \
111         gerror.h        \
112         gfileutils.h    \
113         ghash.h         \
114         ghook.h         \
115         giochannel.h    \
116         glist.h         \
117         gmacros.h       \
118         gmain.h         \
119         gmarkup.h       \
120         gmem.h          \
121         gmessages.h     \
122         gnode.h         \
123         gpattern.h      \
124         gprimes.h       \
125         gqsort.h        \
126         gquark.h        \
127         gqueue.h        \
128         grand.h         \
129         grel.h          \
130         gscanner.h      \
131         gshell.h        \
132         gslist.h        \
133         gspawn.h        \
134         gstrfuncs.h     \
135         gstring.h       \
136         gthread.h       \
137         gthreadpool.h   \
138         gtimer.h        \
139         gtree.h         \
140         gtypes.h        \
141         gunicode.h      \
142         gutils.h        \
143         gwin32.h
144
145 install-data-local: install-ms-lib install-libtool-import-lib
146         @if test -f $(glibincludedir)/glist.h ; then                                    \
147           echo "*** Old headers found in $(glibincludedir). You should remove the" ;    \
148           echo "*** contents of this directory and type 'make install' again." ;        \
149           false ;                                                                       \
150         fi
151
152 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
153
154 if PLATFORM_WIN32
155 no_undefined = -no-undefined
156 endif
157
158 if OS_WIN32
159 # This requires a very new libtool
160 export_symbols = -export-symbols glib.def
161
162 install-libtool-import-lib:
163         $(INSTALL) .libs/libglib-2.0.dll.a $(DESTDIR)$(libdir)
164 uninstall-libtool-import-lib:
165         -rm $(DESTDIR)$(libdir)/libglib-2.0.dll.a
166 else
167 install-libtool-import-lib:
168 uninstall-libtool-import-lib:
169 endif
170
171 libglib_2_0_la_LIBADD = libcharset/libcharset.la @GIO@ @GSPAWN@ @PLATFORMDEP@ @G_LIB_WIN32_RESOURCE@ @ICONV_LIBS@ @G_LIBS_EXTRA@ 
172 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la @GIO@ @GSPAWN@ @PLATFORMDEP@ @G_LIB_WIN32_RESOURCE@ @GLIB_DEF@
173
174 libglib_2_0_la_LDFLAGS = \
175         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
176         -export-dynamic $(no_undefined) $(export_symbols)
177
178 if OS_WIN32
179 bin_PROGRAMS = gspawn-win32-helper
180 gspawn_win32_helper_LDADD = libglib-2.0.la
181 gspawn_win32_helper_LDFLAGS = -mwindows
182
183 @G_LIB_WIN32_RESOURCE@ : glib.rc
184         $(top_srcdir)/build/win32/lt-compile-resource glib.rc @G_LIB_WIN32_RESOURCE@
185 endif
186
187 glib-2.0.lib: libglib-2.0.la glib.def
188         lib -name:libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll -def:glib.def -out:$@
189
190 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib/glib.rc.in
191         cd $(top_builddir) && CONFIG_FILES=glib/$@ CONFIG_HEADERS= $(SHELL) ./config.status
192
193 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/glib/makefile.mingw.in
194         cd $(top_builddir) && CONFIG_FILES=glib/$@ CONFIG_HEADERS= $(SHELL) ./config.status
195
196 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/glib/makefile.msc.in
197         cd $(top_builddir) && CONFIG_FILES=glib/$@ CONFIG_HEADERS= $(SHELL) ./config.status
198
199 dist-hook: $(BUILT_EXTRA_DIST)
200         files='$(BUILT_EXTRA_DIST)'; \
201         for f in $$files; do \
202           if test -f $$f; then d=.; else d=$(srcdir); fi; \
203           cp $$d/$$f $(distdir) || exit 1; done