2
|
1 |
#
|
1247
|
2 |
# Copyright 1998-2008 Sun Microsystems, Inc. All Rights Reserved.
|
2
|
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. Sun designates this
|
|
8 |
# particular file as subject to the "Classpath" exception as provided
|
|
9 |
# by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
22 |
# CA 95054 USA or visit www.sun.com if you need additional information or
|
|
23 |
# have any 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 ($(PLATFORM), windows)
|
|
52 |
OTHER_LDLIBS += -ldl
|
|
53 |
endif # PLATFORM
|
|
54 |
|
|
55 |
#
|
|
56 |
# This controls the ability to do logging in the library.
|
|
57 |
#
|
|
58 |
CPPFLAGS_DBG += -DJDWP_LOGGING
|
|
59 |
CPPFLAGS_OPT += -DJDWP_LOGGING
|
|
60 |
|
|
61 |
#
|
|
62 |
# Files to compile.
|
|
63 |
#
|
|
64 |
FILES_c = \
|
|
65 |
ArrayReferenceImpl.c \
|
|
66 |
ArrayTypeImpl.c \
|
|
67 |
ClassTypeImpl.c \
|
|
68 |
ClassLoaderReferenceImpl.c \
|
|
69 |
ClassObjectReferenceImpl.c \
|
|
70 |
EventRequestImpl.c \
|
|
71 |
FieldImpl.c \
|
|
72 |
FrameID.c \
|
|
73 |
MethodImpl.c \
|
|
74 |
ObjectReferenceImpl.c \
|
|
75 |
ReferenceTypeImpl.c \
|
|
76 |
SDE.c \
|
|
77 |
StackFrameImpl.c \
|
|
78 |
StringReferenceImpl.c \
|
|
79 |
ThreadGroupReferenceImpl.c \
|
|
80 |
ThreadReferenceImpl.c \
|
|
81 |
VirtualMachineImpl.c \
|
|
82 |
bag.c \
|
|
83 |
commonRef.c \
|
|
84 |
classTrack.c \
|
|
85 |
debugDispatch.c \
|
|
86 |
debugInit.c \
|
|
87 |
debugLoop.c \
|
|
88 |
error_messages.c \
|
|
89 |
eventFilter.c \
|
|
90 |
eventHandler.c \
|
|
91 |
eventHelper.c \
|
|
92 |
inStream.c \
|
|
93 |
invoker.c \
|
|
94 |
log_messages.c \
|
|
95 |
outStream.c \
|
|
96 |
standardHandlers.c \
|
|
97 |
stepControl.c \
|
|
98 |
stream.c \
|
|
99 |
threadControl.c \
|
|
100 |
transport.c \
|
|
101 |
util.c \
|
|
102 |
linker_md.c \
|
|
103 |
exec_md.c
|
|
104 |
|
|
105 |
#
|
|
106 |
# Rules.
|
|
107 |
#
|
|
108 |
include $(BUILDDIR)/common/Library.gmk
|
|
109 |
|
|
110 |
# We don't want to link against -ljava
|
|
111 |
JAVALIB=
|
|
112 |
|
|
113 |
#
|
|
114 |
# Add to ambient vpath so we pick up the library files
|
|
115 |
#
|
|
116 |
ifeq ($(PLATFORM), windows)
|
|
117 |
vpath %.c $(SHARE_SRC)/back:$(SHARE_SRC)/back
|
|
118 |
endif # PLATFORM
|
|
119 |
vpath %.c $(SHARE_SRC)/back:$(PLATFORM_SRC)/back
|
|
120 |
|