Makefile revision 7c2fbfb345896881c631598ee3852ce9ce33fb07
7f007e36bec06aba6b3a0f84a64f2abf99edfcd8gstein#
123c13eb1384c256a66438ca2110750baba7eef8wrowe# CDDL HEADER START
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# The contents of this file are subject to the terms of the
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Common Development and Distribution License (the "License").
8f5dca296674091bd47a7846d0cc16ce5bbc272ejerenkrantz# You may not use this file except in compliance with the License.
4a257be29f8aeab984fe5622fa69e0b2aab204d7jerenkrantz#
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz# or http://www.opensolaris.org/os/licensing.
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# See the License for the specific language governing permissions
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# and limitations under the License.
ab71b233b3a36489e44a7b061c48293be0b17788jwoolley#
571760de5e60c0b459cb11be45507b923cd023eejwoolley# When distributing Covered Code, include this CDDL HEADER in each
571760de5e60c0b459cb11be45507b923cd023eejwoolley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9180a5933673ffb1af633c255ceee029340f3b1erbb# If applicable, add the following below this CDDL HEADER, with the
bcb6e1be6041dfeb549c8ea8d37f97ad4e90a0c3rbb# fields enclosed by brackets "[]" replaced with your own identifying
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe# information: Portions Copyright [yyyy] [name of copyright owner]
2900ab946a2d76b73a14cebfe2985d253f01c967stoddard#
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# CDDL HEADER END
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb#
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbb#
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick# Use is subject to license terms.
6f6f4a4bca281779d196acbdd5c017bb90858305trawick#
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawickSHELL=/usr/bin/ksh93
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb
bd929c73ef04789b7183b840d8db6e01d03a4d86rbbinclude ../Makefile.cmd
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj.KEEP_STATE:
af4c982a7cf4515f124935f99a329744035fc699slive
af4c982a7cf4515f124935f99a329744035fc699slive# Set common AST build flags (e.g., needed to support the math stuff).
af4c982a7cf4515f124935f99a329744035fc699sliveinclude ../../Makefile.ast
af4c982a7cf4515f124935f99a329744035fc699slive
af4c982a7cf4515f124935f99a329744035fc699sliveOBJECTS= \
af4c982a7cf4515f124935f99a329744035fc699slive shcomp.o
af4c982a7cf4515f124935f99a329744035fc699slive
2a6c49cfaef5979a5a06098f3ce987cd76769409manojLIBSHELLMACH=$(MACH)
531c23ff01a2489646f0a2029097013b328d935agsteinLIBSHELLBASE=../../lib/libshell
7fe18c15b669db9d191859695901dc4fcf3829dawroweLIBSHELLSRC=$(LIBSHELLBASE)/common/sh
7fe18c15b669db9d191859695901dc4fcf3829dawrowe
7fe18c15b669db9d191859695901dc4fcf3829dawroweSRCS= $(OBJECTS:%.o=$(LIBSHELLSRC)/%.c)
b84f66c93f820824b1d5455181f55598b766319cwrowe
7fe18c15b669db9d191859695901dc4fcf3829dawroweGROUP= bin
976501adbc040220270f7d1d77c4b8373033be69wroweLDLIBS += -lshell -last
976501adbc040220270f7d1d77c4b8373033be69wrowe
976501adbc040220270f7d1d77c4b8373033be69wrowe# 1. Make sure that the -D/-U defines in CFLAGS below are in sync
976501adbc040220270f7d1d77c4b8373033be69wrowe# with usr/src/lib/libshell/Makefile.com
976501adbc040220270f7d1d77c4b8373033be69wrowe# 2. We use "=" here since using $(CPPFLAGS.master) is very tricky in our
b84f66c93f820824b1d5455181f55598b766319cwrowe# case - it MUST come as the last element but future changes in -D options
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb# may then cause silent breakage in the AST sources because the last -D
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb# option specified overrides previous -D options so we prefer the current
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb# way to explicitly list each single flag.
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbCPPFLAGS = \
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb $(DTEXTDOM) $(DTS_ERRNO) \
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb $(LIBSHELLCPPFLAGS)
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb
b84f66c93f820824b1d5455181f55598b766319cwroweCFLAGS += \
b84f66c93f820824b1d5455181f55598b766319cwrowe $(ASTCFLAGS)
b84f66c93f820824b1d5455181f55598b766319cwroweCFLAGS64 += \
b84f66c93f820824b1d5455181f55598b766319cwrowe $(ASTCFLAGS64)
b84f66c93f820824b1d5455181f55598b766319cwrowe
b84f66c93f820824b1d5455181f55598b766319cwroweROOTCMDDIR=$(ROOT)/usr/bin
79d5106a9b65b956d646f5daae4b94bc79e315b8trawick
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowePROG= shcomp
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe%.o: $(LIBSHELLSRC)/%.c
976501adbc040220270f7d1d77c4b8373033be69wrowe $(COMPILE.c) -c -o $@ $<
976501adbc040220270f7d1d77c4b8373033be69wrowe $(POST_PROCESS_O)
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardall: $(PROG)
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard# dummy file since AST/ksh/shcomp doesn't use *.po files
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard# (and "shcomp" is just a frontend which calls directly into libshell,
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard# e.g. there are no l10n strings here)
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard$(PROG).po:
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard $(RM) $(PROG).po ; \
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard $(TOUCH) $(PROG).po
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
123c13eb1384c256a66438ca2110750baba7eef8wroweinstall: all $(ROOTCMD)
123c13eb1384c256a66438ca2110750baba7eef8wrowe
123c13eb1384c256a66438ca2110750baba7eef8wrowe$(PROG): $(OBJECTS)
123c13eb1384c256a66438ca2110750baba7eef8wrowe $(RM) shcomp
123c13eb1384c256a66438ca2110750baba7eef8wrowe $(LINK.c) $(OBJECTS) -o $@ $(LDLIBS)
123c13eb1384c256a66438ca2110750baba7eef8wrowe $(POST_PROCESS)
123c13eb1384c256a66438ca2110750baba7eef8wrowe
38b116de532efb28defc6a0aaa71fb8c46487190gsteinclean lint:
38b116de532efb28defc6a0aaa71fb8c46487190gstein
38b116de532efb28defc6a0aaa71fb8c46487190gsteininclude ../Makefile.targ
38b116de532efb28defc6a0aaa71fb8c46487190gstein