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


Reply to this item at:


Message sent via Savannah

Reply via email to