Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The contents of this file are subject to the terms of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Common Development and Distribution License (the "License").
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You may not use this file except in compliance with the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# or http://www.opensolaris.org/os/licensing.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# See the License for the specific language governing permissions
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# and limitations under the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# When distributing Covered Code, include this CDDL HEADER in each
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If applicable, add the following below this CDDL HEADER, with the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER END
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPROG = sh
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesUSR_PROG = $(PROG)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesOBJS= args.o blok.o cmd.o defs.o error.o fault.o hash.o hashserv.o \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes io.o msg.o print.o stak.o string.o word.o xec.o \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes ctype.o echo.o expand.o func.o macro.o pwd.o setbrk.o test.o \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes bltin.o jobs.o ulimit.o main.o name.o service.o
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSRCS= $(OBJS:%.o=%.c)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../Makefile.cmd
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# for message cataloge
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPOFILE= sh.po
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPOFILES= $(SRCS:%.c=%.po)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXGETFLAGS += -a -x sh.xcl
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCPPFLAGS += -D_FILE_OFFSET_BITS=64 -DACCT
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-implicit-function-declaration
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-parentheses
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-extra
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-unused-variable
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLDFLAGS += $(MAPFILES:%=-M%)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLDLIBS += -lgen
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes.KEEP_STATE:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes.PARALLEL: $(OBJS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesall: $(ROOTHASBINPROG)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(PROG): $(OBJS) $(MAPFILES)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(POST_PROCESS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(POFILE): $(POFILES)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RM) $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CAT) $(POFILES) > $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall: all $(ROOTHASBINPROG)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RM) $(ROOTHASBIN)/jsh
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(SYMLINK) sh $(ROOTHASBIN)/jsh
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RM) $(ROOTHASLIB)/rsh
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(SYMLINK) ../bin/sh $(ROOTHASLIB)/rsh
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesclean:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RM) $(OBJS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeslint: lint_SRCS
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../Makefile.targ
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes