mgerdin@3619: # mgerdin@3619: # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. mgerdin@3619: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mgerdin@3619: # mgerdin@3619: # This code is free software; you can redistribute it and/or modify it mgerdin@3619: # under the terms of the GNU General Public License version 2 only, as mgerdin@3619: # published by the Free Software Foundation. mgerdin@3619: # mgerdin@3619: # This code is distributed in the hope that it will be useful, but WITHOUT mgerdin@3619: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mgerdin@3619: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mgerdin@3619: # version 2 for more details (a copy is included in the LICENSE file that mgerdin@3619: # accompanied this code). mgerdin@3619: # mgerdin@3619: # You should have received a copy of the GNU General Public License version mgerdin@3619: # 2 along with this work; if not, write to the Free Software Foundation, mgerdin@3619: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mgerdin@3619: # mgerdin@3619: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA mgerdin@3619: # or visit www.oracle.com if you need additional information or have any mgerdin@3619: # questions. mgerdin@3619: # mgerdin@3619: # mgerdin@3619: mgerdin@3619: # This makefile is used to build the whitebox testing lib mgerdin@3619: # and compile the tests which use it mgerdin@3619: mgerdin@3619: !include $(WorkSpace)/make/windows/makefiles/rules.make mgerdin@3619: mgerdin@3619: WBSRCDIR = $(WorkSpace)/src/share/tools/whitebox mgerdin@3619: mgerdin@3619: # turn GENERATED into a windows path to get sane dependencies mgerdin@3619: WB_CLASSES=$(GENERATED:/=\)\wb\classes mgerdin@3619: WB_JAR=$(GENERATED:/=\)\wb.jar mgerdin@3619: mgerdin@3619: # call recursive make to do wildcard expansion mgerdin@3619: .SUFFIXES : .java .class mgerdin@3619: wb_java_srcs: $(WorkSpace)\src\share\tools\whitebox\sun\hotspot\*.java $(WB_CLASSES) mgerdin@3619: $(MAKE) -f $(WorkSpace)\make\windows\makefiles\$(BUILD_FLAVOR).make $(**:.java=.class) mgerdin@3619: mgerdin@3619: mgerdin@3619: {$(WorkSpace)\src\share\tools\whitebox\sun\hotspot}.java.class:: nloodin@3681: $(COMPILE_JAVAC) -sourcepath $(WBSRCDIR) -d $(WB_CLASSES) $< mgerdin@3619: mgerdin@3619: $(WB_JAR): wb_java_srcs mgerdin@3619: $(RUN_JAR) cf $@ -C $(WB_CLASSES) . mgerdin@3619: mgerdin@3619: # turn $@ to a unix path because mkdir in PATH is cygwin/mks mkdir mgerdin@3619: $(WB_CLASSES): mgerdin@3619: mkdir -p $(@:\=/) mgerdin@3619: mgerdin@3619: # main target to build wb mgerdin@3619: wb: $(WB_JAR) mgerdin@3619: