Makefile revision ead1f93ee620d7580f7e53350fe5a884fc4f158a
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley#
af0d9b770594ece695cc9a7325ed42abb728a5f7Tinderbox User# CDDL HEADER START
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You may not use this file except in compliance with the License.
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley#
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# or http://www.opensolaris.org/os/licensing.
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# See the License for the specific language governing permissions
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# and limitations under the License.
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley#
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# When distributing Covered Code, include this CDDL HEADER in each
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# If applicable, add the following below this CDDL HEADER, with the
29747dfe5e073a299b3681e01f5c55540f8bfed7Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# information: Portions Copyright [yyyy] [name of copyright owner]
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley#
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# CDDL HEADER END
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley#
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley#
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley# Use is subject to license terms.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley#
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob HalleyPROG = sh
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob HalleyUSR_PROG = $(PROG)
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob HalleyOBJS= args.o blok.o cmd.o defs.o error.o fault.o hash.o hashserv.o \
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley io.o msg.o print.o stak.o string.o word.o xec.o \
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley ctype.o echo.o expand.o func.o macro.o pwd.o setbrk.o test.o \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley bltin.o jobs.o ulimit.o sh_policy.o main.o name.o service.o
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleySRCS= $(OBJS:%.o=%.c)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halleyinclude ../Makefile.cmd
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley# This flag is being added only for SCO (x86) compatibility
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyCFLAGS += $(iBCS2FLAG)
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# for message cataloge
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley#
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinPOFILE= sh.po
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyPOFILES= $(SRCS:%.c=%.po)
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyXGETFLAGS += -a -x sh.xcl
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyCPPFLAGS += -D_FILE_OFFSET_BITS=64 -DACCT
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyMAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinLDFLAGS += $(MAPFILES:%=-M%)
6826f014d6fdcb60a85465dc8290e6582153bbe6Andreas GustafssonLDLIBS += -lgen -lsecdb
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley
ee10d3de1801d564356af201aa7941d67e1ed85dBrian Wellington.KEEP_STATE:
ee10d3de1801d564356af201aa7941d67e1ed85dBrian Wellington
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley.PARALLEL: $(OBJS)
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halleyall: $(ROOTHASBINPROG)
0a88c09dc9cbd75a37cc278d8da0f1fd09768856Brian Wellington
4831695ebef7aab249d77628c12ee4920c177459Andreas Gustafsson$(PROG): $(OBJS) $(MAPFILES)
63ca494e7e9aba8dc6740443fdab69620c7a7523Brian Wellington $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
143c2d39fafc0e36e0fa291b7708b60309e5a1b6Andreas Gustafsson $(POST_PROCESS)
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley$(POFILE): $(POFILES)
6eccf5bd07eb9abf65cc08fec4a8fc97b62c0e1bBrian Wellington $(RM) $@
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki $(CAT) $(POFILES) > $@
abff0f462a758383d012887d3a97da4dac0c5a94Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Huntinstall: all $(ROOTHASBINPROG)
50105afc551903541608b11851d73278b23579a3Mark Andrews $(RM) $(ROOTHASBIN)/jsh
55e5c51e661e23e24573db84114a3837817745c9Evan Hunt $(SYMLINK) sh $(ROOTHASBIN)/jsh
44f175a90a855326725439b2f1178f0dcca8f67dMark Andrews $(RM) $(ROOTHASBIN)/pfsh
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews $(SYMLINK) sh $(ROOTHASBIN)/pfsh
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley $(RM) $(ROOTHASLIB)/rsh
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Hunt $(SYMLINK) ../bin/sh $(ROOTHASLIB)/rsh
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halleyclean:
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley $(RM) $(OBJS)
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halleylint: lint_SRCS
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halleyinclude ../Makefile.targ
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley