Mercurial > hg > truffle
annotate make/windows/makefiles/wb.make @ 7267:a4b84ba6dc2e
Introduction of the Truffle API for efficient implementation of dynamic languages on top of the Graal VM. New projects com.oracle.truffle.api for the API definition and com.oracle.truffle.api.test for API tests and documentation.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 18 Dec 2012 15:33:55 +0100 |
parents | 51612f0c0a79 |
children |
rev | line source |
---|---|
5915 | 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 # | |
24 | |
25 # This makefile is used to build the whitebox testing lib | |
26 # and compile the tests which use it | |
27 | |
28 !include $(WorkSpace)/make/windows/makefiles/rules.make | |
29 | |
30 WBSRCDIR = $(WorkSpace)/src/share/tools/whitebox | |
31 | |
32 # turn GENERATED into a windows path to get sane dependencies | |
33 WB_CLASSES=$(GENERATED:/=\)\wb\classes | |
34 WB_JAR=$(GENERATED:/=\)\wb.jar | |
35 | |
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) | |
40 | |
41 | |
42 {$(WorkSpace)\src\share\tools\whitebox\sun\hotspot}.java.class:: | |
5978
51612f0c0a79
7148488: Whitebox tests for the Diagnostic Framework Parser
nloodin
parents:
5915
diff
changeset
|
43 $(COMPILE_JAVAC) -sourcepath $(WBSRCDIR) -d $(WB_CLASSES) $< |
5915 | 44 |
45 $(WB_JAR): wb_java_srcs | |
46 $(RUN_JAR) cf $@ -C $(WB_CLASSES) . | |
47 | |
48 # turn $@ to a unix path because mkdir in PATH is cygwin/mks mkdir | |
49 $(WB_CLASSES): | |
50 mkdir -p $(@:\=/) | |
51 | |
52 # main target to build wb | |
53 wb: $(WB_JAR) | |
54 |