mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
Adding nasty hack to rules to generate cothreads.{o,lo}, to get dependencies right. Rules copied from automake, and ...
Original commit message from CVS: Adding nasty hack to rules to generate cothreads.{o,lo}, to get dependencies right. Rules copied from automake, and therefore a bit dependent on automake keeping doing dependency things the same kind of way, but it should work as long as automake puts dependencies into .deps/*.P
This commit is contained in:
parent
fce9a96f3f
commit
a4e3d04aeb
1 changed files with 20 additions and 2 deletions
|
@ -43,10 +43,28 @@ libgst_la_SOURCES = \
|
||||||
$(GSTARCH_SRCS)
|
$(GSTARCH_SRCS)
|
||||||
|
|
||||||
# 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
|
||||||
|
# nasty hack here.
|
||||||
|
LTCOMPILE2=$(LTCOMPILE) -O2
|
||||||
|
COMPILE2=$(COMPILE) -O2
|
||||||
cothreads.lo: cothreads.c
|
cothreads.lo: cothreads.c
|
||||||
$(LTCOMPILE) -O2 -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
|
cothreads.o: cothreads.c
|
||||||
$(COMPILE) -O2 -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
|
||||||
|
|
||||||
libgstincludedir = $(includedir)/gst
|
libgstincludedir = $(includedir)/gst
|
||||||
libgstinclude_HEADERS = \
|
libgstinclude_HEADERS = \
|
||||||
|
|
Loading…
Reference in a new issue