This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] libiberty build-in-srcdir: ignore VPATH.


They should look something like this:

./xstrdup.o: $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \
        $(INCDIR)/libiberty.h if [ x"$(PICFLAG)" != x ]; then \
        $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrdup.c -o pic/$@; \ else
        true; fi $(COMPILE.c) $(srcdir)/xstrdup.c $(OUTPUT_OPTION)

I figured I could get rid of the $@ also if OUTPUT_OPTION
was either "" or "#", yielding:

./xstrdup.o: $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \
        $(INCDIR)/libiberty.h
        if [ x"$(PICFLAG)" != x ]; then \
          $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrdup.c -o pic/xstrdup.o; \
        else true; fi
        $(COMPILE.c) $(srcdir)/xstrdup.c $(OUTPUT_OPTION) -o ./xstrdup.o

... but that involved changing the configure bits too.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]