Makefile revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# or http://www.opensolaris.org/os/licensing.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
5dbfd19ad5fcc2b779f40f80fa05c1bd28fd0b4eTheo Schlossnagle# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# If applicable, add the following below this CDDL HEADER, with the
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# fields enclosed by brackets "[]" replaced with your own identifying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Use is subject to license terms.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# ident "%Z%%M% %I% %E% SMI"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSHELL=/usr/bin/ksh
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude ../../Makefile.cmd
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe.KEEP_STATE:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Set common AST build flags (e.g., needed to support the math stuff).
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude ../../../Makefile.ast
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# build rules
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCPPFLAGS = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(DTEXTDOM) $(DTS_ERRNO) \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(ROOT)/usr/include/ast \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -D_PACKAGE_ast \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe '-DUSAGE_LICENSE=\
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe "[-author?Glenn Fowler <gsf@research.att.com>]"\
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe "[-copyright?Copyright (c) 2000-2007 AT&T Knowledge Ventures]"\
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe "[--catalog?msgcc]"'
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCFLAGS += \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(CCVERBOSE) \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -xstrconst
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLDLIBS += -last
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowemsgcpp := LDLIBS += -lpp
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowemsgcc: msgcc.sh
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe rm -f msgcc ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ( \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe print "#!/usr/bin/ksh93" ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe print "export PATH=/usr/ast/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:\$${PATH}" ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe print "builtin date" ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe cat "msgcc.sh" ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ) >msgcc ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe chmod a+rx msgcc
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweROOTCMDDIR=$(ROOT)/usr/ast/bin
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePROG= msgcvt msggen msgget msgcpp msgcc
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweall: $(PROG)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinstall: all $(ROOTCMD)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclean lint:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude ../../Makefile.targ
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe