make/windows/makefiles/wb.make

Thu, 15 Mar 2012 13:37:13 +0100

author
nloodin
date
Thu, 15 Mar 2012 13:37:13 +0100
changeset 3681
51612f0c0a79
parent 3619
2d503de963b3
permissions
-rw-r--r--

7148488: Whitebox tests for the Diagnostic Framework Parser
Reviewed-by: brutisso, sla, mgerdin

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

mercurial