J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | # |
| 2 | # Copyright 1999-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 JDI shared memory transport implementation |
| 28 | # |
| 29 | |
| 30 | BUILDDIR = ../../.. |
| 31 | LIBRARY = dt_shmem |
| 32 | PRODUCT = jbug |
| 33 | |
| 34 | # Mapfile only used on Solaris/Linux |
| 35 | FILES_m = mapfile-vers |
| 36 | |
| 37 | include $(BUILDDIR)/common/Defs.gmk |
| 38 | |
| 39 | # 64-bit windows does not build at -W3 if warnings are fatal |
| 40 | ifeq ($(PLATFORM), windows) |
| 41 | ifeq ($(ARCH_DATA_MODEL), 64) |
| 42 | COMPILER_WARNINGS_FATAL=false |
| 43 | endif |
| 44 | endif |
| 45 | |
| 46 | FILES_c = \ |
| 47 | SharedMemoryTransport.c \ |
| 48 | SharedMemoryConnection.c \ |
| 49 | shmemBack.c \ |
| 50 | shmemBase.c \ |
| 51 | shmem_md.c |
| 52 | |
| 53 | OTHER_INCLUDES = -I$(INCLUDEDIR) -I$(PLATFORM_INCLUDE) \ |
| 54 | -I$(SHARE_SRC)/transport/export \ |
| 55 | -I$(SHARE_SRC)/transport/shmem \ |
| 56 | -I$(SHARE_SRC)/back/export \ |
| 57 | -I$(PLATFORM_SRC)/transport/shmem |
| 58 | |
| 59 | # |
| 60 | # Stuff to feed into javah. |
| 61 | # |
| 62 | FILES_export = \ |
| 63 | com/sun/tools/jdi/SharedMemoryConnection.java \ |
| 64 | com/sun/tools/jdi/SharedMemoryTransportService.java |
| 65 | |
| 66 | # Use the mapfile-vers (See the mapfile located with this Makefile) |
| 67 | ifdef FILES_m |
| 68 | include $(BUILDDIR)/common/Mapfile-vers.gmk |
| 69 | endif |
| 70 | |
| 71 | # |
| 72 | # Rules. |
| 73 | # |
| 74 | include $(BUILDDIR)/common/Library.gmk |
| 75 | |
| 76 | # Add -export options to explicitly spell exported symbols |
| 77 | ifeq ($(PLATFORM), windows) |
| 78 | OTHER_LCF += -export:jdwpTransport_OnLoad |
| 79 | endif |
| 80 | |
| 81 | # |
| 82 | # vpaths for the transport (should not be seen by others) |
| 83 | # |
| 84 | vpath %.c $(SHARE_SRC)/native/com/sun/tools/jdi:$(SHARE_SRC)/transport/shmem:$(PLATFORM_SRC)/transport/shmem |