Makefile revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968
012a352f4b26cfd874db8d06debc495c2303e8b2Bob Halley#
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# CDDL HEADER START
5c144477062a5df657acee41a82051d38537fd38Tinderbox User#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# The contents of this file are subject to the terms of the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# Common Development and Distribution License (the "License").
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You may not use this file except in compliance with the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# or http://www.opensolaris.org/os/licensing.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# See the License for the specific language governing permissions
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# and limitations under the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# CDDL HEADER END
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt# Use is subject to license terms.
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# ident "%Z%%M% %I% %E% SMI"
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleySHELL=/usr/bin/ksh
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyinclude ../../Makefile.cmd
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley.KEEP_STATE:
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Set common AST build flags (e.g., needed to support the math stuff).
c7b785510e3f517a0c98c0b6b6e6ad8f359e9e4cMark Andrewsinclude ../../../Makefile.ast
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# build rules
b897c52f865b2fc4e220e2110b874e59c716456bBob HalleyCPPFLAGS = \
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt $(DTEXTDOM) $(DTS_ERRNO) \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley -I$(ROOT)/usr/include/ast \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley -D_PACKAGE_ast \
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt '-DUSAGE_LICENSE=\
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt "[-author?Glenn Fowler <gsf@research.att.com>]"\
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt "[-copyright?Copyright (c) 2000-2007 AT&T Knowledge Ventures]"\
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt "[--catalog?msgcc]"'
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan HuntCFLAGS += \
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt $(CCVERBOSE) \
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt -xstrconst
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceLDLIBS += -last
460b427411b72da26b1836b9424e2e70d65d9394David Lawrencemsgcpp := LDLIBS += -lpp
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrewsmsgcc: msgcc.sh
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews rm -f msgcc ; \
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews ( \
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews print "#!/usr/bin/ksh93" ; \
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews print "export PATH=/usr/ast/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:\$${PATH}" ; \
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews print "builtin date" ; \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence cat "msgcc.sh" ; \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley ) >msgcc ; \
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence chmod a+rx msgcc
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan HuntROOTCMDDIR=$(ROOT)/usr/ast/bin
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrencePROG= msgcvt msggen msgget msgcpp msgcc
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrewsall: $(PROG)
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews
12a3ab37fe6556406acdf92fc7c5f198d603ca2eMark Andrewsinstall: all $(ROOTCMD)
f5cfcbf2f7906fb59c2b8b9b8fc9c7a75ac44dabMark Andrews
2d46d268ccff30bb50e661b47c6496d23d9156c7Mark Andrewsclean lint:
2d46d268ccff30bb50e661b47c6496d23d9156c7Mark Andrews
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrewsinclude ../../Makefile.targ
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley