bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem on IRIX


From: Matthew Gregg Knepley
Subject: Problem on IRIX
Date: Thu, 08 Nov 2001 14:15:30 -0500

The native SGI compiler (cc and cc -64) use -MDupdate instead
of -MD for dependency tracking. This messes up the default
compile rules. There should be a check in the configure for
automake that catches this.

taz> automake --version
automake (GNU automake) 1.4

The relevant stanzas are

%.o: %.c
        @echo '$(COMPILE) -c $<'; \
        $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
        @-cp .deps/$(*F).pp .deps/$(*F).P; \
        tr ' ' '\012' < .deps/$(*F).pp \
          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
            >> .deps/$(*F).P; \
        rm .deps/$(*F).pp
 
%.lo: %.c
        @echo '$(LTCOMPILE) -c $<'; \
        $(LTCOMPILE) -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                                                    

        Thanks,

                Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]