I have some Makefiles that want to get a list of all source files in a directory hierarchy and currently use:
SRCS := $(shell find . -name '*.c') OBJS := $(SRCS:.c=.o) The problem with this is that the output from find isn't deterministic, which means the objects files can get linked into the final executable in an arbitrary order and I want the result to be identical from run to run from the same source. My current fix for this is: SRCS := $(shell find . -name '*.c' | sort) but I was wondering if anyone could suggest a better method. Thanks, Michael _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
