Missing files
[platform/upstream/glib.git] / glib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 if HAVE_GOOD_PRINTF
4 else
5 PRINTF_SUBDIR = gnulib
6 printf_la = gnulib/libgnulib.la
7 endif 
8
9 SUBDIRS = libcharset $(PRINTF_SUBDIR)
10
11 DIST_SUBDIRS = libcharset gnulib
12
13 INCLUDES = -I$(top_srcdir) -DG_LOG_DOMAIN=\"GLib\" \
14         $(GLIB_DEBUG_FLAGS) -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION 
15
16 glib.def: glib.symbols
17         (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/glib.symbols | sed -e '/^$$/d' -e 's/^/        /' -e 's/G_GNUC_[^ ]*//g') > glib.def
18
19 galias.h: glib.symbols
20           $(PERL) $(srcdir)/makegalias.pl < $(srcdir)/glib.symbols > galias.h
21
22 galiasdef.c: glib.symbols
23           $(PERL) $(srcdir)/makegalias.pl -def < $(srcdir)/glib.symbols > galiasdef.c
24
25 if OS_LINUX
26 if HAVE_GNUC_VISIBILITY
27 TESTS = abicheck.sh pltcheck.sh
28 endif
29 endif
30
31 BUILT_SOURCES = galias.h galiasdef.c
32
33 MIRRORING_TAB_SOURCES =                         \
34         glib-mirroring-tab/Makefile             \
35         glib-mirroring-tab/gen-mirroring-tab.c  \
36         glib-mirroring-tab/packtab.h            \
37         glib-mirroring-tab/packtab.c
38
39 EXTRA_DIST =                    \
40         makefile.msc.in         \
41         glib.rc.in              \
42         gen-unicode-tables.pl   \
43         gen-script-table.pl     \
44         makegalias.pl           \
45         abicheck.sh             \
46         pltcheck.sh             \
47         glib.symbols            \
48         $(MIRRORING_TAB_SOURCES)
49
50 # These may be in the builddir too
51 BUILT_EXTRA_DIST =              \
52         makefile.msc            \
53         glib.rc                 \
54         galias.h                \
55         galiasdef.c
56
57 lib_LTLIBRARIES = libglib-2.0.la
58
59 if MS_LIB_AVAILABLE
60 noinst_DATA = glib-2.0.lib
61
62 install-ms-lib:
63         $(INSTALL) glib-2.0.lib $(DESTDIR)$(libdir)
64
65 uninstall-ms-lib:
66         -rm $(DESTDIR)$(libdir)/glib-2.0.lib
67 else
68 install-ms-lib:
69 uninstall-ms-lib:
70 endif
71
72 libglib_2_0_la_SOURCES =        \
73         garray.c                \
74         gasyncqueue.c           \
75         gatomic.c               \
76         gbacktrace.c            \
77         gbase64.c               \
78         gbookmarkfile.c         \
79         gbsearcharray.h         \
80         gcache.c                \
81         gcompletion.c           \
82         gconvert.c              \
83         gdataset.c              \
84         gdatasetprivate.h       \
85         gdate.c                 \
86         gdir.c                  \
87         gerror.c                \
88         gfileutils.c            \
89         ghash.c                 \
90         ghook.c                 \
91         giochannel.c            \
92         gkeyfile.c              \
93         glibintl.h              \
94         glist.c                 \
95         gmain.c                 \
96         gmappedfile.c           \
97         gmarkup.c               \
98         gmem.c                  \
99         gmessages.c             \
100         gmirroringtable.h       \
101         gnode.c                 \
102         goption.c               \
103         gpattern.c              \
104         gprimes.c               \
105         gqsort.c                \
106         gqueue.c                \
107         grel.c                  \
108         grand.c                 \
109         gscanner.c              \
110         gscripttable.h          \
111         gshell.c                \
112         gslice.c                \
113         gslist.c                \
114         gstdio.c                \
115         gstrfuncs.c             \
116         gstring.c               \
117         gthread.c               \
118         gthreadprivate.h        \
119         gthreadpool.c           \
120         gtimer.c                \
121         gtree.c                 \
122         guniprop.c              \
123         gutf8.c                 \
124         gunibreak.h             \
125         gunibreak.c             \
126         gunichartables.h        \
127         gunicollate.c           \
128         gunicomp.h              \
129         gunidecomp.h            \
130         gunidecomp.c            \
131         gunicodeprivate.h       \
132         gutils.c                \
133         gdebug.h                \
134         gprintf.c               \
135         gprintfint.h
136
137 EXTRA_libglib_2_0_la_SOURCES = \
138         giounix.c       \
139         giowin32.c      \
140         gspawn.c        \
141         gspawn-win32.c  \
142         gwin32.c
143
144 glibincludedir=$(includedir)/glib-2.0
145 glibinclude_HEADERS =   \
146         glib-object.h   \
147         glib.h
148
149 glibsubincludedir=$(includedir)/glib-2.0/glib
150 glibsubinclude_HEADERS =   \
151         galloca.h       \
152         garray.h        \
153         gasyncqueue.h   \
154         gatomic.h       \
155         gbacktrace.h    \
156         gbase64.h       \
157         gbookmarkfile.h \
158         gcache.h        \
159         gcompletion.h   \
160         gconvert.h      \
161         gdataset.h      \
162         gdate.h         \
163         gdir.h          \
164         gerror.h        \
165         gfileutils.h    \
166         ghash.h         \
167         ghook.h         \
168         gi18n.h         \
169         gi18n-lib.h     \
170         giochannel.h    \
171         gkeyfile.h      \
172         glist.h         \
173         gmacros.h       \
174         gmain.h         \
175         gmappedfile.h   \
176         gmarkup.h       \
177         gmem.h          \
178         gmessages.h     \
179         gnode.h         \
180         goption.h       \
181         gpattern.h      \
182         gprimes.h       \
183         gqsort.h        \
184         gquark.h        \
185         gqueue.h        \
186         grand.h         \
187         grel.h          \
188         gscanner.h      \
189         gshell.h        \
190         gslice.h        \
191         gslist.h        \
192         gspawn.h        \
193         gstdio.h        \
194         gstrfuncs.h     \
195         gstring.h       \
196         gthread.h       \
197         gthreadpool.h   \
198         gtimer.h        \
199         gtree.h         \
200         gtypes.h        \
201         gunicode.h      \
202         gutils.h        \
203         gwin32.h        \
204         gprintf.h
205
206 install-data-local: install-ms-lib install-def-file
207         @if test -f $(glibincludedir)/glist.h ; then                                    \
208           echo "*** Old headers found in $(glibincludedir). You should remove the" ;    \
209           echo "*** contents of this directory and type 'make install' again." ;        \
210           false ;                                                                       \
211         fi
212
213 uninstall-local: uninstall-ms-lib uninstall-def-file
214
215 if PLATFORM_WIN32
216 no_undefined = -no-undefined
217 endif
218
219 if OS_WIN32
220 # This requires a very new libtool
221 export_symbols = -export-symbols glib.def
222
223 install-def-file:
224         $(INSTALL) glib.def $(DESTDIR)$(libdir)/glib-2.0.def
225
226 uninstall-def-file:
227         -rm $(DESTDIR)$(libdir)/glib-2.0.def
228 else
229 install-def-file:
230 uninstall-def-file:
231
232 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
233 endif
234
235 if OS_WIN32
236 glib_win32_res = glib-win32-res.o
237 glib_win32_res_ldflag = -Wl,$(glib_win32_res)
238 endif
239
240 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ 
241 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) @GLIB_DEF@
242
243 libglib_2_0_la_LDFLAGS = \
244          $(glib_win32_res_ldflag) \
245         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
246         -export-dynamic $(no_undefined) $(export_symbols)
247
248 if OS_WIN32
249 bin_PROGRAMS = gspawn-win32-helper gspawn-win32-helper-console
250 gspawn_win32_helper_LDADD = libglib-2.0.la
251 gspawn_win32_helper_LDFLAGS = -mwindows
252 gspawn_win32_helper_console_LDADD = libglib-2.0.la
253
254 glib-win32-res.o: glib.rc
255         $(WINDRES) glib.rc $@
256 endif
257
258 gspawn-win32-helper-console.c:
259         echo '#include "gspawn-win32-helper.c"' >$@
260
261 glib-2.0.lib: libglib-2.0.la glib.def
262         lib -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@
263
264 dist-hook: $(BUILT_EXTRA_DIST)
265         files='$(BUILT_EXTRA_DIST)'; \
266         for f in $$files; do \
267           if test -f $$f; then d=.; else d=$(srcdir); fi; \
268           cp $$d/$$f $(distdir) || exit 1; done