# HG changeset patch # User stefank # Date 1292420634 28800 # Node ID cc12e11b1e0739f301b9690b0324551d63903f71 # Parent e44c68293be8898b0167f497c058beb384b16a8b 7006659: temporary adlc files are added to the build variables Summary: Don't recurse into sub-directories when looking for source files. Reviewed-by: never, brutisso diff -r e44c68293be8 -r cc12e11b1e07 hotspot/make/linux/makefiles/vm.make --- a/hotspot/make/linux/makefiles/vm.make Tue Dec 14 15:10:52 2010 -0500 +++ b/hotspot/make/linux/makefiles/vm.make Wed Dec 15 05:43:54 2010 -0800 @@ -168,7 +168,9 @@ # Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE. define findsrc - $(notdir $(shell find $(1) \( -name \*.c -o -name \*.cpp -o -name \*.s \) -a \! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \) )) + $(notdir $(shell find $(1)/. ! -name . -prune \ + -a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \ + -a ! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \))) endef Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e))) diff -r e44c68293be8 -r cc12e11b1e07 hotspot/make/solaris/makefiles/vm.make --- a/hotspot/make/solaris/makefiles/vm.make Tue Dec 14 15:10:52 2010 -0500 +++ b/hotspot/make/solaris/makefiles/vm.make Wed Dec 15 05:43:54 2010 -0800 @@ -184,7 +184,9 @@ # Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE. define findsrc - $(notdir $(shell find $(1) \( -name \*.c -o -name \*.cpp -o -name \*.s \) -a \! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \) )) + $(notdir $(shell find $(1)/. ! -name . -prune \ + -a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \ + -a ! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \))) endef Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e))) diff -r e44c68293be8 -r cc12e11b1e07 hotspot/make/windows/create_obj_files.sh --- a/hotspot/make/windows/create_obj_files.sh Tue Dec 14 15:10:52 2010 -0500 +++ b/hotspot/make/windows/create_obj_files.sh Wed Dec 15 05:43:54 2010 -0800 @@ -107,8 +107,12 @@ "x86_64") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} *x86_32*" ;; esac +# Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE. function findsrc { - $FIND ${1} \( -name \*.c -o -name \*.cpp -o -name \*.s \) -a \! \( -name ${Src_Files_EXCLUDE// / -o -name } \) | sed 's/.*\/\(.*\)/\1/'; + $FIND ${1}/. ! -name . -prune \ + -a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \ + -a \! \( -name ${Src_Files_EXCLUDE// / -o -name } \) \ + | sed 's/.*\/\(.*\)/\1/'; } Src_Files=