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