nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/glib.mk
3  
4 #
5 # Generate glibconfig.h
6 #
7 # The timestamp of the stamp file is used to indicate if glibconfig.h is
8 # up to date with respect to config.status. In the usual case, changes
9 # to config.status will not result in changes to glibconfig.h so we
10 # avoid touching its timestamp (in order not to rebuild the whole tree).
11 #
12 DISTCLEANFILES += glibconfig-stamp glibconfig.h glibconfig.h.win32
13 BUILT_SOURCES += glibconfig-stamp
14 configexecincludedir = $(libdir)/glib-2.0/include
15 nodist_configexecinclude_HEADERS = glibconfig.h
16 glibconfig-stamp: ../config.status
17 $(AM_V_GEN) cd $(top_builddir) && \
18 $(SHELL) ./config.status glib/glibconfig.h
19 $(AM_V_GEN) cd $(top_builddir) && \
20 $(SHELL) ./config.status glib/glibconfig.h.win32
21 @touch glibconfig-stamp
22  
23  
24  
25 if HAVE_GOOD_PRINTF
26 else
27 PRINTF_SUBDIR = gnulib
28 printf_la = gnulib/libgnulib.la
29 endif
30  
31 if USE_SYSTEM_PCRE
32 else
33 MAYBE_PCRE = pcre
34 endif
35  
36 SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre . tests
37 DIST_SUBDIRS = libcharset gnulib pcre update-pcre tests
38  
39 AM_CPPFLAGS = \
40 $(glib_INCLUDES) \
41 $(pcre_inc) \
42 -DG_LOG_DOMAIN=\"GLib\" \
43 $(GLIB_DEBUG_FLAGS) \
44 -DGLIB_COMPILATION \
45 -DPCRE_STATIC
46  
47 AM_CFLAGS = $(GLIB_WARN_CFLAGS)
48  
49 MIRRORING_TAB_SOURCE = \
50 glib-mirroring-tab/Makefile \
51 glib-mirroring-tab/gen-mirroring-tab.c \
52 glib-mirroring-tab/packtab.h \
53 glib-mirroring-tab/packtab.c
54  
55 # The compilation of GRegex can be disabled, but the source files must
56 # be distributed.
57 EXTRA_DIST += \
58 makefile.msc.in \
59 glib.rc.in \
60 gen-unicode-tables.pl \
61 glibconfig.h.win32.in \
62 gregex.c \
63 gregex.h \
64 win_iconv.c \
65 libglib-gdb.py.in \
66 docs.c \
67 gconstructor.h \
68 $(MIRRORING_TAB_SOURCE)
69  
70 CLEANFILES += libglib-gdb.py
71  
72 # These may be in the builddir too
73 BUILT_EXTRA_DIST += \
74 makefile.msc \
75 glibconfig.h.win32 \
76 glib.rc
77  
78 lib_LTLIBRARIES = libglib-2.0.la
79  
80 if OS_WIN32_AND_DLL_COMPILATION
81 if MS_LIB_AVAILABLE
82 noinst_DATA += glib-2.0.lib
83  
84 install_ms_lib_cmd = $(INSTALL) glib-2.0.lib $(DESTDIR)$(libdir)
85 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/glib-2.0.lib
86 endif
87 endif
88  
89 install-ms-lib:
90 $(install_ms_lib_cmd)
91  
92 uninstall-ms-lib:
93 $(uninstall_ms_lib_cmd)
94  
95 deprecated_sources = \
96 deprecated/gallocator.c \
97 deprecated/gcache.c \
98 deprecated/gcompletion.c \
99 deprecated/grel.c \
100 deprecated/gthread-deprecated.c
101  
102 libglib_2_0_la_SOURCES = \
103 $(deprecated_sources) \
104 glib_probes.d \
105 garray.c \
106 gasyncqueue.c \
107 gasyncqueueprivate.h \
108 gatomic.c \
109 gbacktrace.c \
110 gbase64.c \
111 gbitlock.c \
112 gbookmarkfile.c \
113 gbsearcharray.h \
114 gbytes.c \
115 gbytes.h \
116 gcharset.c \
117 gcharsetprivate.h \
118 gchecksum.c \
119 gconvert.c \
120 gdataset.c \
121 gdatasetprivate.h \
122 gdate.c \
123 gdatetime.c \
124 gdir.c \
125 genviron.c \
126 gerror.c \
127 gfileutils.c \
128 ggettext.c \
129 ghash.c \
130 ghmac.c \
131 ghook.c \
132 ghostutils.c \
133 giochannel.c \
134 gkeyfile.c \
135 glibintl.h \
136 glib_trace.h \
137 glib-init.h \
138 glib-init.c \
139 glib-private.h \
140 glib-private.c \
141 glist.c \
142 gmain-internal.h \
143 gmain.c \
144 gmappedfile.c \
145 gmarkup.c \
146 gmem.c \
147 gmessages.c \
148 gmirroringtable.h \
149 gnode.c \
150 goption.c \
151 gpattern.c \
152 gpoll.c \
153 gprimes.c \
154 gqsort.c \
155 gquark.c \
156 gqueue.c \
157 grand.c \
158 gregex.c \
159 gscanner.c \
160 gscripttable.h \
161 gsequence.c \
162 gshell.c \
163 gslice.c \
164 gslist.c \
165 gstdio.c \
166 gstrfuncs.c \
167 gstring.c \
168 gstringchunk.c \
169 gtestutils.c \
170 gthread.c \
171 gthreadprivate.h \
172 gthreadpool.c \
173 gtimer.c \
174 gtimezone.c \
175 gtranslit.c \
176 gtranslit-data.h \
177 gtrashstack.c \
178 gtree.c \
179 guniprop.c \
180 gutf8.c \
181 gunibreak.h \
182 gunibreak.c \
183 gunichartables.h \
184 gunicollate.c \
185 gunicomp.h \
186 gunidecomp.h \
187 gunidecomp.c \
188 gunicodeprivate.h \
189 gurifuncs.c \
190 gutils.c \
191 gvariant.h \
192 gvariant.c \
193 gvariant-core.h \
194 gvariant-core.c \
195 gvariant-internal.h \
196 gvariant-parser.c \
197 gvariant-serialiser.h \
198 gvariant-serialiser.c \
199 gvarianttypeinfo.h \
200 gvarianttypeinfo.c \
201 gvarianttype.c \
202 gversion.c \
203 gwakeup.h \
204 gwakeup.c \
205 gprintf.c \
206 gprintfint.h \
207 valgrind.h
208  
209 if OS_UNIX
210 libglib_2_0_la_SOURCES += glib-unix.c
211 endif
212  
213 if THREADS_WIN32
214 libglib_2_0_la_SOURCES += gthread-win32.c
215 else
216 if THREADS_POSIX
217 libglib_2_0_la_SOURCES += gthread-posix.c
218 endif
219 endif
220  
221 EXTRA_libglib_2_0_la_SOURCES = \
222 giounix.c \
223 giowin32.c \
224 gspawn.c \
225 gspawn-win32.c \
226 gwin32.c
227  
228 glibincludedir=$(includedir)/glib-2.0
229 glibinclude_HEADERS = \
230 glib-unix.h \
231 glib-object.h \
232 glib.h
233  
234 deprecatedincludedir=$(includedir)/glib-2.0/glib/deprecated
235 deprecatedinclude_HEADERS = \
236 deprecated/gallocator.h \
237 deprecated/gcache.h \
238 deprecated/gcompletion.h \
239 deprecated/gmain.h \
240 deprecated/grel.h \
241 deprecated/gthread.h
242  
243 glibsubincludedir=$(includedir)/glib-2.0/glib
244 glibsubinclude_HEADERS = \
245 glib-autocleanups.h \
246 galloca.h \
247 garray.h \
248 gasyncqueue.h \
249 gatomic.h \
250 gbacktrace.h \
251 gbase64.h \
252 gbitlock.h \
253 gbookmarkfile.h \
254 gbytes.h \
255 gcharset.h \
256 gchecksum.h \
257 gconvert.h \
258 gdataset.h \
259 gdate.h \
260 gdatetime.h \
261 gdir.h \
262 genviron.h \
263 gerror.h \
264 gfileutils.h \
265 ggettext.h \
266 ghash.h \
267 ghmac.h \
268 ghook.h \
269 ghostutils.h \
270 gi18n.h \
271 gi18n-lib.h \
272 giochannel.h \
273 gkeyfile.h \
274 glist.h \
275 gmacros.h \
276 gmain.h \
277 gmappedfile.h \
278 gmarkup.h \
279 gmem.h \
280 gmessages.h \
281 gnode.h \
282 goption.h \
283 gpattern.h \
284 gpoll.h \
285 gprimes.h \
286 gqsort.h \
287 gquark.h \
288 gqueue.h \
289 grand.h \
290 gregex.h \
291 gscanner.h \
292 gsequence.h \
293 gshell.h \
294 gslice.h \
295 gslist.h \
296 gspawn.h \
297 gstdio.h \
298 gstrfuncs.h \
299 gtestutils.h \
300 gstring.h \
301 gstringchunk.h \
302 gthread.h \
303 gthreadpool.h \
304 gtimer.h \
305 gtimezone.h \
306 gtrashstack.h \
307 gtree.h \
308 gtypes.h \
309 gunicode.h \
310 gurifuncs.h \
311 gutils.h \
312 gvarianttype.h \
313 gvariant.h \
314 gversion.h \
315 gversionmacros.h \
316 gwin32.h \
317 gprintf.h
318  
319 # This is read by gobject-introspection/misc/ and gtk-doc
320 glib-public-headers.txt: Makefile
321 $(AM_V_GEN) echo $(glibinclude_HEADERS) $(glibsubinclude_HEADERS) > $@.tmp && mv $@.tmp $@
322  
323 CLEANFILES += glib-public-headers.txt
324  
325 all-local: glib-public-headers.txt
326  
327 install-data-local: install-ms-lib
328 @if test -f $(glibincludedir)/glist.h ; then \
329 echo "*** Old headers found in $(glibincludedir). You should remove the" ; \
330 echo "*** contents of this directory and type 'make install' again." ; \
331 false ; \
332 fi
333  
334 uninstall-local: uninstall-ms-lib uninstall-gdb
335  
336 if PLATFORM_WIN32
337 no_undefined = -no-undefined
338 endif
339  
340 if OS_WIN32_AND_DLL_COMPILATION
341 glib_win32_res = glib-win32-res.o
342 glib_win32_res_ldflag = -Wl,$(glib_win32_res)
343 endif
344  
345 if USE_SYSTEM_PCRE
346 pcre_lib = $(PCRE_LIBS)
347 pcre_inc = $(PCRE_CFLAGS)
348 else
349 pcre_lib = pcre/libpcre.la
350 pcre_inc =
351 endif
352  
353 libglib_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
354 libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib) $(G_THREAD_LIBS_EXTRA) $(G_THREAD_LIBS_FOR_GTHREAD)
355 libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) $(glib_def)
356  
357 libglib_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
358 $(glib_win32_res_ldflag) \
359 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
360 -export-dynamic $(no_undefined)
361  
362 INSTALL_PROGS=
363  
364 if ENABLE_DTRACE
365 DTCOMPILE = $(patsubst -W%,,$(LTCOMPILE))
366 DTCFLAGS = $(patsubst -W%,,$(CFLAGS))
367  
368 glib_probes.h: glib_probes.d
369 $(AM_V_GEN) $(DTRACE) -C -h -s $< -o $@.tmp
370 @$(SED) -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," < $@.tmp > $@ && rm -f $@.tmp
371  
372 glib_probes.lo: glib_probes.d
373 $(AM_V_GEN) env CC="$(DTCOMPILE)" CFLAGS="$(DTCFLAGS)" $(DTRACE) -G -s $< -o $@
374  
375 BUILT_SOURCES += glib_probes.h glib_probes.lo
376 CLEANFILES += glib_probes.h glib_probes.h.tmp
377 libglib_2_0_la_LIBADD += glib_probes.lo
378 endif
379  
380 tapset_in_files = glib.stp.in
381 tapsetdir = @ABS_TAPSET_DIR@
382 EXTRA_DIST += $(tapset_in_files)
383  
384 if ENABLE_SYSTEMTAP
385 tapset_DATA = $(tapset_in_files:.stp.in=.stp)
386 CLEANFILES += $(tapset_in_files:.stp.in=.stp)
387  
388 $(tapset_DATA): %.stp: %.stp.in Makefile
389 $(AM_V_GEN)$(SED) \
390 -e 's|[@]ABS_GLIB_RUNTIME_LIBDIR[@]|$(ABS_GLIB_RUNTIME_LIBDIR)|g' \
391 -e 's|[@]LT_CURRENT[@]|$(LT_CURRENT)|g' \
392 -e 's|[@]LT_REVISION[@]|$(LT_REVISION)|g' \
393 $< > $@
394 endif
395  
396 gspawn-win32-helper-console.c:
397 echo '#define HELPER_CONSOLE' >$@
398 echo '#include "gspawn-win32-helper.c"' >>$@
399  
400 gspawn-win64-helper.c:
401 echo '#include "gspawn-win32-helper.c"' >$@
402  
403 gspawn-win64-helper-console.c:
404 echo '#define HELPER_CONSOLE' >$@
405 echo '#include "gspawn-win32-helper.c"' >>$@
406  
407  
408 if OS_WIN32
409 if OS_WIN32_X64
410 INSTALL_PROGS += gspawn-win64-helper gspawn-win64-helper-console
411 gspawn_win64_helper_LDADD = libglib-2.0.la
412 gspawn_win64_helper_LDFLAGS = -mwindows
413 gspawn_win64_helper_console_LDADD = libglib-2.0.la
414 else
415 INSTALL_PROGS += gspawn-win32-helper gspawn-win32-helper-console
416 gspawn_win32_helper_LDADD = libglib-2.0.la
417 gspawn_win32_helper_LDFLAGS = -mwindows
418 gspawn_win32_helper_console_LDADD = libglib-2.0.la
419 endif
420 endif
421  
422 glib-win32-res.o: glib.rc
423 $(WINDRES) glib.rc $@
424  
425 bin_PROGRAMS = ${INSTALL_PROGS}
426  
427 if OS_UNIX
428  
429 INSTALL_PROGS += gtester
430 gtester_SOURCES = gtester.c
431 gtester_LDADD = libglib-2.0.la
432  
433 auto_config_binscripts = gtester-report
434 bin_SCRIPTS = ${auto_config_binscripts}
435 EXTRA_DIST += ${auto_config_binscripts}
436  
437 CONFIGVARS = \
438 "bindir" : "${bindir}", \
439 "glib-version" : "${GLIB_VERSION}"
440  
441 install-exec-hook:
442 for sf in ${auto_config_binscripts} ; do \
443 mv -f "$(DESTDIR)$(bindir)/$$sf" "$(DESTDIR)$(bindir)/$$sf".tmp \
444 && sed < "$(DESTDIR)$(bindir)/$$sf".tmp > "$(DESTDIR)$(bindir)/$$sf" \
445 -e '1,24s|^ *#@PKGINSTALL_CONFIGVARS_IN24LINES@| ${CONFIGVARS}|' \
446 -e '1,1s|#! /usr/bin/env python.*|#!${PYTHON}|' \
447 || exit $$? ; \
448 chmod a+x $(DESTDIR)$(bindir)/$$sf ; \
449 rm -f "$(DESTDIR)$(bindir)/$$sf".tmp ; \
450 done
451  
452 endif
453  
454 glib.def: libglib-2.0.la
455 $(AM_V_GEN) dumpbin.exe -exports .libs/libglib-2.0-0.dll | awk 'BEGIN { print "EXPORTS" } / +[[:digit:]]+ +[[:xdigit:]]+ +[[:xdigit:]]+/{ print $$4 }' > glib.def.tmp && mv glib.def.tmp glib.def
456  
457 glib-2.0.lib: libglib-2.0.la glib.def
458 $(AM_V_GEN) lib.exe -machine:@LIB_EXE_MACHINE_FLAG@ -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/glib.def -out:$@
459  
460 # ------ MSVC Project File Generation ------
461 MSVCPROJS = glib
462  
463 glib_FILES = $(libglib_2_0_la_SOURCES)
464 glib_EXCLUDES = *-unix.c|gthread-*.c
465  
466 glib_HEADERS_DIR = $(glibsubincludedir)
467 glib_HEADERS_INST = $(deprecatedinclude_HEADERS) $(glibsubinclude_HEADERS)
468 glib_HEADERS_EXCLUDES = dummy
469  
470 include $(top_srcdir)/build/Makefile.msvcproj
471  
472 dist-hook: $(BUILT_EXTRA_DIST) $(top_builddir)/build/win32/vs9/glib.vcproj $(top_builddir)/build/win32/vs9/glib.headers
473 files='$(BUILT_EXTRA_DIST)'; \
474 for f in $$files; do \
475 if test -f $$f; then d=.; else d=$(srcdir); fi; \
476 cp $$d/$$f $(distdir) || exit 1; done
477  
478 # install gdb scripts
479 gdbdir = $(datadir)/glib-2.0/gdb
480 dist_gdb_SCRIPTS = glib.py
481  
482 libglib-gdb.py: libglib-gdb.py.in
483 $(AM_V_GEN) $(SED) -e "s|\@datadir\@|$(datadir)|" $(srcdir)/libglib-gdb.py.in > $(builddir)/libglib-gdb.py
484  
485 if HAVE_GLIB_RUNTIME_LIBDIR
486 ABS_GLIB_RUNTIME_LIBDIR = $(realpath $(libdir)/$(GLIB_RUNTIME_LIBDIR))
487 else
488 ABS_GLIB_RUNTIME_LIBDIR = $(libdir)
489 endif
490  
491 install-data-hook: libglib-gdb.py
492 mkdir -p $(DESTDIR)$(datadir)/gdb/auto-load$(ABS_GLIB_RUNTIME_LIBDIR)
493 $(INSTALL) $(builddir)/libglib-gdb.py $(DESTDIR)$(datadir)/gdb/auto-load$(ABS_GLIB_RUNTIME_LIBDIR)/libglib-2.0.so.0.$(LT_CURRENT).$(LT_REVISION)-gdb.py
494 if HAVE_GLIB_RUNTIME_LIBDIR
495 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
496 mv $(DESTDIR)$(libdir)/libglib-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
497 mv $(DESTDIR)$(libdir)/libglib-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
498 rm -f $(DESTDIR)$(libdir)/libglib-2.0.so
499 ln -s $(GLIB_RUNTIME_LIBDIR)/libglib-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libglib-2.0.so
500 endif
501  
502 uninstall-gdb:
503 -rm -r $(DESTDIR)$(datadir)/gdb