1*da2e3ebdSchin# 2*da2e3ebdSchin# CDDL HEADER START 3*da2e3ebdSchin# 4*da2e3ebdSchin# The contents of this file are subject to the terms of the 5*da2e3ebdSchin# Common Development and Distribution License (the "License"). 6*da2e3ebdSchin# You may not use this file except in compliance with the License. 7*da2e3ebdSchin# 8*da2e3ebdSchin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*da2e3ebdSchin# or http://www.opensolaris.org/os/licensing. 10*da2e3ebdSchin# See the License for the specific language governing permissions 11*da2e3ebdSchin# and limitations under the License. 12*da2e3ebdSchin# 13*da2e3ebdSchin# When distributing Covered Code, include this CDDL HEADER in each 14*da2e3ebdSchin# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*da2e3ebdSchin# If applicable, add the following below this CDDL HEADER, with the 16*da2e3ebdSchin# fields enclosed by brackets "[]" replaced with your own identifying 17*da2e3ebdSchin# information: Portions Copyright [yyyy] [name of copyright owner] 18*da2e3ebdSchin# 19*da2e3ebdSchin# CDDL HEADER END 20*da2e3ebdSchin# 21*da2e3ebdSchin# 22*da2e3ebdSchin# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*da2e3ebdSchin# Use is subject to license terms. 24*da2e3ebdSchin# 25*da2e3ebdSchin# ident "%Z%%M% %I% %E% SMI" 26*da2e3ebdSchin# 27*da2e3ebdSchin 28*da2e3ebdSchinSHELL=/usr/bin/ksh 29*da2e3ebdSchin 30*da2e3ebdSchininclude ../../Makefile.cmd 31*da2e3ebdSchin 32*da2e3ebdSchin.KEEP_STATE: 33*da2e3ebdSchin 34*da2e3ebdSchin# Set common AST build flags (e.g., needed to support the math stuff). 35*da2e3ebdSchininclude ../../../Makefile.ast 36*da2e3ebdSchin 37*da2e3ebdSchin# build rules 38*da2e3ebdSchinCPPFLAGS = \ 39*da2e3ebdSchin $(DTEXTDOM) $(DTS_ERRNO) \ 40*da2e3ebdSchin -I$(ROOT)/usr/include/ast \ 41*da2e3ebdSchin -D_PACKAGE_ast \ 42*da2e3ebdSchin '-DUSAGE_LICENSE=\ 43*da2e3ebdSchin "[-author?Glenn Fowler <gsf@research.att.com>]"\ 44*da2e3ebdSchin "[-copyright?Copyright (c) 2000-2007 AT&T Knowledge Ventures]"\ 45*da2e3ebdSchin "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\ 46*da2e3ebdSchin "[--catalog?msgcc]"' 47*da2e3ebdSchin 48*da2e3ebdSchinCFLAGS += \ 49*da2e3ebdSchin $(CCVERBOSE) \ 50*da2e3ebdSchin -xstrconst 51*da2e3ebdSchin 52*da2e3ebdSchinLDLIBS += -last 53*da2e3ebdSchinmsgcpp := LDLIBS += -lpp 54*da2e3ebdSchin 55*da2e3ebdSchinmsgcc: msgcc.sh 56*da2e3ebdSchin rm -f msgcc ; \ 57*da2e3ebdSchin ( \ 58*da2e3ebdSchin print "#!/usr/bin/ksh93" ; \ 59*da2e3ebdSchin print "export PATH=/usr/ast/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:\$${PATH}" ; \ 60*da2e3ebdSchin print "builtin date" ; \ 61*da2e3ebdSchin cat "msgcc.sh" ; \ 62*da2e3ebdSchin ) >msgcc ; \ 63*da2e3ebdSchin chmod a+rx msgcc 64*da2e3ebdSchin 65*da2e3ebdSchinROOTCMDDIR=$(ROOT)/usr/ast/bin 66*da2e3ebdSchin 67*da2e3ebdSchinPROG= msgcvt msggen msgget msgcpp msgcc 68*da2e3ebdSchin 69*da2e3ebdSchinall: $(PROG) 70*da2e3ebdSchin 71*da2e3ebdSchininstall: all $(ROOTCMD) 72*da2e3ebdSchin 73*da2e3ebdSchinclean lint: 74*da2e3ebdSchin 75*da2e3ebdSchininclude ../../Makefile.targ 76