| 1 | #
|
|---|
| 2 | # Copyright (c) 1998, 2005, 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. Oracle designates this
|
|---|
| 8 | # particular file as subject to the "Classpath" exception as provided
|
|---|
| 9 | # by Oracle in the LICENSE file that accompanied this code.
|
|---|
| 10 | #
|
|---|
| 11 | # This code is distributed in the hope that it will be useful, but WITHOUT
|
|---|
| 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|---|
| 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|---|
| 14 | # version 2 for more details (a copy is included in the LICENSE file that
|
|---|
| 15 | # accompanied this code).
|
|---|
| 16 | #
|
|---|
| 17 | # You should have received a copy of the GNU General Public License version
|
|---|
| 18 | # 2 along with this work; if not, write to the Free Software Foundation,
|
|---|
| 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|---|
| 20 | #
|
|---|
| 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|---|
| 22 | # or visit www.oracle.com if you need additional information or have any
|
|---|
| 23 | # questions.
|
|---|
| 24 | #
|
|---|
| 25 |
|
|---|
| 26 | #
|
|---|
| 27 | # Makefile for building the JDI back-end implementation
|
|---|
| 28 | #
|
|---|
| 29 |
|
|---|
| 30 | BUILDDIR = ../..
|
|---|
| 31 | LIBRARY = jdwp
|
|---|
| 32 | PRODUCT = jpda
|
|---|
| 33 |
|
|---|
| 34 | FILES_m = mapfile-vers
|
|---|
| 35 |
|
|---|
| 36 | include $(BUILDDIR)/common/Defs.gmk
|
|---|
| 37 |
|
|---|
| 38 | # Use the mapfile-vers (See the mapfile located with this Makefile)
|
|---|
| 39 | ifdef FILES_m
|
|---|
| 40 | include $(BUILDDIR)/common/Mapfile-vers.gmk
|
|---|
| 41 | endif
|
|---|
| 42 |
|
|---|
| 43 | OTHER_INCLUDES = -I$(SHARE_SRC)/transport/export \
|
|---|
| 44 | -I$(SHARE_SRC)/back/export \
|
|---|
| 45 | -I$(SHARE_SRC)/npt \
|
|---|
| 46 | -I$(PLATFORM_SRC)/npt \
|
|---|
| 47 | -I$(SHARE_SRC)/back \
|
|---|
| 48 | -I$(PLATFORM_SRC)/back \
|
|---|
| 49 | -I$(GENNATIVESRCDIR)/jdwp
|
|---|
| 50 |
|
|---|
| 51 | ifneq ($(filter-out windows os2, $(PLATFORM)),)
|
|---|
| 52 | OTHER_LDLIBS += -ldl
|
|---|
| 53 | endif # PLATFORM
|
|---|
| 54 |
|
|---|
| 55 | #
|
|---|
| 56 | # This turns off all assert() checking in the optimized library
|
|---|
| 57 | #
|
|---|
| 58 | CPPFLAGS_OPT += -DNDEBUG
|
|---|
| 59 |
|
|---|
| 60 | #
|
|---|
| 61 | # This controls the ability to do logging in the library.
|
|---|
| 62 | #
|
|---|
| 63 | CPPFLAGS_DBG += -DJDWP_LOGGING
|
|---|
| 64 | CPPFLAGS_OPT += -DJDWP_LOGGING
|
|---|
| 65 |
|
|---|
| 66 | #
|
|---|
| 67 | # Files to compile.
|
|---|
| 68 | #
|
|---|
| 69 | FILES_c = \
|
|---|
| 70 | ArrayReferenceImpl.c \
|
|---|
| 71 | ArrayTypeImpl.c \
|
|---|
| 72 | ClassTypeImpl.c \
|
|---|
| 73 | ClassLoaderReferenceImpl.c \
|
|---|
| 74 | ClassObjectReferenceImpl.c \
|
|---|
| 75 | EventRequestImpl.c \
|
|---|
| 76 | FieldImpl.c \
|
|---|
| 77 | FrameID.c \
|
|---|
| 78 | MethodImpl.c \
|
|---|
| 79 | ObjectReferenceImpl.c \
|
|---|
| 80 | ReferenceTypeImpl.c \
|
|---|
| 81 | SDE.c \
|
|---|
| 82 | StackFrameImpl.c \
|
|---|
| 83 | StringReferenceImpl.c \
|
|---|
| 84 | ThreadGroupReferenceImpl.c \
|
|---|
| 85 | ThreadReferenceImpl.c \
|
|---|
| 86 | VirtualMachineImpl.c \
|
|---|
| 87 | bag.c \
|
|---|
| 88 | commonRef.c \
|
|---|
| 89 | classTrack.c \
|
|---|
| 90 | debugDispatch.c \
|
|---|
| 91 | debugInit.c \
|
|---|
| 92 | debugLoop.c \
|
|---|
| 93 | error_messages.c \
|
|---|
| 94 | eventFilter.c \
|
|---|
| 95 | eventHandler.c \
|
|---|
| 96 | eventHelper.c \
|
|---|
| 97 | inStream.c \
|
|---|
| 98 | invoker.c \
|
|---|
| 99 | log_messages.c \
|
|---|
| 100 | outStream.c \
|
|---|
| 101 | standardHandlers.c \
|
|---|
| 102 | stepControl.c \
|
|---|
| 103 | stream.c \
|
|---|
| 104 | threadControl.c \
|
|---|
| 105 | transport.c \
|
|---|
| 106 | util.c \
|
|---|
| 107 | linker_md.c \
|
|---|
| 108 | exec_md.c
|
|---|
| 109 |
|
|---|
| 110 | #
|
|---|
| 111 | # Rules.
|
|---|
| 112 | #
|
|---|
| 113 | include $(BUILDDIR)/common/Library.gmk
|
|---|
| 114 |
|
|---|
| 115 | # We don't want to link against -ljava
|
|---|
| 116 | JAVALIB=
|
|---|
| 117 |
|
|---|
| 118 | #
|
|---|
| 119 | # Add to ambient vpath so we pick up the library files
|
|---|
| 120 | #
|
|---|
| 121 | vpath %.c $(SHARE_SRC)/back $(PLATFORM_SRC)/back
|
|---|