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