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