blob: a974bff608b62b126f3e6cafb5dce94f930a82e8 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001#
2# Copyright 1998-2005 Sun Microsystems, Inc. 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. 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
30BUILDDIR = ../..
31LIBRARY = jdwp
32PRODUCT = jpda
33
34FILES_m = mapfile-vers
35
36include $(BUILDDIR)/common/Defs.gmk
37
38# Use the mapfile-vers (See the mapfile located with this Makefile)
39ifdef FILES_m
40include $(BUILDDIR)/common/Mapfile-vers.gmk
41endif
42
43OTHER_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
51ifneq ($(PLATFORM), windows)
52 OTHER_LDLIBS += -ldl
53endif # PLATFORM
54
55#
56# This turns off all assert() checking in the optimized library
57#
58CPPFLAGS_OPT += -DNDEBUG
59
60#
61# This controls the ability to do logging in the library.
62#
63CPPFLAGS_DBG += -DJDWP_LOGGING
64CPPFLAGS_OPT += -DJDWP_LOGGING
65
66#
67# Files to compile.
68#
69FILES_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#
113include $(BUILDDIR)/common/Library.gmk
114
115# We don't want to link against -ljava
116JAVALIB=
117
118#
119# Add to ambient vpath so we pick up the library files
120#
121ifeq ($(PLATFORM), windows)
122vpath %.c $(SHARE_SRC)/back:$(SHARE_SRC)/back
123endif # PLATFORM
124vpath %.c $(SHARE_SRC)/back:$(PLATFORM_SRC)/back
125