Mercurial > hg > graal-compiler
comparison make/bsd/makefiles/saproc.make @ 13086:096c224171c4
Merge with http://hg.openjdk.java.net/hsx/hsx25/hotspot/
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 20 Nov 2013 00:10:38 +0100 |
parents | f509b8f4699b |
children | c0085eefbd42 67d6392ed21e |
comparison
equal
deleted
inserted
replaced
12782:92b7ec34ddfa | 13086:096c224171c4 |
---|---|
26 | 26 |
27 # libsaproc.so(dylib): serviceability agent | 27 # libsaproc.so(dylib): serviceability agent |
28 SAPROC = saproc | 28 SAPROC = saproc |
29 | 29 |
30 ifeq ($(OS_VENDOR), Darwin) | 30 ifeq ($(OS_VENDOR), Darwin) |
31 LIBSAPROC = lib$(SAPROC).dylib | 31 LIBSAPROC = lib$(SAPROC).dylib |
32 | |
33 LIBSAPROC_DEBUGINFO = lib$(SAPROC).dylib.dSYM | |
34 LIBSAPROC_DIZ = lib$(SAPROC).diz | |
32 else | 35 else |
33 LIBSAPROC = lib$(SAPROC).so | 36 LIBSAPROC = lib$(SAPROC).so |
37 | |
38 LIBSAPROC_DEBUGINFO = lib$(SAPROC).debuginfo | |
39 LIBSAPROC_DIZ = lib$(SAPROC).diz | |
34 endif | 40 endif |
35 | 41 |
36 AGENT_DIR = $(GAMMADIR)/agent | 42 AGENT_DIR = $(GAMMADIR)/agent |
37 | 43 |
38 SASRCDIR = $(AGENT_DIR)/src/os/$(Platform_os_family) | 44 SASRCDIR = $(AGENT_DIR)/src/os/$(Platform_os_family) |
68 endif | 74 endif |
69 endif | 75 endif |
70 | 76 |
71 SAMAPFILE = $(SASRCDIR)/mapfile | 77 SAMAPFILE = $(SASRCDIR)/mapfile |
72 | 78 |
73 DEST_SAPROC = $(JDK_LIBDIR)/$(LIBSAPROC) | 79 DEST_SAPROC = $(JDK_LIBDIR)/$(LIBSAPROC) |
80 DEST_SAPROC_DEBUGINFO = $(JDK_LIBDIR)/$(LIBSAPROC_DEBUGINFO) | |
81 DEST_SAPROC_DIZ = $(JDK_LIBDIR)/$(LIBSAPROC_DIZ) | |
74 | 82 |
75 # DEBUG_BINARIES overrides everything, use full -g debug information | 83 # DEBUG_BINARIES overrides everything, use full -g debug information |
76 ifeq ($(DEBUG_BINARIES), true) | 84 ifeq ($(DEBUG_BINARIES), true) |
77 SA_DEBUG_CFLAGS = -g | 85 SA_DEBUG_CFLAGS = -g |
78 endif | 86 endif |
115 $(SASRCFILES) \ | 123 $(SASRCFILES) \ |
116 $(SA_LFLAGS) \ | 124 $(SA_LFLAGS) \ |
117 $(SA_DEBUG_CFLAGS) \ | 125 $(SA_DEBUG_CFLAGS) \ |
118 -o $@ \ | 126 -o $@ \ |
119 $(SALIBS) | 127 $(SALIBS) |
128 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) | |
129 ifeq ($(OS_VENDOR), Darwin) | |
130 $(DSYMUTIL) $@ | |
131 ifeq ($(ZIP_DEBUGINFO_FILES),1) | |
132 $(ZIPEXE) -q -r -y $(LIBSAPROC_DIZ) $(LIBSAPROC_DEBUGINFO) | |
133 $(RM) -r $(LIBSAPROC_DEBUGINFO) | |
134 endif | |
135 else | |
136 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBSAPROC_DEBUGINFO) | |
137 $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBSAPROC_DEBUGINFO) $@ | |
138 ifeq ($(STRIP_POLICY),all_strip) | |
139 $(QUIETLY) $(STRIP) $@ | |
140 else | |
141 ifeq ($(STRIP_POLICY),min_strip) | |
142 $(QUIETLY) $(STRIP) -g $@ | |
143 # implied else here is no stripping at all | |
144 endif | |
145 endif | |
146 ifeq ($(ZIP_DEBUGINFO_FILES),1) | |
147 $(ZIPEXE) -q -y $(LIBSAPROC_DIZ) $(LIBSAPROC_DEBUGINFO) | |
148 $(RM) $(LIBSAPROC_DEBUGINFO) | |
149 endif | |
150 endif | |
151 endif | |
120 | 152 |
121 install_saproc: $(BUILDLIBSAPROC) | 153 install_saproc: $(BUILDLIBSAPROC) |
122 $(QUIETLY) if [ -e $(LIBSAPROC) ] ; then \ | 154 @echo "Copying $(LIBSAPROC) to $(DEST_SAPROC)" |
123 echo "Copying $(LIBSAPROC) to $(DEST_SAPROC)"; \ | 155 ifeq ($(OS_VENDOR), Darwin) |
124 cp -f $(LIBSAPROC) $(DEST_SAPROC) && echo "Done"; \ | 156 $(QUIETLY) test -d $(LIBSAPROC_DEBUGINFO) && \ |
125 fi | 157 cp -f -r $(LIBSAPROC_DEBUGINFO) $(DEST_SAPROC_DEBUGINFO) |
158 else | |
159 $(QUIETLY) test -f $(LIBSAPROC_DEBUGINFO) && \ | |
160 cp -f $(LIBSAPROC_DEBUGINFO) $(DEST_SAPROC_DEBUGINFO) | |
161 endif | |
162 $(QUIETLY) test -f $(LIBSAPROC_DIZ) && \ | |
163 cp -f $(LIBSAPROC_DIZ) $(DEST_SAPROC_DIZ) | |
164 $(QUIETLY) cp -f $(LIBSAPROC) $(DEST_SAPROC) && echo "Done" | |
126 | 165 |
127 .PHONY: install_saproc | 166 .PHONY: install_saproc |