< prev index next >

src/demo/share/java2d/J2DBench/Makefile

Print this page

 12 #     notice, this list of conditions and the following disclaimer in the
 13 #     documentation and/or other materials provided with the distribution.
 14 #
 15 #   - Neither the name of Oracle nor the names of its
 16 #     contributors may be used to endorse or promote products derived
 17 #     from this software without specific prior written permission.
 18 #
 19 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
 20 # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 21 # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 22 # PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 23 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 24 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 25 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 26 # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 27 # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 28 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 29 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 30 #
 31 

















 32 SOURCEPATH=src
 33 CLASSES=build
 34 DIST=dist
 35 RESOURCES=resources
 36 
 37 J2DBENCH_CLASSES = \
 38 	$(CLASSES)/j2dbench/J2DBench.class \
 39 	$(CLASSES)/j2dbench/Destinations.class \
 40 	$(CLASSES)/j2dbench/Group.class \
 41 	$(CLASSES)/j2dbench/Result.class \
 42 	$(CLASSES)/j2dbench/Modifier.class \
 43 	$(CLASSES)/j2dbench/Node.class \
 44 	$(CLASSES)/j2dbench/Option.class \
 45 	$(CLASSES)/j2dbench/ResultSet.class \
 46 	$(CLASSES)/j2dbench/TestEnvironment.class \
 47 	$(CLASSES)/j2dbench/Test.class \
 48 	$(CLASSES)/j2dbench/ui/EnableButton.class \
 49 	$(CLASSES)/j2dbench/ui/CompactLayout.class \
 50 	$(CLASSES)/j2dbench/tests/ImageTests.class \
 51 	$(CLASSES)/j2dbench/tests/RenderTests.class \

 63 	$(CLASSES)/j2dbench/tests/text/TextRenderTests.class \
 64 	$(CLASSES)/j2dbench/tests/text/TextTests.class \
 65 	$(CLASSES)/j2dbench/tests/GraphicsTests.class
 66 
 67 J2DANALYZER_CLASSES = \
 68 	$(CLASSES)/j2dbench/report/IIOComparator.class \
 69 	$(CLASSES)/j2dbench/report/HTMLSeriesReporter.class \
 70 	$(CLASSES)/j2dbench/report/J2DAnalyzer.class \
 71 	$(CLASSES)/j2dbench/report/XMLHTMLReporter.class
 72 
 73 J2DBENCH_RESOURCES = \
 74 	$(CLASSES)/j2dbench/tests/iio/images \
 75 	$(CLASSES)/j2dbench/tests/cmm/images \
 76 	$(CLASSES)/j2dbench/tests/text/textdata
 77 
 78 SCM_DIRs = .hg .svn CVS RCS SCCS Codemgr_wsdata deleted_files
 79 
 80 all: mkdirs J2DBench.jar J2DAnalyzer.jar
 81 
 82 run: mkdirs J2DBench.jar
 83 	java -jar $(DIST)/J2DBench.jar
 84 
 85 analyze: mkdirs J2DAnalyzer.jar
 86 	java -jar $(DIST)/J2DAnalyzer.jar
 87 
 88 J2DBench.jar: \
 89 	$(J2DBENCH_CLASSES) $(J2DBENCH_RESOURCES) \
 90 	$(CLASSES)/j2dbench.manifest
 91 	jar cvmf $(CLASSES)/j2dbench.manifest $(DIST)/J2DBench.jar -C $(CLASSES) j2dbench
 92 
 93 J2DAnalyzer.jar: $(J2DANALYZER_CLASSES) $(CLASSES)/j2danalyzer.manifest
 94 	jar cvmf $(CLASSES)/j2danalyzer.manifest \
 95 		$(DIST)/J2DAnalyzer.jar -C $(CLASSES) j2dbench/report
 96 
 97 $(CLASSES)/j2dbench/tests/iio/images: $(RESOURCES)/images
 98 	cp -r $< $@
 99 	cd $@ && rm -rf $(SCM_DIRs)
