hotspot/make/linux/makefiles/vm.make
changeset 7451 cc12e11b1e07
parent 7409 e9017b2bef9c
child 8107 78e5bd944384
--- 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)))