Mercurial > hg > graal-jvmci-8
comparison make/linux/makefiles/sa.make @ 6641:a9fed06c01d2
7154641: Servicability agent should work on platforms other than x86, sparc
Summary: Added capability to load support classes for other cpus
Reviewed-by: coleenp, bobv, sla
Contributed-by: Bill Pittore <bill.pittore@oracle.com>
author | bpittore |
---|---|
date | Thu, 30 Aug 2012 11:20:01 -0400 |
parents | 098acdf97f09 |
children | fac3dd92ebaf 5a98bf7d847b |
comparison
equal
deleted
inserted
replaced
6640:e2cc1fe53845 | 6641:a9fed06c01d2 |
---|---|
28 # This makefile is used to build Serviceability Agent java code | 28 # This makefile is used to build Serviceability Agent java code |
29 # and generate JNI header file for native methods. | 29 # and generate JNI header file for native methods. |
30 | 30 |
31 include $(GAMMADIR)/make/linux/makefiles/rules.make | 31 include $(GAMMADIR)/make/linux/makefiles/rules.make |
32 | 32 |
33 include $(GAMMADIR)/make/defs.make | |
34 include $(GAMMADIR)/make/altsrc.make | |
35 | |
33 AGENT_DIR = $(GAMMADIR)/agent | 36 AGENT_DIR = $(GAMMADIR)/agent |
34 | 37 |
35 include $(GAMMADIR)/make/sa.files | 38 include $(GAMMADIR)/make/sa.files |
39 | |
40 -include $(HS_ALT_MAKE)/linux/makefiles/sa.make | |
41 | |
36 | 42 |
37 TOPDIR = $(shell echo `pwd`) | 43 TOPDIR = $(shell echo `pwd`) |
38 GENERATED = $(TOPDIR)/../generated | 44 GENERATED = $(TOPDIR)/../generated |
39 | 45 |
40 # tools.jar is needed by the JDI - SA binding | 46 # tools.jar is needed by the JDI - SA binding |
50 SA_BUILD_VERSION_PROP = "sun.jvm.hotspot.runtime.VM.saBuildVersion=$(SA_BUILD_VERSION)" | 56 SA_BUILD_VERSION_PROP = "sun.jvm.hotspot.runtime.VM.saBuildVersion=$(SA_BUILD_VERSION)" |
51 | 57 |
52 SA_PROPERTIES = $(SA_CLASSDIR)/sa.properties | 58 SA_PROPERTIES = $(SA_CLASSDIR)/sa.properties |
53 | 59 |
54 # if $(AGENT_DIR) does not exist, we don't build SA | 60 # if $(AGENT_DIR) does not exist, we don't build SA |
55 # also, we don't build SA on Itanium, PowerPC, ARM or zero. | 61 # also, we don't build SA on Itanium or zero. |
56 | 62 |
57 all: | 63 all: |
58 if [ -d $(AGENT_DIR) -a "$(SRCARCH)" != "ia64" \ | 64 if [ -d $(AGENT_DIR) -a "$(SRCARCH)" != "ia64" \ |
59 -a "$(SRCARCH)" != "arm" \ | |
60 -a "$(SRCARCH)" != "ppc" \ | |
61 -a "$(SRCARCH)" != "zero" ] ; then \ | 65 -a "$(SRCARCH)" != "zero" ] ; then \ |
62 $(MAKE) -f sa.make $(GENERATED)/sa-jdi.jar; \ | 66 $(MAKE) -f sa.make $(GENERATED)/sa-jdi.jar; \ |
63 fi | 67 fi |
64 | 68 |
65 $(GENERATED)/sa-jdi.jar: $(AGENT_FILES) | 69 $(GENERATED)/sa-jdi.jar:: $(AGENT_FILES) |
66 $(QUIETLY) echo "Making $@" | 70 $(QUIETLY) echo "Making $@" |
67 $(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \ | 71 $(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \ |
68 echo "ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"; \ | 72 echo "ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"; \ |
69 exit 1; \ | 73 exit 1; \ |
70 fi | 74 fi |
109 | 113 |
110 clean: | 114 clean: |
111 rm -rf $(SA_CLASSDIR) | 115 rm -rf $(SA_CLASSDIR) |
112 rm -rf $(GENERATED)/sa-jdi.jar | 116 rm -rf $(GENERATED)/sa-jdi.jar |
113 rm -rf $(AGENT_FILES_LIST) | 117 rm -rf $(AGENT_FILES_LIST) |
118 | |
119 -include $(HS_ALT_MAKE)/linux/makefiles/sa-rules.make |