Fixed cothreads.c problems with make dist. This still sucks badly.

Original commit message from CVS:
Fixed cothreads.c problems with make dist.  This still sucks badly.
This commit is contained in:
Erik Walthinsen 2001-02-07 22:07:22 +00:00
parent 5e1257437d
commit 588c6968f9

View file

@ -43,29 +43,48 @@ libgst_la_SOURCES = \
gstparse.c \ gstparse.c \
$(GSTARCH_SRCS) $(GSTARCH_SRCS)
##### Oh this sucks so badly. This isn't funny. #####
# the compiler shoots cothreads.c in the head at -O6 # the compiler shoots cothreads.c in the head at -O6
# FIXME: these manual rules break the dependency generation, so we have a # FIXME: these manual rules break the dependency generation, so we have a
# nasty hack here. # nasty hack here.
LTCOMPILE2=$(LTCOMPILE) -O2 #LTCOMPILE2=$(LTCOMPILE) -O2
COMPILE2=$(COMPILE) -O2 #COMPILE2=$(COMPILE) -O2
cothreads.lo: cothreads.c
@echo '$(LTCOMPILE2) -c $<'; \ cothreads.lo: cothreads.c cothreads.h gst_private.h ../config.h gstinfo.c \
$(LTCOMPILE2) -Wp,-MD,.deps/$(*F).pp -c $< gstarch.h gsti386.h
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ $(LIBTOOL) --mode=compile $(COMPILE) -O2 -c $<
< .deps/$(*F).pp > .deps/$(*F).P; \ cothreads.o: cothreads.c cothreads.h gst_private.h ../config.h gstinfo.c \
tr ' ' '\012' < .deps/$(*F).pp \ gstarch.h gsti386.h
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ $(COMPILE) -O2 -c $<
>> .deps/$(*F).P; \
rm -f .deps/$(*F).pp # NOTDEPEND.cothreads.lo: cothreads.c
cothreads.o: cothreads.c # NOTDEPEND $(LTCOMPILE2) -c $<
@echo '$(COMPILE2) -c $<'; \ # NOTDEPEND.cothreads.o: cothreads.c
$(COMPILE2) -Wp,-MD,.deps/$(*F).pp -c $< # NOTDEPEND $(COMPILE2) -c $<
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
< .deps/$(*F).pp > .deps/$(*F).P; \ #cothreads.lo: cothreads.c
tr ' ' '\012' < .deps/$(*F).pp \ # @echo '$(LTCOMPILE2) -c $<'; \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ # $(LTCOMPILE2) -Wp,-MD,.deps/$(*F).pp -c $<
>> .deps/$(*F).P; \ # @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
rm -f .deps/$(*F).pp # < .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 libgstincludedir = $(includedir)/gst
libgstinclude_HEADERS = \ libgstinclude_HEADERS = \