author | wetmore |
Tue, 21 Aug 2018 11:30:48 -0700 | |
changeset 51574 | ed52ea83f830 |
parent 50854 | 55db6189e827 |
child 53683 | 48ff68e2fe5c |
permissions | -rw-r--r-- |
34289
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
1 |
# |
50818
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
2 |
# Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
34289
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
4 |
# |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
10 |
# |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
15 |
# accompanied this code). |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
16 |
# |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
20 |
# |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
23 |
# questions. |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
24 |
# |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
25 |
|
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
26 |
default: all |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
27 |
|
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
28 |
include $(SPEC) |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
29 |
include MakeBase.gmk |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
30 |
|
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
31 |
################################################################################ |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
32 |
|
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
33 |
SA_PROPERTIES := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent/sa.properties |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
34 |
|
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
35 |
SA_BUILD_VERSION_PROP_NAME := "sun.jvm.hotspot.runtime.VM.saBuildVersion" |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
36 |
|
34319 | 37 |
$(SA_PROPERTIES): $(call DependOnVariable, VERSION_STRING) |
50854 | 38 |
$(call MakeTargetDir) |
34319 | 39 |
$(ECHO) "$(SA_BUILD_VERSION_PROP_NAME)=$(VERSION_STRING)" > $@ |
34289
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
40 |
|
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
41 |
TARGETS += $(SA_PROPERTIES) |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
42 |
|
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
43 |
################################################################################ |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
44 |
|
50818
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
45 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
46 |
MIG_OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent |
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
47 |
MACH_EXC_HEADER := $(MIG_OUTPUT_DIR)/mach_exc.h |
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
48 |
MACH_EXC_USER := $(MIG_OUTPUT_DIR)/mach_excUser.c |
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
49 |
MACH_EXC_SERVER := $(MIG_OUTPUT_DIR)/mach_excServer.c |
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
50 |
|
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
51 |
$(MACH_EXC_SERVER): $(SDKROOT)/usr/include/mach/mach_exc.defs |
50854 | 52 |
$(call MakeTargetDir) |
53 |
$(MIG) $(if $(SDKROOT), -isysroot $(SDKROOT)) \ |
|
54 |
-server $@ -user $(MACH_EXC_USER) \ |
|
50818
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
55 |
-header $(MACH_EXC_HEADER) $(SDKROOT)/usr/include/mach/mach_exc.defs |
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
56 |
|
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
57 |
TARGETS += $(MACH_EXC_SERVER) |
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
58 |
endif |
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
59 |
|
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
60 |
################################################################################ |
e46b9e514479
8189429: SA: MacOSX: Replace the deprecated PT_ATTACH with PT_ATTACHEXC
jgeorge
parents:
47216
diff
changeset
|
61 |
|
34289
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
62 |
all: $(TARGETS) |
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
63 |
|
2d1821a50263
8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents:
diff
changeset
|
64 |
.PHONY: all default |