From 083d01c3d9a6337c5fcdee8869005a988293f672 Mon Sep 17 00:00:00 2001 From: Richard Boulton Date: Tue, 5 Jun 2001 01:27:53 +0000 Subject: [PATCH] Revert accidentally applied changes. Original commit message from CVS: Revert accidentally applied changes. Time for bed. --- gst/Makefile.am | 63 ++++++++++++++++++++++++++++++++--------- gst/gstelementfactory.c | 1 - 2 files changed, 50 insertions(+), 14 deletions(-) diff --git a/gst/Makefile.am b/gst/Makefile.am index 6271bb0b58..2e701e09b0 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -1,11 +1,7 @@ -# This Makefile.am is a much neater Makefile.am for this directory, but -# depends on automake 1.4d or later. - # cheap trick to build . first... SUBDIRS = . types elements autoplug lib_LTLIBRARIES = libgst.la -noinst_LTLIBRARIES = libcothreads.la if HAVE_CPU_I386 GSTARCH_SRCS = gstcpuid_i386.s @@ -13,15 +9,11 @@ else GSTARCH_SRCS = endif -EXTRA_libgst_la_SOURCES = gstcpuid_i386.s +EXTRA_libgst_la_SOURCES = \ + gstcpuid_i386.s - -libcothreads_la_CFLAGS = $(CFLAGS) $(LIBGST_CFLAGS) -O2 -D_GNU_SOURCE -libgst_la_CFLAGS = $(CFLAGS) $(LIBGST_CFLAGS) -D_GNU_SOURCE -CFLAGS = - -libcothreads_la_SOURCES = cothreads.c libgst_la_SOURCES = \ + cothreads.c \ gst.c \ gstautoplug.c \ gstbin.c \ @@ -51,6 +43,50 @@ libgst_la_SOURCES = \ gstparse.c \ $(GSTARCH_SRCS) + +##### Oh this sucks so badly. This isn't funny. ##### + +# the compiler shoots cothreads.c in the head at -O6 +# FIXME: these manual rules break the dependency generation, so we have a +# nasty hack here. +#LTCOMPILE2=$(LTCOMPILE) -O2 +#COMPILE2=$(COMPILE) -O2 + +# FIXME this only lists the x86 arch file, we really should merge them all +cothreads.lo: $(srcdir)/cothreads.c $(srcdir)/cothreads.h $(srcdir)/gst_private.h \ + $(top_builddir)/config.h $(srcdir)/gstinfo.c $(srcdir)/gstarch.h $(srcdir)/gsti386.h + $(LIBTOOL) --mode=compile $(COMPILE) -O2 -c $< +cothreads.o: $(srcdir)/cothreads.c $(srcdir)/cothreads.h $(srcdir)/gst_private.h \ + $(top_builddir)/config.h $(srcdir)/gstinfo.c $(srcdir)/gstarch.h $(srcdir)/gsti386.h + $(COMPILE) -O2 -c $< + +# NOTDEPEND.cothreads.lo: cothreads.c +# NOTDEPEND $(LTCOMPILE2) -c $< +# NOTDEPEND.cothreads.o: cothreads.c +# NOTDEPEND $(COMPILE2) -c $< + +#cothreads.lo: cothreads.c +# @echo '$(LTCOMPILE2) -c $<'; \ +# $(LTCOMPILE2) -Wp,-MD,.deps/$(*F).pp -c $< +# @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ +# < .deps/$(*F).pp > .deps/$(*F).P; \ +# tr ' ' '\012' < .deps/$(*F).pp \ +# | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ +# >> .deps/$(*F).P; \ +# rm -f .deps/$(*F).pp +#cothreads.o: cothreads.c +# @echo '$(COMPILE2) -c $<'; \ +# $(COMPILE2) -Wp,-MD,.deps/$(*F).pp -c $< +# @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ +# < .deps/$(*F).pp > .deps/$(*F).P; \ +# tr ' ' '\012' < .deps/$(*F).pp \ +# | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ +# >> .deps/$(*F).P; \ +# rm -f .deps/$(*F).pp + +##### end immense suckage ##### + + libgstincludedir = $(includedir)/gst libgstinclude_HEADERS = \ cothreads.h \ @@ -94,7 +130,8 @@ noinst_HEADERS = \ gstsparc.h \ gstpropsprivate.h -libgst_la_LDFLAGS = -version-info $(GST_LIBVERSION) $(LIBGST_LIBS) -libgst_la_LIBADD = libcothreads.la +CFLAGS = $(LIBGST_CFLAGS) -D_GNU_SOURCE +LIBS = $(LIBGST_LIBS) +libgst_la_LDFLAGS = -version-info $(GST_LIBVERSION) EXTRA_DIST = ROADMAP diff --git a/gst/gstelementfactory.c b/gst/gstelementfactory.c index 56121fa051..9c4bc42e7b 100644 --- a/gst/gstelementfactory.c +++ b/gst/gstelementfactory.c @@ -158,7 +158,6 @@ gst_elementfactory_create (GstElementFactory *factory, g_return_val_if_fail(factory != NULL, NULL); g_return_val_if_fail(factory->type != 0, NULL); - GST_DEBUG (GST_CAT_ELEMENTFACTORY,"factory->type is \"%d\"\n", factory->type); // create an instance of the element element = GST_ELEMENT(gtk_type_new(factory->type)); g_assert(element != NULL);