100 
101 $(CLASSES)/j2dbench/tests/text/textdata: $(RESOURCES)/textdata
102 	cp -r $< $@
103 	cd $@ && rm -rf $(SCM_DIRs)
104 
105 $(CLASSES)/j2dbench/tests/cmm/images: $(RESOURCES)/cmm_images
106 	cp -r $< $@
107 	cd $@ && rm -rf $(SCM_DIRs)
108 
109 $(CLASSES)/j2dbench.manifest:
110 	echo "Main-Class: j2dbench.J2DBench" > $@
111 
112 $(CLASSES)/j2danalyzer.manifest:
113 	echo "Main-Class: j2dbench.report.J2DAnalyzer" > $@
114 
115 $(DIST):
116 	mkdir $(DIST)
117 $(CLASSES):
118 	mkdir $(CLASSES)
119 
120 mkdirs: $(DIST) $(CLASSES)
121 
122 $(CLASSES)/j2dbench/%.class: $(SOURCEPATH)/j2dbench/%.java
123 	javac -g:none -source 1.7 -target 1.7 -d $(CLASSES) -sourcepath $(SOURCEPATH) $<
124 
125 clean:
126 	rm -rf $(CLASSES)
127 	rm -rf $(DIST)

 12 #     notice, this list of conditions and the following disclaimer in the
 13 #     documentation and/or other materials provided with the distribution.
 14 #
 15 #   - Neither the name of Oracle nor the names of its
 16 #     contributors may be used to endorse or promote products derived
 17 #     from this software without specific prior written permission.
 18 #
 19 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
 20 # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 21 # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 22 # PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 23 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 24 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 25 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 26 # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 27 # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 28 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 29 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 30 #
 31 
 32 
 33 ifndef SOURCE
 34 export SOURCE := 7
 35 endif
 36 ifndef TARGET
 37 export TARGET := 7
 38 endif
 39 ifndef JAVAC
 40 export JAVAC := javac
 41 endif
 42 ifndef JAVA
 43 export JAVA := java
 44 endif
 45 ifndef JAR
 46 export JAR := jar
 47 endif
 48 
 49 SOURCEPATH=src
 50 CLASSES=build
 51 DIST=dist
 52 RESOURCES=resources
 53 
 54 J2DBENCH_CLASSES = \
 55 	$(CLASSES)/j2dbench/J2DBench.class \
 56 	$(CLASSES)/j2dbench/Destinations.class \
 57 	$(CLASSES)/j2dbench/Group.class \
 58 	$(CLASSES)/j2dbench/Result.class \
 59 	$(CLASSES)/j2dbench/Modifier.class \
 60 	$(CLASSES)/j2dbench/Node.class \
 61 	$(CLASSES)/j2dbench/Option.class \
 62 	$(CLASSES)/j2dbench/ResultSet.class \
 63 	$(CLASSES)/j2dbench/TestEnvironment.class \
 64 	$(CLASSES)/j2dbench/Test.class \
 65 	$(CLASSES)/j2dbench/ui/EnableButton.class \
 66 	$(CLASSES)/j2dbench/ui/CompactLayout.class \
 67 	$(CLASSES)/j2dbench/tests/ImageTests.class \
 68 	$(CLASSES)/j2dbench/tests/RenderTests.class \

 80 	$(CLASSES)/j2dbench/tests/text/TextRenderTests.class \
 81 	$(CLASSES)/j2dbench/tests/text/TextTests.class \
 82 	$(CLASSES)/j2dbench/tests/GraphicsTests.class
 83 
 84 J2DANALYZER_CLASSES = \
 85 	$(CLASSES)/j2dbench/report/IIOComparator.class \
 86 	$(CLASSES)/j2dbench/report/HTMLSeriesReporter.class \
 87 	$(CLASSES)/j2dbench/report/J2DAnalyzer.class \
 88 	$(CLASSES)/j2dbench/report/XMLHTMLReporter.class
 89 
 90 J2DBENCH_RESOURCES = \
 91 	$(CLASSES)/j2dbench/tests/iio/images \
 92 	$(CLASSES)/j2dbench/tests/cmm/images \
 93 	$(CLASSES)/j2dbench/tests/text/textdata
 94 
 95 SCM_DIRs = .hg .svn CVS RCS SCCS Codemgr_wsdata deleted_files
 96 
 97 all: mkdirs J2DBench.jar J2DAnalyzer.jar
 98 
 99 run: mkdirs J2DBench.jar
100 	$(JAVA) -jar $(DIST)/J2DBench.jar
101 
102 analyze: mkdirs J2DAnalyzer.jar
103 	$(JAVA) -jar $(DIST)/J2DAnalyzer.jar
104 
105 J2DBench.jar: \
106 	$(J2DBENCH_CLASSES) $(J2DBENCH_RESOURCES) \
107 	$(CLASSES)/j2dbench.manifest
108 	$(JAR) cvmf $(CLASSES)/j2dbench.manifest $(DIST)/J2DBench.jar -C $(CLASSES) j2dbench
109 
110 J2DAnalyzer.jar: $(J2DANALYZER_CLASSES) $(CLASSES)/j2danalyzer.manifest
111 	$(JAR) cvmf $(CLASSES)/j2danalyzer.manifest \
112 		$(DIST)/J2DAnalyzer.jar -C $(CLASSES) j2dbench/report
113 
114 $(CLASSES)/j2dbench/tests/iio/images: $(RESOURCES)/images
115 	cp -r $< $@
116 	cd $@ && rm -rf $(SCM_DIRs)
117 
118 $(CLASSES)/j2dbench/tests/text/textdata: $(RESOURCES)/textdata
119 	cp -r $< $@
120 	cd $@ && rm -rf $(SCM_DIRs)
121 
122 $(CLASSES)/j2dbench/tests/cmm/images: $(RESOURCES)/cmm_images
123 	cp -r $< $@
124 	cd $@ && rm -rf $(SCM_DIRs)
125 
126 $(CLASSES)/j2dbench.manifest:
127 	echo "Main-Class: j2dbench.J2DBench" > $@
128 
129 $(CLASSES)/j2danalyzer.manifest:
130 	echo "Main-Class: j2dbench.report.J2DAnalyzer" > $@
131 
132 $(DIST):
133 	mkdir $(DIST)
134 $(CLASSES):
135 	mkdir $(CLASSES)
136 
137 mkdirs: $(DIST) $(CLASSES)
138 
139 $(CLASSES)/j2dbench/%.class: $(SOURCEPATH)/j2dbench/%.java
140 	$(JAVAC) -g:none -source $(SOURCE) -target $(TARGET) -d $(CLASSES) -sourcepath $(SOURCEPATH) $<
141 
142 clean:
143 	rm -rf $(CLASSES)
144 	rm -rf $(DIST)
< prev index next >