hotspot/make/solaris/makefiles/vm.make
changeset 7451 cc12e11b1e07
parent 7448 11b630d174d5
child 7718 23502bf34686
--- 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)))