0N/A# Copyright (c) 2006, 2007, Oracle and/or its affiliates. All rights reserved.
2362N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A#
0N/A# This code is free software; you can redistribute it and/or modify it
0N/A# under the terms of the GNU General Public License version 2 only, as
0N/A# published by the Free Software Foundation.
2362N/A#
0N/A# This code is distributed in the hope that it will be useful, but WITHOUT
2362N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A# version 2 for more details (a copy is included in the LICENSE file that
0N/A# accompanied this code).
0N/A#
0N/A# You should have received a copy of the GNU General Public License version
0N/A# 2 along with this work; if not, write to the Free Software Foundation,
0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A#
0N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0N/A# or visit www.oracle.com if you need additional information or have any
0N/A# questions.
2362N/A
2362N/A#
2362N/A# This Makefile is used to generate versions of the launcher program for
0N/A# use by the CustomLauncherTest. The binaries are checked into SCCS
0N/A# so this Makefile is not used as part of test run. It is provided to
0N/A# make rebuilding the launcher binaries a relatively painless activity.
0N/A#
0N/A
0N/A#
0N/A# Edit the following to reflect the current build environment.
0N/A#
0N/A# Architecture being built (initially one of: solaris-sparc, solaris-i586,
0N/A# linux-i586.
0N/A#
0N/APLATFORM=solaris
0N/AARCH=sparc
0N/AOUTPUT_DIR =$(PLATFORM)-$(ARCH)
0N/A
0N/A#
0N/A# Path to C compiler
0N/A#
0N/A# As of 6/1/06:
0N/A# Solaris CC=/java/devtools/$(ARCH)/SUNWspro/SS11/bin/cc
0N/A# Linux CC=/usr/bin/gcc
0N/A#
0N/ACC=/java/devtools/$(ARCH)/SUNWspro/SS11/bin/cc
0N/A
0N/A#
0N/A# Include directory in JRE or JDK install
0N/A#
0N/AJINCLUDE=/java/re/jdk/1.6.0/latest/binaries/$(OUTPUT_DIR)/include
0N/A
0N/A#
0N/A# PLATFORM dependent flags
0N/A#
0N/A# On pre-Solaris 10, -lthread is required.
0N/A#
0N/Aifeq ($(PLATFORM), solaris)
0N/A PLATFORM_LIBS= -lthread
0N/Aelse
0N/A PLATFORM_LIBS=
endif
#
# Targets
#
all: install
$(PLATFORM):
mkdir $(OUTPUT_DIR) $(OUTPUT_DIR)/SCCS
install: $(PLATFORM)
$(CC) -I$(JINCLUDE) -I$(JINCLUDE)/$(PLATFORM) \
-o $(OUTPUT_DIR)/launcher launcher.c $(PLATFORM_LIBS) -ldl
clean:
clobber: clean
rm $(OUTPUT_DIR)/launcher