nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # GObject - GLib Type, Object, Parameter and Signal Library |
2 | # Copyright (C) 1997,98,99,2000 Tim Janik and Red Hat, Inc. |
||
3 | # |
||
4 | ## Process this file with automake to produce Makefile.in |
||
5 | include $(top_srcdir)/glib.mk |
||
6 | |||
7 | SUBDIRS = . tests |
||
8 | |||
9 | AM_CPPFLAGS = \ |
||
10 | -DG_LOG_DOMAIN=\"GLib-GObject\" \ |
||
11 | $(glib_INCLUDES) \ |
||
12 | $(GLIB_DEBUG_FLAGS) \ |
||
13 | -DGOBJECT_COMPILATION |
||
14 | |||
15 | AM_CFLAGS = $(GLIB_WARN_CFLAGS) |
||
16 | |||
17 | libglib = $(top_builddir)/glib/libglib-2.0.la |
||
18 | |||
19 | # libraries to compile and install |
||
20 | lib_LTLIBRARIES = libgobject-2.0.la |
||
21 | |||
22 | if OS_WIN32_AND_DLL_COMPILATION |
||
23 | if MS_LIB_AVAILABLE |
||
24 | noinst_DATA += gobject-2.0.lib |
||
25 | |||
26 | install_ms_lib_cmd = $(INSTALL) gobject-2.0.lib $(DESTDIR)$(libdir) |
||
27 | uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gobject-2.0.lib |
||
28 | endif |
||
29 | endif |
||
30 | |||
31 | install-ms-lib: |
||
32 | $(install_ms_lib_cmd) |
||
33 | |||
34 | uninstall-ms-lib: |
||
35 | $(uninstall_ms_lib_cmd) |
||
36 | |||
37 | if PLATFORM_WIN32 |
||
38 | no_undefined = -no-undefined |
||
39 | endif |
||
40 | |||
41 | if OS_WIN32_AND_DLL_COMPILATION |
||
42 | gobject_win32_res = gobject-win32-res.o |
||
43 | gobject_win32_res_ldflag = -Wl,$(gobject_win32_res) |
||
44 | endif |
||
45 | |||
46 | libgobjectincludedir = $(includedir)/glib-2.0/gobject |
||
47 | libgobject_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \ |
||
48 | $(gobject_win32_res_ldflag) \ |
||
49 | -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ |
||
50 | -export-dynamic $(no_undefined) |
||
51 | |||
52 | libgobject_2_0_la_CFLAGS = $(AM_CFLAGS) $(LIBFFI_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS) |
||
53 | |||
54 | libgobject_2_0_la_LIBADD = $(libglib) $(LIBFFI_LIBS) |
||
55 | |||
56 | libgobject_2_0_la_DEPENDENCIES = $(gobject_win32_res) |
||
57 | |||
58 | # |
||
59 | # setup source file variables |
||
60 | # |
||
61 | # GObject library header files for public installation |
||
62 | gobject_public_h_sources = \ |
||
63 | gobject-autocleanups.h \ |
||
64 | glib-types.h \ |
||
65 | gbinding.h \ |
||
66 | gboxed.h \ |
||
67 | gclosure.h \ |
||
68 | genums.h \ |
||
69 | gmarshal.h \ |
||
70 | gobject.h \ |
||
71 | gparam.h \ |
||
72 | gparamspecs.h \ |
||
73 | gsignal.h \ |
||
74 | gsourceclosure.h \ |
||
75 | gtype.h \ |
||
76 | gtypemodule.h \ |
||
77 | gtypeplugin.h \ |
||
78 | gvalue.h \ |
||
79 | gvaluearray.h \ |
||
80 | gvaluecollector.h \ |
||
81 | gvaluetypes.h \ |
||
82 | gobjectnotifyqueue.c |
||
83 | |||
84 | # GObject library header files that don't get installed |
||
85 | gobject_private_h_sources = \ |
||
86 | gatomicarray.h \ |
||
87 | gtype-private.h |
||
88 | |||
89 | # GObject library C sources to build the library from |
||
90 | gobject_c_sources = \ |
||
91 | gobject_probes.d \ |
||
92 | gatomicarray.c \ |
||
93 | gbinding.c \ |
||
94 | gboxed.c \ |
||
95 | gclosure.c \ |
||
96 | genums.c \ |
||
97 | gmarshal.c \ |
||
98 | gobject.c \ |
||
99 | gobject_trace.h \ |
||
100 | gparam.c \ |
||
101 | gparamspecs.c \ |
||
102 | gsignal.c \ |
||
103 | gsourceclosure.c \ |
||
104 | gtype.c \ |
||
105 | gtypemodule.c \ |
||
106 | gtypeplugin.c \ |
||
107 | gvalue.c \ |
||
108 | gvaluearray.c \ |
||
109 | gvaluetransform.c \ |
||
110 | gvaluetypes.c |
||
111 | |||
112 | if ENABLE_DTRACE |
||
113 | DTCOMPILE = $(patsubst -W%,,$(LTCOMPILE)) |
||
114 | DTCFLAGS = $(patsubst -W%,,$(CFLAGS)) |
||
115 | |||
116 | gobject_probes.h: gobject_probes.d |
||
117 | $(AM_V_GEN) $(DTRACE) -C -h -s $< -o $@.tmp |
||
118 | @$(SED) -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," < $@.tmp > $@ && rm -f $@.tmp |
||
119 | |||
120 | gobject_probes.lo: gobject_probes.d |
||
121 | $(AM_V_GEN) env CC="$(DTCOMPILE)" CFLAGS="$(DTCFLAGS)" $(DTRACE) -G -s $< -o $@ |
||
122 | |||
123 | BUILT_SOURCES += gobject_probes.h gobject_probes.lo |
||
124 | CLEANFILES += gobject_probes.h |
||
125 | libgobject_2_0_la_LIBADD += gobject_probes.lo |
||
126 | endif |
||
127 | |||
128 | tapset_in_files = gobject.stp.in |
||
129 | EXTRA_DIST += $(tapset_in_files) |
||
130 | |||
131 | if ENABLE_SYSTEMTAP |
||
132 | tapsetdir = @ABS_TAPSET_DIR@ |
||
133 | tapset_DATA = $(tapset_in_files:.stp.in=.stp) |
||
134 | CLEANFILES += $(tapset_in_files:.stp.in=.stp) |
||
135 | |||
136 | $(tapset_DATA): %.stp: %.stp.in Makefile |
||
137 | $(AM_V_GEN)$(SED) \ |
||
138 | -e 's|[@]ABS_GLIB_RUNTIME_LIBDIR[@]|$(ABS_GLIB_RUNTIME_LIBDIR)|g' \ |
||
139 | -e 's|[@]LT_CURRENT[@]|$(LT_CURRENT)|g' \ |
||
140 | -e 's|[@]LT_REVISION[@]|$(LT_REVISION)|g' \ |
||
141 | $< > $@ |
||
142 | endif |
||
143 | |||
144 | # non-header sources (headers should be specified in the above variables) |
||
145 | # that don't serve as direct make target sources, i.e. they don't have |
||
146 | # their own .lo rules and don't get publically installed |
||
147 | gobject_extra_sources = \ |
||
148 | gmarshal.list \ |
||
149 | gmarshal.strings |
||
150 | |||
151 | |||
152 | # |
||
153 | # setup GObject library sources and their dependancies |
||
154 | # |
||
155 | gobject_target_headers = $(gobject_public_h_sources) |
||
156 | gobject_target_sources = $(gobject_c_sources) |
||
157 | EXTRA_HEADERS = |
||
158 | EXTRA_DIST += \ |
||
159 | $(gobject_private_h_sources) \ |
||
160 | $(gobject_extra_sources) \ |
||
161 | marshal-genstrings.pl |
||
162 | |||
163 | # This is read by gobject-introspection/misc/ and gtk-doc |
||
164 | gobject-public-headers.txt: Makefile |
||
165 | $(AM_V_GEN) echo $(gobject_public_h_sources) > $@.tmp && mv $@.tmp $@ |
||
166 | |||
167 | CLEANFILES += gobject-public-headers.txt |
||
168 | |||
169 | all-local: gobject-public-headers.txt |
||
170 | |||
171 | # |
||
172 | # rules to generate built sources |
||
173 | # |
||
174 | # setup autogeneration dependancies |
||
175 | gen_sources = xgen-gmh xgen-gmc xgen-gms |
||
176 | CLEANFILES += $(gen_sources) |
||
177 | |||
178 | # normal autogeneration rules |
||
179 | # all autogenerated files need to be generated in the srcdir, |
||
180 | # so old versions get remade and are not confused with newer |
||
181 | # versions in the build dir. thus a development setup requires |
||
182 | # srcdir to be writable, passing --disable-rebuilds to |
||
183 | # ../configure will supress all autogeneration rules. |
||
184 | |||
185 | |||
186 | gmarshal.strings: @REBUILD@ $(srcdir)/gmarshal.list |
||
187 | $(AM_V_GEN) grep '^[A-Z]' $(srcdir)/gmarshal.list \ |
||
188 | | $(SED) -e 's/^/"g_cclosure_marshal_/' -e 's/:/__/' -e 's/,/_/g' -e 's/$$/",/' > xgen-gms \ |
||
189 | && cp xgen-gms gmarshal.strings \ |
||
190 | && rm -f xgen-gms xgen-gms~ |
||
191 | |||
192 | glib-genmarshal.o: gmarshal.strings |
||
193 | |||
194 | # target platform: |
||
195 | libgobjectinclude_HEADERS = $(gobject_target_headers) |
||
196 | libgobject_2_0_la_SOURCES = $(gobject_target_sources) |
||
197 | |||
198 | # |
||
199 | # programs to compile and install |
||
200 | # |
||
201 | bin_PROGRAMS = gobject-query glib-genmarshal |
||
202 | bin_SCRIPTS = glib-mkenums |
||
203 | # source files |
||
204 | gobject_query_SOURCES = gobject-query.c |
||
205 | glib_genmarshal_SOURCES = glib-genmarshal.c |
||
206 | # link programs against libgobject |
||
207 | progs_LDADD = ./libgobject-2.0.la $(libglib) |
||
208 | glib_genmarshal_LDADD = $(libglib) |
||
209 | gobject_query_LDADD = $(progs_LDADD) |
||
210 | |||
211 | # |
||
212 | # auxillary files |
||
213 | # |
||
214 | EXTRA_DIST += \ |
||
215 | makefile.msc.in \ |
||
216 | gobject.rc.in \ |
||
217 | libgobject-gdb.py.in \ |
||
218 | glib-mkenums.in |
||
219 | |||
220 | CLEANFILES += libgobject-gdb.py |
||
221 | |||
222 | BUILT_EXTRA_DIST += \ |
||
223 | makefile.msc \ |
||
224 | gobject.rc |
||
225 | |||
226 | gobject-win32-res.o: gobject.rc |
||
227 | $(AM_V_GEN) $(WINDRES) gobject.rc $@ |
||
228 | |||
229 | gobject.def: libgobject-2.0.la |
||
230 | $(AM_V_GEN) dumpbin.exe -exports .libs/libgobject-2.0-0.dll | awk 'BEGIN { print "EXPORTS" } / +[[:digit:]]+ +[[:xdigit:]]+ +[[:xdigit:]]+/{ print $$4 }' > gobject.def.tmp && mv gobject.def.tmp gobject.def |
||
231 | |||
232 | gobject-2.0.lib: libgobject-2.0.la gobject.def |
||
233 | $(AM_V_GEN) lib.exe -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgobject-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gobject.def -out:$@ |
||
234 | |||
235 | # ------ MSVC Project File Generation ------ |
||
236 | MSVCPROJS = gobject |
||
237 | |||
238 | gobject_FILES = $(libgobject_2_0_la_SOURCES) |
||
239 | gobject_EXCLUDES = dummy |
||
240 | |||
241 | gobject_HEADERS_DIR = $(libgobjectincludedir) |
||
242 | gobject_HEADERS_INST = $(gobject_public_h_sources) |
||
243 | gobject_HEADERS_EXCLUDES = dummy |
||
244 | |||
245 | include $(top_srcdir)/build/Makefile.msvcproj |
||
246 | |||
247 | dist-hook: $(BUILT_EXTRA_DIST) $(top_builddir)/build/win32/vs9/gobject.vcproj $(top_builddir)/build/win32/vs9/gobject.headers |
||
248 | files='$(BUILT_EXTRA_DIST)'; \ |
||
249 | for f in $$files; do \ |
||
250 | if test -f $$f; then d=.; else d=$(srcdir); fi; \ |
||
251 | cp $$d/$$f $(distdir) || exit 1; done |
||
252 | |||
253 | install-data-local: install-ms-lib |
||
254 | |||
255 | uninstall-local: uninstall-ms-lib uninstall-gdb |
||
256 | |||
257 | distclean-local: |
||
258 | if test $(srcdir) = .; then :; else \ |
||
259 | rm -f $(BUILT_EXTRA_DIST); \ |
||
260 | fi |
||
261 | |||
262 | # install gdb scripts |
||
263 | gdbdir = $(datadir)/glib-2.0/gdb |
||
264 | dist_gdb_SCRIPTS = gobject.py |
||
265 | |||
266 | libgobject-gdb.py: libgobject-gdb.py.in |
||
267 | $(AM_V_GEN) $(SED) -e "s|\@datadir\@|$(datadir)|" $(srcdir)/libgobject-gdb.py.in > $(builddir)/libgobject-gdb.py |
||
268 | |||
269 | uninstall-gdb: |
||
270 | -rm -r $(DESTDIR)$(datadir)/gdb |
||
271 | |||
272 | if HAVE_GLIB_RUNTIME_LIBDIR |
||
273 | ABS_GLIB_RUNTIME_LIBDIR = $(realpath $(libdir)/$(GLIB_RUNTIME_LIBDIR)) |
||
274 | else |
||
275 | ABS_GLIB_RUNTIME_LIBDIR = $(libdir) |
||
276 | endif |
||
277 | |||
278 | install-data-hook: libgobject-gdb.py |
||
279 | mkdir -p $(DESTDIR)$(datadir)/gdb/auto-load/$(ABS_GLIB_RUNTIME_LIBDIR) |
||
280 | $(INSTALL) $(builddir)/libgobject-gdb.py $(DESTDIR)$(datadir)/gdb/auto-load/$(ABS_GLIB_RUNTIME_LIBDIR)/libgobject-2.0.so.0.$(LT_CURRENT).$(LT_REVISION)-gdb.py |
||
281 | if HAVE_GLIB_RUNTIME_LIBDIR |
||
282 | mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR) |
||
283 | mv $(DESTDIR)$(libdir)/libgobject-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR) |
||
284 | mv $(DESTDIR)$(libdir)/libgobject-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR) |
||
285 | rm -f $(DESTDIR)$(libdir)/libgobject-2.0.so |
||
286 | ln -s $(GLIB_RUNTIME_LIBDIR)/libgobject-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgobject-2.0.so |
||
287 | endif |