Makefile revision 92
85N/A#
85N/A# Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
85N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
85N/A#
85N/A# This code is free software; you can redistribute it and/or modify it
85N/A# under the terms of the GNU General Public License version 2 only, as
85N/A# published by the Free Software Foundation. Sun designates this
85N/A# particular file as subject to the "Classpath" exception as provided
85N/A# by Sun in the LICENSE file that accompanied this code.
85N/A#
85N/A# This code is distributed in the hope that it will be useful, but WITHOUT
85N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
85N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
85N/A# version 2 for more details (a copy is included in the LICENSE file that
85N/A# accompanied this code).
85N/A#
85N/A# You should have received a copy of the GNU General Public License version
85N/A# 2 along with this work; if not, write to the Free Software Foundation,
85N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
85N/A#
844N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
85N/A# CA 95054 USA or visit www.sun.com if you need additional information or
85N/A# have any questions.
85N/A#
85N/A
85N/A
618N/ABUILDDIR = ../../../..
85N/APACKAGE = com.sun.tools.attach
85N/ALIBRARY = attach
844N/APRODUCT = sun
844N/Ainclude $(BUILDDIR)/common/Defs.gmk
85N/A
1273N/Aifeq ($(PLATFORM), solaris)
85N/AFILES_m = mapfile-solaris
85N/Aendif
85N/Aifeq ($(PLATFORM), linux)
85N/AFILES_m = mapfile-linux
85N/Aendif
85N/Ainclude $(BUILDDIR)/common/Mapfile-vers.gmk
85N/A
85N/A#
85N/A# Files to compile
85N/A#
85N/Ainclude FILES_c.gmk
85N/Ainclude FILES_java.gmk
85N/Ainclude Exportedfiles.gmk
85N/A
181N/Aifeq ($(PLATFORM), solaris)
85N/AOTHER_LDLIBS += -ldoor
181N/Aendif
85N/A
181N/Avpath %.c $(PLATFORM_SRC)/native/sun/tools/attach
85N/A
181N/Aall: classes copy-files
181N/A
181N/A#
85N/A# Copy the service provider configuration files into the resource
85N/A# directory. Copy the configuration file also uncomments any
85N/A# providers that need to be enabled for this platform.
85N/A#
copy-files: $(FILES_copy)
$(SERVICEDIR)/%: $(SHARE_SRC)/classes/sun/tools/attach/META-INF/services/%
@$(MKDIR) -p $(@D)
@$(RM) $@
@$(CAT) $< | $(SED) -e "s/^#\[$(PLATFORM)\]//" > $@
.PHONY: copy-files
clean::
$(RM) -r $(CLASSDESTDIR)/com/sun/tools/attach
$(RM) -r $(CLASSDESTDIR)/sun/tools/attach
$(RM) $(FILES_copy)
#
# Library to compile.
#
include $(BUILDDIR)/common/Library.gmk