2007-12-01 00:00:00 +00:00
|
|
|
#
|
2011-04-07 05:06:11 +00:00
|
|
|
# Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
|
2007-12-01 00:00:00 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
2010-05-25 22:58:33 +00:00
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
2007-12-01 00:00:00 +00:00
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
2010-05-25 22:58:33 +00:00
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
2007-12-01 00:00:00 +00:00
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
2010-05-25 22:58:33 +00:00
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
2007-12-01 00:00:00 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Makefile for building all the demos
|
|
|
|
#
|
|
|
|
|
|
|
|
BUILDDIR = ..
|
|
|
|
PRODUCT = demos
|
|
|
|
include $(BUILDDIR)/common/Defs.gmk
|
|
|
|
|
2010-10-09 04:33:28 +00:00
|
|
|
SUBDIRS = jni nio
|
2010-02-11 01:51:07 +00:00
|
|
|
SUBDIRS_desktop = applets jfc
|
|
|
|
SUBDIRS_management = management
|
|
|
|
SUBDIRS_misc = scripting
|
|
|
|
SUBDIRS_tools = jpda jvmti
|
|
|
|
|
|
|
|
include $(BUILDDIR)/common/Subdirs.gmk
|
2007-12-01 00:00:00 +00:00
|
|
|
|
2011-08-31 11:48:04 +00:00
|
|
|
TOPLEVEL_FILES = \
|
|
|
|
$(DEMODIR)/README
|
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
all build:: nbproject
|
|
|
|
$(SUBDIRS-loop)
|
|
|
|
|
2011-08-31 11:48:04 +00:00
|
|
|
all build:: $(TOPLEVEL_FILES)
|
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
nbproject:
|
|
|
|
$(RM) -r $(DEMODIR)/nbproject
|
|
|
|
$(MKDIR) -p $(DEMODIR)
|
|
|
|
( $(CD) $(SHARE_SRC)/demo && $(TAR) -cf - \
|
2010-07-07 01:23:14 +00:00
|
|
|
`$(FIND) nbproject $(SCM_DIRS_prune) -o -type f -print` ) | \
|
2007-12-01 00:00:00 +00:00
|
|
|
( $(CD) $(DEMODIR) && $(TAR) -xf - )
|
|
|
|
ifndef OPENJDK
|
|
|
|
( $(CD) $(CLOSED_SHARE_SRC)/demo && $(TAR) -cf - \
|
2010-07-07 01:23:14 +00:00
|
|
|
`$(FIND) nbproject $(SCM_DIRS_prune) -o -type f -print` ) | \
|
2007-12-01 00:00:00 +00:00
|
|
|
( $(CD) $(DEMODIR) && $(TAR) -xf - )
|
|
|
|
endif
|
|
|
|
|
2011-08-31 11:48:04 +00:00
|
|
|
$(DEMODIR)/%: $(DEMOSRCDIR)/%
|
|
|
|
$(install-file)
|
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
clean clobber::
|
|
|
|
$(SUBDIRS-loop)
|
|
|
|
$(RM) -r $(DEMODIR)
|
|
|
|
$(RM) -r $(DEMOCLASSDIR)
|