jdk/makefiles/CompileDemos.gmk
changeset 12892 3ef14bab6254
parent 12317 9670c1610c53
child 13164 72c5d01a857d
equal deleted inserted replaced
12891:5dbaa8f0f72e 12892:3ef14bab6254
   132     $1_COPY_TARGETS :=  $$(patsubst $(JDK_TOPDIR)/src/$6share/demo/$2/$1/%,\
   132     $1_COPY_TARGETS :=  $$(patsubst $(JDK_TOPDIR)/src/$6share/demo/$2/$1/%,\
   133 			$(JDK_OUTPUTDIR)/newdemo/$2/$1/%,\
   133 			$(JDK_OUTPUTDIR)/newdemo/$2/$1/%,\
   134 			$$(wildcard $$(addprefix $(JDK_TOPDIR)/src/$6share/demo/$2/$1/,$7)))
   134 			$$(wildcard $$(addprefix $(JDK_TOPDIR)/src/$6share/demo/$2/$1/,$7)))
   135     ifneq ($7,)
   135     ifneq ($7,)
   136         $(JDK_OUTPUTDIR)/newdemo/$2/$1/% : $(JDK_TOPDIR)/src/$6share/demo/$2/$1/%
   136         $(JDK_OUTPUTDIR)/newdemo/$2/$1/% : $(JDK_TOPDIR)/src/$6share/demo/$2/$1/%
   137 		mkdir -p $$(@D)
   137 		$(MKDIR) -p $$(@D)
   138 		cp $$< $$@
   138 		$(CP) $$< $$@
   139 		chmod -f ug+w $$@
   139 		$(CHMOD) -f ug+w $$@
   140 
   140 
   141         BUILD_DEMOS += $$($1_COPY_TARGETS)
   141         BUILD_DEMOS += $$($1_COPY_TARGETS)
   142     endif
   142     endif
   143 
   143 
   144 endef
   144 endef
   153 		cd _the.tmp && \
   153 		cd _the.tmp && \
   154 		$(JAR) uf $(JDK_OUTPUTDIR)/newdemo/jfc/CodePointIM/CodePointIM.jar META-INF/services/java.awt.im.spi.InputMethodDescriptor && \
   154 		$(JAR) uf $(JDK_OUTPUTDIR)/newdemo/jfc/CodePointIM/CodePointIM.jar META-INF/services/java.awt.im.spi.InputMethodDescriptor && \
   155 		cd META-INF/services && \
   155 		cd META-INF/services && \
   156 		$(JAR) uf $(JDK_OUTPUTDIR)/newdemo/jfc/CodePointIM/CodePointIM.jar java.awt.im.spi.InputMethodDescriptor)
   156 		$(JAR) uf $(JDK_OUTPUTDIR)/newdemo/jfc/CodePointIM/CodePointIM.jar java.awt.im.spi.InputMethodDescriptor)
   157 	$(RM) -r $(JDK_OUTPUTDIR)/newdemo/jfc/CodePointIM/_the.tmp
   157 	$(RM) -r $(JDK_OUTPUTDIR)/newdemo/jfc/CodePointIM/_the.tmp
   158 	touch $@
   158 	$(TOUCH) $@
   159 
   159 
   160 BUILD_DEMOS+=$(JDK_OUTPUTDIR)/newdemo/jfc/CodePointIM/_the.services
   160 BUILD_DEMOS+=$(JDK_OUTPUTDIR)/newdemo/jfc/CodePointIM/_the.services
   161 
   161 
   162 $(eval $(call SetupDemo,FileChooserDemo,jfc,,FileChooserDemo,,,README*))
   162 $(eval $(call SetupDemo,FileChooserDemo,jfc,,FileChooserDemo,,,README*))
   163 $(eval $(call SetupDemo,Font2DTest,jfc,,Font2DTest,,,*.html *.txt))
   163 $(eval $(call SetupDemo,Font2DTest,jfc,,Font2DTest,,,*.html *.txt))
   165 $(eval $(call SetupDemo,Notepad,jfc,,Notepad,,,README*))
   165 $(eval $(call SetupDemo,Notepad,jfc,,Notepad,,,README*))
   166 $(eval $(call SetupDemo,SampleTree,jfc,,SampleTree,,,README*))
   166 $(eval $(call SetupDemo,SampleTree,jfc,,SampleTree,,,README*))
   167 $(eval $(call SetupDemo,SwingApplet,jfc,,SwingApplet,,,README* *.html))
   167 $(eval $(call SetupDemo,SwingApplet,jfc,,SwingApplet,,,README* *.html))
   168 $(eval $(call SetupDemo,TableExample,jfc,,TableExample,,,README*))
   168 $(eval $(call SetupDemo,TableExample,jfc,,TableExample,,,README*))
   169 $(eval $(call SetupDemo,TransparentRuler,jfc,,transparentruler.Ruler,,,README*))
   169 $(eval $(call SetupDemo,TransparentRuler,jfc,,transparentruler.Ruler,,,README*))
   170 $(eval $(call SetupDemo,jconsole-plugin,scripting,-cp $(JDK_OUTPUTDIR)/lib/jconsole.jar,,,,*.xml *.txt))
   170 $(eval $(call SetupDemo,jconsole-plugin,scripting,-cp $(JDK_OUTPUTDIR)/lib/jconsole.jar,,,,*.xml *.txt,,,,Main-Class: \n))
   171 $(eval $(call SetupDemo,FullThreadDump,management,,FullThreadDump,,,README*))
   171 $(eval $(call SetupDemo,FullThreadDump,management,,FullThreadDump,,,README*))
   172 $(eval $(call SetupDemo,JTop,management,-cp $(JDK_OUTPUTDIR)/lib/jconsole.jar,JTop,,,README*))
   172 $(eval $(call SetupDemo,JTop,management,-cp $(JDK_OUTPUTDIR)/lib/jconsole.jar,JTop,,,README*))
   173 $(eval $(call SetupDemo,MemoryMonitor,management,,MemoryMonitor,,,README*))
   173 $(eval $(call SetupDemo,MemoryMonitor,management,,MemoryMonitor,,,README*))
   174 $(eval $(call SetupDemo,VerboseGC,management,,VerboseGC,,,README*))
   174 $(eval $(call SetupDemo,VerboseGC,management,,VerboseGC,,,README*))
   175 $(eval $(call SetupDemo,zipfs,nio,,,,,README* *.java))
   175 $(eval $(call SetupDemo,zipfs,nio,,,,,README* *.java,,,,Main-Class: \n))
   176 
   176 
   177 ifndef OPENJDK
   177 ifndef OPENJDK
   178     $(eval $(call SetupDemo,Laffy,jfc,,,,closed/,*))
   178     $(eval $(call SetupDemo,Laffy,jfc,,,,closed/,*))
   179     $(eval $(call SetupDemo,SwingSet3,jfc,,,,closed/,*))
   179     $(eval $(call SetupDemo,SwingSet3,jfc,,,,closed/,*))
   180 
   180 
   186 
   186 
   187     BUILD_DEMOS += $(patsubst $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%,\
   187     BUILD_DEMOS += $(patsubst $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%,\
   188 			$(JDK_OUTPUTDIR)/newdemo/nbproject/%,\
   188 			$(JDK_OUTPUTDIR)/newdemo/nbproject/%,\
   189 			$(shell $(FIND) $(JDK_TOPDIR)/src/closed/share/demo/nbproject/ -type f))
   189 			$(shell $(FIND) $(JDK_TOPDIR)/src/closed/share/demo/nbproject/ -type f))
   190     $(JDK_OUTPUTDIR)/newdemo/nbproject/% : $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%
   190     $(JDK_OUTPUTDIR)/newdemo/nbproject/% : $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%
   191 		mkdir -p $(@D)
   191 		$(MKDIR) -p $(@D)
   192 		cp $< $@
   192 		$(CP) $< $@
   193 		chmod -f ug+w $@
   193 		$(CHMOD) -f ug+w $@
   194 endif
   194 endif
   195 
   195 
   196 ##################################################################################################
   196 ##################################################################################################
   197 
   197 
   198 # Why do we install a demo jar into the main jre/lib/ext????????????????
   198 # Why do we install a demo jar into the main jre/lib/ext????????????????
   229      endif
   229      endif
   230      $$(eval $$(call SetupNativeCompilation,BUILD_DEMO_JVMTI_$1,\
   230      $$(eval $$(call SetupNativeCompilation,BUILD_DEMO_JVMTI_$1,\
   231 		SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/$1 $$(BUILD_DEMO_JVMTI_$1_EXTRA_SRC),\
   231 		SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/$1 $$(BUILD_DEMO_JVMTI_$1_EXTRA_SRC),\
   232 		LANG:=$$(BUILD_DEMO_JVMTI_$1_LANG),\
   232 		LANG:=$$(BUILD_DEMO_JVMTI_$1_LANG),\
   233 		CFLAGS:=$(CFLAGS_JDKLIB) $$(BUILD_DEMO_JVMTI_$1_O_FLAG) -I$(JDK_TOPDIR)/src/share/demo/jvmti/$1 $$(BUILD_DEMO_JVMTI_$1_EXTRA_INC) $3,\
   233 		CFLAGS:=$(CFLAGS_JDKLIB) $$(BUILD_DEMO_JVMTI_$1_O_FLAG) -I$(JDK_TOPDIR)/src/share/demo/jvmti/$1 $$(BUILD_DEMO_JVMTI_$1_EXTRA_INC) $3,\
       
   234 		CXXFLAGS:=$(CXXFLAGS_JDKLIB) $$(BUILD_DEMO_JVMTI_$1_O_FLAG) -I$(JDK_TOPDIR)/src/share/demo/jvmti/$1 $$(BUILD_DEMO_JVMTI_$1_EXTRA_INC) $3,\
   234 		LDFLAGS:=$(LDFLAGS_JDKLIB),\
   235 		LDFLAGS:=$(LDFLAGS_JDKLIB),\
   235 		LDFLAGS_SUFFIX:=$$($1_EXTRA_CXX),\
   236 		LDFLAGS_SUFFIX:=$$($1_EXTRA_CXX),\
   236 		LDFLAGS_SUFFIX_posix:=$5,\
   237 		LDFLAGS_SUFFIX_posix:=$5,\
   237 		LDFLAGS_SUFFIX_winapi:=$6,\
   238 		LDFLAGS_SUFFIX_winapi:=$6,\
   238 		LDFLAGS_SUFFIX_solaris:=-lc $7,\
   239 		LDFLAGS_SUFFIX_solaris:=-lc $7,\
   253                 SETUP:=GENERATE_USINGJDKBYTECODE,\
   254                 SETUP:=GENERATE_USINGJDKBYTECODE,\
   254 		SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/$1,\
   255 		SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/$1,\
   255 		BIN:=$(JDK_OUTPUTDIR)/newdemoclasses/jvmti/$1,\
   256 		BIN:=$(JDK_OUTPUTDIR)/newdemoclasses/jvmti/$1,\
   256 		COPY:=$(PATTERNS_TO_COPY),\
   257 		COPY:=$(PATTERNS_TO_COPY),\
   257 		JAR:=$(JDK_OUTPUTDIR)/newdemo/jvmti/$1/$1.jar,\
   258 		JAR:=$(JDK_OUTPUTDIR)/newdemo/jvmti/$1/$1.jar,\
   258 		JARMAIN:=,\
   259 		EXTRA_MANIFEST_ATTR:=Main-Class: \n,\
   259 		MANIFEST:=$(JDK_TOPDIR)/make/tools/manifest.mf))
   260 		MANIFEST:=$(JDK_TOPDIR)/make/tools/manifest.mf))
   260 
   261 
   261          BUILD_DEMOS += $(JDK_OUTPUTDIR)/newdemo/jvmti/$1/$1.jar
   262          BUILD_DEMOS += $(JDK_OUTPUTDIR)/newdemo/jvmti/$1/$1.jar
   262      endif
   263      endif
   263 
   264 
   288 JPDA_SOURCES:=$(shell $(FIND) $(JDK_TOPDIR)/src/share/classes/com/sun/tools/example -type f)
   289 JPDA_SOURCES:=$(shell $(FIND) $(JDK_TOPDIR)/src/share/classes/com/sun/tools/example -type f)
   289 # The number of files are few enough so that we can use echo safely below to list them.
   290 # The number of files are few enough so that we can use echo safely below to list them.
   290 JPDA_FILES:=$(subst $(JDK_TOPDIR)/src/share/classes/,,$(JPDA_SOURCES))
   291 JPDA_FILES:=$(subst $(JDK_TOPDIR)/src/share/classes/,,$(JPDA_SOURCES))
   291 
   292 
   292 $(JDK_OUTPUTDIR)/newdemo/jpda/src.zip : $(JPDA_SOURCES)
   293 $(JDK_OUTPUTDIR)/newdemo/jpda/src.zip : $(JPDA_SOURCES)
   293 		mkdir -p $(@D)
   294 		$(MKDIR) -p $(@D)
   294 		(cd $(JDK_TOPDIR)/src/share/classes && $(ZIP) -qru $@ com -i "com/sun/tools/example/*")
   295 		(cd $(JDK_TOPDIR)/src/share/classes && $(ZIP) -qru $@ com -i "com/sun/tools/example/*")
   295 
   296 
   296 $(JDK_OUTPUTDIR)/newdemo/jpda/examples.jar : $(JPDA_SOURCES)
   297 $(JDK_OUTPUTDIR)/newdemo/jpda/examples.jar : $(JPDA_SOURCES)
   297 		mkdir -p $(@D)
   298 		$(MKDIR) -p $(@D)
   298 		$(RM) $(@D)/_the.sources
   299 		$(RM) $(@D)/_the.sources
   299 		$(call ListPathsSafely,JPDA_FILES,\n, >> $(@D)/_the.sources)
   300 		$(call ListPathsSafely,JPDA_FILES,\n, >> $(@D)/_the.sources)
   300 		$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" 		\
   301 		$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" 		\
   301 		       -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" $(JDK_TOPDIR)/make/tools/manifest.mf > $(@D)/_the.manifest
   302 		       -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" $(JDK_TOPDIR)/make/tools/manifest.mf > $(@D)/_the.manifest
   302 		$(ECHO) "Main-Class: " >> $(@D)/_the.manifest
   303 		$(ECHO) "Main-Class: " >> $(@D)/_the.manifest
   303 		(cd $(JDK_TOPDIR)/src/share/classes && $(JAR) cfm  $@ $(@D)/_the.manifest @$(@D)/_the.sources)
   304 		(cd $(JDK_TOPDIR)/src/share/classes && $(JAR) cfm  $@ $(@D)/_the.manifest @$(@D)/_the.sources)
   304 		(cd $(JDK_TOPDIR)/src/share/classes/com/sun/tools/example && $(JAR) uf $@ README)
   305 		(cd $(JDK_TOPDIR)/src/share/classes/com/sun/tools/example && $(JAR) uf $@ README)
   305 
   306 
   306 $(JDK_OUTPUTDIR)/newdemo/jpda/com/sun/tools/example/README : $(JDK_TOPDIR)/src/share/classes/com/sun/tools/example/README
   307 $(JDK_OUTPUTDIR)/newdemo/jpda/com/sun/tools/example/README : $(JDK_TOPDIR)/src/share/classes/com/sun/tools/example/README
   307 		mkdir -p $(@D)
   308 		$(MKDIR) -p $(@D)
   308 		$(CP) $< $@
   309 		$(CP) $< $@
   309 		$(CHMOD) -f ug+w $@
   310 		$(CHMOD) -f ug+w $@
   310 
   311 
   311 BUILD_DEMOS += $(JDK_OUTPUTDIR)/newdemo/jpda/src.zip $(JDK_OUTPUTDIR)/newdemo/jpda/examples.jar \
   312 BUILD_DEMOS += $(JDK_OUTPUTDIR)/newdemo/jpda/src.zip $(JDK_OUTPUTDIR)/newdemo/jpda/examples.jar \
   312 		$(JDK_OUTPUTDIR)/newdemo/jpda/com/sun/tools/example/README
   313 		$(JDK_OUTPUTDIR)/newdemo/jpda/com/sun/tools/example/README
   313 
   314 
   314 ##################################################################################################
   315 ##################################################################################################
   315 
   316 
   316 $(JDK_OUTPUTDIR)/newdemo/management/index.html : $(JDK_TOPDIR)/src/share/demo/management/index.html
   317 $(JDK_OUTPUTDIR)/newdemo/management/index.html : $(JDK_TOPDIR)/src/share/demo/management/index.html
   317 		mkdir -p $(@D)
   318 		$(MKDIR) -p $(@D)
   318 		$(CP) $< $@
   319 		$(CP) $< $@
   319 		$(CHMOD) -f ug+w $@
   320 		$(CHMOD) -f ug+w $@
   320 
   321 
   321 $(JDK_OUTPUTDIR)/newdemo/jvmti/index.html : $(JDK_TOPDIR)/src/share/demo/jvmti/index.html
   322 $(JDK_OUTPUTDIR)/newdemo/jvmti/index.html : $(JDK_TOPDIR)/src/share/demo/jvmti/index.html
   322 		mkdir -p $(@D)
   323 		$(MKDIR) -p $(@D)
   323 		$(CP) $< $@
   324 		$(CP) $< $@
   324 		$(CHMOD) -f ug+w $@
   325 		$(CHMOD) -f ug+w $@
   325 
   326 
   326 BUILD_DEMOS += $(JDK_OUTPUTDIR)/newdemo/management/index.html \
   327 BUILD_DEMOS += $(JDK_OUTPUTDIR)/newdemo/management/index.html \
   327 		$(JDK_OUTPUTDIR)/newdemo/jvmti/index.html
   328 		$(JDK_OUTPUTDIR)/newdemo/jvmti/index.html
   328 
   329 
   329 ##################################################################################################
   330 ##################################################################################################
   330 
   331 
   331 # The netbeans project files are copied into the demo directory.
   332 # The netbeans project files are copied into the demo directory.
   332 
   333 BUILD_DEMOS += $(patsubst $(JDK_TOPDIR)/src/share/demo/nbproject/%,\
   333 NETBEANS_DEMO_PROJECTS_FILES=$(shell $(FIND) $(JDK_TOPDIR)/src/share/demo/nbproject -type f)
   334 		$(JDK_OUTPUTDIR)/newdemo/nbproject/%,\
   334 
   335 		$(shell $(FIND) $(JDK_TOPDIR)/src/share/demo/nbproject/ -type f))
   335 $(JDK_OUTPUTDIR)/newdemo/_the.nbproject: $(NETBEANS_DEMO_PROJECTS_FILES)
   336 
   336 	$(MKDIR) -p $(JDK_OUTPUTDIR)/newdemo
   337 $(JDK_OUTPUTDIR)/newdemo/nbproject/% : $(JDK_TOPDIR)/src/share/demo/nbproject/%
   337 	$(RM) -rf $(JDK_OUTPUTDIR)/newdemo/nbproject
   338 	$(MKDIR) -p $(@D)
   338 	echo Copying Netbeans demo projects
   339 	$(CP) $< $@
   339 	(cd $(JDK_TOPDIR)/src/share/demo && cp -r nbproject $(JDK_OUTPUTDIR)/newdemo)
   340 	$(CHMOD) -f ug+w $@
   340 	touch $@
   341 
   341 
   342 ##################################################################################################
   342 ##################################################################################################
   343 
   343 
   344 $(JDK_OUTPUTDIR)/newdemo/README: $(JDK_TOPDIR)/src/share/demo/README
   344 $(JDK_OUTPUTDIR)/newdemo/README : $(JDK_TOPDIR)/src/share/demo/README
   345 	$(MKDIR) -p $(@D)
   345 	mkdir -p $(@D)
   346 	$(CP) $< $@
   346 	cp $< $@
   347 
   347 
   348 BUILD_DEMOS += $(JDK_OUTPUTDIR)/newdemo/README
   348 ##################################################################################################
   349 
   349 
   350 ##################################################################################################
   350 all: $(BUILD_DEMOS) $(JDK_OUTPUTDIR)/newdemo/_the.nbproject $(JDK_OUTPUTDIR)/newdemo/README
   351 
       
   352 ifeq ($(PLATFORM), solaris)
       
   353 
       
   354 $(JDK_OUTPUTDIR)/newdemoclasses/jni/Poller/% : $(JDK_TOPDIR)/src/solaris/demo/jni/Poller/%
       
   355 		$(MKDIR) -p $(@D)
       
   356 		$(CP) $< $@
       
   357 		$(CHMOD) -f ug+w $@
       
   358 
       
   359 $(JDK_OUTPUTDIR)/newdemo/jni/Poller/README.txt : $(JDK_TOPDIR)/src/solaris/demo/jni/Poller/README.txt
       
   360 		$(MKDIR) -p $(@D)
       
   361 		$(CP) $< $@
       
   362 		$(CHMOD) -f ug+w $@
       
   363 
       
   364 $(JDK_OUTPUTDIR)/newdemo/jni/Poller/Poller.jar : \
       
   365   $(JDK_OUTPUTDIR)/newdemoclasses/jni/Poller/README.txt $(JDK_OUTPUTDIR)/newdemoclasses/jni/Poller/Poller.c
       
   366 
       
   367 $(eval $(call SetupJavaCompilation,BUILD_DEMO_POLLER_JAR,\
       
   368 		SETUP:=GENERATE_USINGJDKBYTECODE, \
       
   369 		SRC:=$(JDK_TOPDIR)/src/solaris/demo/jni/Poller, \
       
   370 		BIN:=$(JDK_OUTPUTDIR)/newdemoclasses/jni/Poller, \
       
   371 		HEADERS:=$(JDK_OUTPUTDIR)/newdemoclasses/jni/Poller, \
       
   372 		JAR:=$(JDK_OUTPUTDIR)/newdemo/jni/Poller/Poller.jar, \
       
   373 		MANIFEST:=$(JDK_TOPDIR)/make/tools/manifest.mf, \
       
   374 		SRCZIP:=$(JDK_OUTPUTDIR)/newdemo/jni/Poller/src.zip, \
       
   375 		COPY := README.txt Poller.c, \
       
   376 		JARMAIN := Client))
       
   377 
       
   378 
       
   379 
       
   380 BUILD_DEMOS += $(JDK_OUTPUTDIR)/newdemo/jni/Poller/Poller.jar $(JDK_OUTPUTDIR)/newdemo/jni/Poller/src.zip \
       
   381                $(JDK_OUTPUTDIR)/newdemo/jni/Poller/README.txt
       
   382 
       
   383 $(eval $(call SetupNativeCompilation,BUILD_LIBPOLLER,\
       
   384 		SRC:=$(JDK_TOPDIR)/src/solaris/demo/jni/Poller, \
       
   385 		LANG := C, \
       
   386 		CFLAGS:=$(CFLAGS_JDKLIB) $(C_O_FLAG_NORM) $(SHARED_LIBRARY_FLAGS) \
       
   387                         -I$(JDK_OUTPUTDIR)/newdemoclasses/jni/Poller, \
       
   388 		LDFLAGS:=$(LDFLAGS_JDKLIB), \
       
   389 		BIN:=$(JDK_OUTPUTDIR)/newdemoobjs/jni/Poller,\
       
   390 		LIB:=$(JDK_OUTPUTDIR)/newdemoobjs/$(LIBRARY_PREFIX)Poller$(SHARED_LIBRARY_SUFFIX)))
       
   391 
       
   392 #
       
   393 # We can only compile native code after jar has been build (since we depend on generated .h files)
       
   394 #
       
   395 $(JDK_OUTPUTDIR)/newdemoobjs/jni/Poller/Poller.o : $(JDK_OUTPUTDIR)/newdemo/jni/Poller/Poller.jar
       
   396 
       
   397 $(JDK_OUTPUTDIR)/newdemo/jni/Poller/lib/$(LIBRARY_PREFIX)Poller$(SHARED_LIBRARY_SUFFIX) : \
       
   398   $(JDK_OUTPUTDIR)/newdemoobjs/$(LIBRARY_PREFIX)Poller$(SHARED_LIBRARY_SUFFIX)
       
   399 	$(MKDIR) -p $(@D)
       
   400 	$(CP) $< $@
       
   401 
       
   402 BUILD_DEMOS += $(JDK_OUTPUTDIR)/newdemo/jni/Poller/lib/$(LIBRARY_PREFIX)Poller$(SHARED_LIBRARY_SUFFIX)
       
   403 
       
   404 endif
       
   405 
       
   406 ##################################################################################################
       
   407 
       
   408 ifndef OPENJDK
       
   409     DB_DEMO_ZIPFILE := $(shell $(FIND) $(JDK_TOPDIR)/src/closed/share/db -name "*demo*.zip")
       
   410 
       
   411     $(JDK_OUTPUTDIR)/newdemo/_the.db.unzipped: $(DB_DEMO_ZIPFILE)
       
   412 	$(MKDIR) -p $(@D)
       
   413 	$(RM) -rf $(JDK_OUTPUTDIR)/newdemo/db $(JDK_OUTPUTDIR)/newdemo/demo
       
   414 	$(CD) $(JDK_OUTPUTDIR)/newdemo && $(UNZIP) -o $<
       
   415 	$(MV) $(JDK_OUTPUTDIR)/newdemo/demo $(JDK_OUTPUTDIR)/newdemo/db
       
   416 	$(TOUCH) $@
       
   417 
       
   418 #    Copy this after the unzip above to avoid race with directory creation and mv command.
       
   419      $(JDK_OUTPUTDIR)/newdemo/db/README-JDK-DEMOS.html: \
       
   420 		$(JDK_TOPDIR)/src/closed/share/db/README-JDK-DEMOS.html \
       
   421 		| $(JDK_OUTPUTDIR)/newdemo/_the.db.unzipped
       
   422 	$(MKDIR) -p $(@D)
       
   423 	$(CP) '$<' '$@'
       
   424      BUILD_DEMOS += $(JDK_OUTPUTDIR)/newdemo/_the.db.unzipped $(JDK_OUTPUTDIR)/newdemo/db/README-JDK-DEMOS.html
       
   425 endif
       
   426 
       
   427 ##################################################################################################
       
   428 
       
   429 all: $(BUILD_DEMOS)
   351 
   430 
   352 .PHONY: all
   431 .PHONY: all