Makefile revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# CDDL HEADER START
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# The contents of this file are subject to the terms of the
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Common Development and Distribution License (the "License").
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# You may not use this file except in compliance with the License.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# or http://www.opensolaris.org/os/licensing.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# See the License for the specific language governing permissions
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# and limitations under the License.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# When distributing Covered Code, include this CDDL HEADER in each
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# If applicable, add the following below this CDDL HEADER, with the
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# fields enclosed by brackets "[]" replaced with your own identifying
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# information: Portions Copyright [yyyy] [name of copyright owner]
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# CDDL HEADER END
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Use is subject to license terms.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# ident "%Z%%M% %I% %E% SMI"
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysSHELL=/usr/bin/ksh
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysinclude ../../Makefile.cmd
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys.KEEP_STATE:
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Set common AST build flags (e.g., needed to support the math stuff).
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysinclude ../../../Makefile.ast
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# build rules
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysCPPFLAGS = \
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys $(DTEXTDOM) $(DTS_ERRNO) \
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys -I$(ROOT)/usr/include/ast \
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys -D_PACKAGE_ast \
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys '-DUSAGE_LICENSE=\
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys "[-author?Glenn Fowler <gsf@research.att.com>]"\
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys "[-copyright?Copyright (c) 2000-2007 AT&T Knowledge Ventures]"\
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys "[--catalog?msgcc]"'
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysCFLAGS += \
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys $(CCVERBOSE) \
-xstrconst
LDLIBS += -last
msgcpp := LDLIBS += -lpp
msgcc: msgcc.sh
rm -f msgcc ; \
( \
print "#!/usr/bin/ksh93" ; \
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