Follow-up Comment #5, bug #14927 (project make): Of course the simplest thing to do is just avoid the library syntax altogether and write the makefile as:
SRCS := a.c b.c OBJS := $(SRCS:.c=.o) LIB := mylib.a $(LIB): $(OBJS) ; $(AR) -U cru $@ $? This ensures that we build just object files and the library is updated at the end, and parallel builds work fine. The disadvantage to this is that the object files are not considered intermediate, and so they are left behind after the build completes rather than being deleted. And of course we can't just declare them .INTERMEDIATE because it means that any time we modify one source file, make will have to rebuild them all. Is that the requirement here, that we be able to treat these object files as intermediate? _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?14927> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/