1 #
2 # Copyright (c) 1999, 2013, 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 #
350 ifeq ($(STRIP_POLICY),min_strip)
351 $(QUIETLY) $(STRIP) -g $@
352 # implied else here is no stripping at all
353 endif
354 endif
355 ifeq ($(ZIP_DEBUGINFO_FILES),1)
356 $(ZIPEXE) -q -y $(LIBJVM_DIZ) $(LIBJVM_DEBUGINFO)
357 $(RM) $(LIBJVM_DEBUGINFO)
358 endif
359 endif
360 endif
361
362 DEST_SUBDIR = $(JDK_LIBDIR)/$(VM_SUBDIR)
363 DEST_JVM = $(DEST_SUBDIR)/$(LIBJVM)
364 DEST_JVM_DEBUGINFO = $(DEST_SUBDIR)/$(LIBJVM_DEBUGINFO)
365 DEST_JVM_DIZ = $(DEST_SUBDIR)/$(LIBJVM_DIZ)
366
367 install_jvm: $(LIBJVM)
368 @echo "Copying $(LIBJVM) to $(DEST_JVM)"
369 ifeq ($(OS_VENDOR), Darwin)
370 $(QUIETLY) test -d $(LIBJVM_DEBUGINFO) && \
371 cp -f -r $(LIBJVM_DEBUGINFO) $(DEST_JVM_DEBUGINFO)
372 else
373 $(QUIETLY) test -f $(LIBJVM_DEBUGINFO) && \
374 cp -f $(LIBJVM_DEBUGINFO) $(DEST_JVM_DEBUGINFO)
375 endif
376 $(QUIETLY) test -f $(LIBJVM_DIZ) && \
377 cp -f $(LIBJVM_DIZ) $(DEST_JVM_DIZ)
378 $(QUIETLY) cp -f $(LIBJVM) $(DEST_JVM) && echo "Done"
379
380 #----------------------------------------------------------------------
381 # Other files
382
383 # Signal interposition library
384 include $(MAKEFILES_DIR)/jsig.make
385
386 # Serviceability agent
387 include $(MAKEFILES_DIR)/saproc.make
388
389 #----------------------------------------------------------------------
390
391 ifeq ($(OS_VENDOR), Darwin)
392 # no libjvm_db for macosx
393 build: $(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(BUILDLIBSAPROC) dtraceCheck
394 echo "Doing vm.make build:"
395 else
396 build: $(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(BUILDLIBSAPROC)
|
1 #
2 # Copyright (c) 1999, 2014, 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 #
350 ifeq ($(STRIP_POLICY),min_strip)
351 $(QUIETLY) $(STRIP) -g $@
352 # implied else here is no stripping at all
353 endif
354 endif
355 ifeq ($(ZIP_DEBUGINFO_FILES),1)
356 $(ZIPEXE) -q -y $(LIBJVM_DIZ) $(LIBJVM_DEBUGINFO)
357 $(RM) $(LIBJVM_DEBUGINFO)
358 endif
359 endif
360 endif
361
362 DEST_SUBDIR = $(JDK_LIBDIR)/$(VM_SUBDIR)
363 DEST_JVM = $(DEST_SUBDIR)/$(LIBJVM)
364 DEST_JVM_DEBUGINFO = $(DEST_SUBDIR)/$(LIBJVM_DEBUGINFO)
365 DEST_JVM_DIZ = $(DEST_SUBDIR)/$(LIBJVM_DIZ)
366
367 install_jvm: $(LIBJVM)
368 @echo "Copying $(LIBJVM) to $(DEST_JVM)"
369 ifeq ($(OS_VENDOR), Darwin)
370 $(QUIETLY) test ! -d $(LIBJVM_DEBUGINFO) || \
371 cp -f -r $(LIBJVM_DEBUGINFO) $(DEST_JVM_DEBUGINFO)
372 else
373 $(QUIETLY) test ! -f $(LIBJVM_DEBUGINFO) || \
374 cp -f $(LIBJVM_DEBUGINFO) $(DEST_JVM_DEBUGINFO)
375 endif
376 $(QUIETLY) test ! -f $(LIBJVM_DIZ) || \
377 cp -f $(LIBJVM_DIZ) $(DEST_JVM_DIZ)
378 $(QUIETLY) cp -f $(LIBJVM) $(DEST_JVM) && echo "Done"
379
380 #----------------------------------------------------------------------
381 # Other files
382
383 # Signal interposition library
384 include $(MAKEFILES_DIR)/jsig.make
385
386 # Serviceability agent
387 include $(MAKEFILES_DIR)/saproc.make
388
389 #----------------------------------------------------------------------
390
391 ifeq ($(OS_VENDOR), Darwin)
392 # no libjvm_db for macosx
393 build: $(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(BUILDLIBSAPROC) dtraceCheck
394 echo "Doing vm.make build:"
395 else
396 build: $(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(BUILDLIBSAPROC)
|