Makefile revision 7c2fbfb345896881c631598ee3852ce9ce33fb07
6674N/A#
6674N/A# CDDL HEADER START
6674N/A#
6674N/A# The contents of this file are subject to the terms of the
6674N/A# Common Development and Distribution License (the "License").
6674N/A# You may not use this file except in compliance with the License.
6674N/A#
6674N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6674N/A# or http://www.opensolaris.org/os/licensing.
6674N/A# See the License for the specific language governing permissions
6674N/A# and limitations under the License.
6674N/A#
6674N/A# When distributing Covered Code, include this CDDL HEADER in each
6674N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6674N/A# If applicable, add the following below this CDDL HEADER, with the
6674N/A# fields enclosed by brackets "[]" replaced with your own identifying
6674N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6674N/A#
6674N/A# CDDL HEADER END
6674N/A#
6674N/A#
6674N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
6674N/A# Use is subject to license terms.
6674N/A#
6674N/A
6674N/ASHELL=/usr/bin/ksh93
6674N/A
6674N/Ainclude ../../Makefile.cmd
6674N/A
6674N/A.KEEP_STATE:
6674N/A
6674N/A# Set common AST build flags (e.g., needed to support the math stuff).
6674N/Ainclude ../../../Makefile.ast
6674N/A
6674N/A# build rules
6674N/ACPPFLAGS = \
6674N/A $(DTEXTDOM) $(DTS_ERRNO) \
6674N/A -I$(ROOT)/usr/include/ast \
6674N/A -D_PACKAGE_ast \
6674N/A '-DUSAGE_LICENSE=\
6674N/A "[-author?Glenn Fowler <gsf@research.att.com>]"\
6674N/A "[-copyright?Copyright (c) 1986-2008 AT&T Intellectual Property]"\
6674N/A "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
6674N/A "[--catalog?msgcc]"'
6674N/A
6674N/ACFLAGS += \
6674N/A $(ASTCFLAGS)
6674N/A
6674N/ALDLIBS += -last
6674N/Amsgcpp := LDLIBS += -lpp
6674N/A
6674N/A# This target should use "shcomp" in the future
6674N/Amsgcc: msgcc.sh
6674N/A rm -f msgcc ; \
6674N/A { \
6674N/A print "#!/usr/bin/ksh93" ; \
6674N/A print "export PATH=/usr/ast/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:\$${PATH}" ; \
print "builtin date" ; \
cat "msgcc.sh" ; \
} >msgcc ; \
chmod a+rx msgcc
ROOTCMDDIR=$(ROOT)/usr/ast/bin
PROG= msgcvt msggen msgget msgcpp msgcc
all: $(PROG)
install: all $(ROOTCMD)
clean lint:
include ../../Makefile.targ