Makefile revision 2362
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# This code is free software; you can redistribute it and/or modify it
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# under the terms of the GNU General Public License version 2 only, as
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# published by the Free Software Foundation. Oracle designates this
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# particular file as subject to the "Classpath" exception as provided
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# by Oracle in the LICENSE file that accompanied this code.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# This code is distributed in the hope that it will be useful, but WITHOUT
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# version 2 for more details (a copy is included in the LICENSE file that
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# accompanied this code).
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# You should have received a copy of the GNU General Public License version
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# 2 along with this work; if not, write to the Free Software Foundation,
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# or visit www.oracle.com if you need additional information or have any
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# questions.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncBUILDDIR = ../../../..
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncMODULE = attach
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncPACKAGE = com.sun.tools.attach
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncLIBRARY = attach
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncPRODUCT = sun
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncinclude $(BUILDDIR)/common/Defs.gmk
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
ifeq ($(PLATFORM), solaris)
FILES_m = mapfile-solaris
endif
ifeq ($(PLATFORM), linux)
FILES_m = mapfile-linux
endif
include $(BUILDDIR)/common/Mapfile-vers.gmk
#
# Files to compile
#
include FILES_c.gmk
include FILES_java.gmk
include Exportedfiles.gmk
ifeq ($(PLATFORM), solaris)
OTHER_LDLIBS += -ldoor
endif
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)\]//" > $@
@$(install-module-file)
.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