%% Alexey Neyman <[EMAIL PROTECTED]> writes: an> Paul, an> On Thursday 06 April 2006 16:18, Paul D. Smith wrote: >> $(PROG): $(SRC) >> gcc -o $@ $? $(patsubst %.c,%.o,$(filter-out $?,$^))
an> Nitpicking: this will change the linking order, depending on what an> objects were modified since the most recent linkage. Portable an> programs should not depend on this. Though I have encountered the an> ones that did :) If these were libraries you would definitely be correct: we'd need to preserve the order. But there's no linking order issue with .o files, because they are all linked all the time anyway. -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
