Makefile revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# CDDL HEADER START
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# The contents of this file are subject to the terms of the
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# Common Development and Distribution License (the "License").
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# You may not use this file except in compliance with the License.
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# See the License for the specific language governing permissions
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# and limitations under the License.
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# When distributing Covered Code, include this CDDL HEADER in each
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# If applicable, add the following below this CDDL HEADER, with the
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# fields enclosed by brackets "[]" replaced with your own identifying
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# information: Portions Copyright [yyyy] [name of copyright owner]
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# CDDL HEADER END
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# Use is subject to license terms.
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# ident "%Z%%M% %I% %E% SMI"
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# Fetch minor version from RELEASE, e.g. "10" for "5.10", "11" for "5.11" etc.
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikusGETRELEASEMINOR = /usr/bin/ksh -c 'x=$(RELEASE) ; print "$${x$(POUND_SIGN)$(POUND_SIGN)*.}"'
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# Platform-specific config
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# Note that "HOSTTYPE" matches the value used by AT&T upstream.
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikusASTPLATFORMCPPFLAGS = '-DHOSTTYPE="sol$(GETRELEASEMINOR:sh).sun4"'
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# platform-specific sources
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# Use -KPIC since libast is too big for -Kpic on 64bit
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus# (and on 32bit it is close to the barrier)