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