Makefile revision 0
1N/A#
1N/A# Copyright 1999-2005 Sun Microsystems, Inc. All Rights Reserved.
1N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1N/A#
1N/A# This code is free software; you can redistribute it and/or modify it
1N/A# under the terms of the GNU General Public License version 2 only, as
1N/A# published by the Free Software Foundation. Sun designates this
1N/A# particular file as subject to the "Classpath" exception as provided
1N/A# by Sun in the LICENSE file that accompanied this code.
1N/A#
1N/A# This code is distributed in the hope that it will be useful, but WITHOUT
1N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1N/A# version 2 for more details (a copy is included in the LICENSE file that
1N/A# accompanied this code).
1N/A#
1N/A# You should have received a copy of the GNU General Public License version
1N/A# 2 along with this work; if not, write to the Free Software Foundation,
1N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1N/A#
1N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
1N/A# CA 95054 USA or visit www.sun.com if you need additional information or
1N/A# have any questions.
1N/A#
1N/A
1N/A#
1N/A# Makefile for building jexec, a wrapper for direct execution of JAR files
1N/A# on UNIX systems.
1N/A#
1N/A
1N/ABUILDDIR = ../..
1N/A
1N/APACKAGE = java.jexec
1N/APRODUCT = sun
1N/APROGRAM = jexec
1N/A
1N/Ainclude $(BUILDDIR)/common/Defs.gmk
1N/A
1N/Aifeq ($(COMPILE_APPROACH),batch)
1N/A override COMPILE_APPROACH = normal
1N/Aendif
1N/A
1N/Ainclude $(BUILDDIR)/common/Rules.gmk
1N/A
1N/AJEXE_SRC = $(PLATFORM_SRC)/bin
1N/A
1N/AFILES_c = jexec.c
1N/AFILES_o = $(patsubst %.c,$(OBJDIR)/%.o,$(FILES_c))
1N/A
1N/Avpath %.c $(JEXE_SRC)
1N/A
1N/Aifeq ($(PLATFORM), linux)
1N/A #
1N/A # On Linux jexec goes in lib, not lib/<arch>
1N/A #
1N/A LIB_LOCATION = $(LIBDIR)
1N/A
1N/A #
1N/A # Also include the manifest_info.h header file.
1N/A #
1N/A OTHER_INCLUDES += -I$(SHARE_SRC)/bin
1N/Aendif # PLATFORM
1N/A
1N/Abuild: $(LIB_LOCATION)/$(PROGRAM)
1N/A
1N/A$(LIB_LOCATION)/$(PROGRAM):: $(FILES_o)
1N/A $(prep-target)
1N/A $(LINK_PRE_CMD) $(CC) $(LDFLAGS) $(FILES_o) $(CC_OBJECT_OUTPUT_FLAG)$@
1N/A
1N/Aclean clobber::
1N/A $(RM) $(FILES_o) $(LIB_LOCATION)/$(PROGRAM)
1N/A
1N/A