Makefile.com revision 1
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A
1N/A#
1N/A# Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/A
1N/ASHELL=/usr/bin/ksh93
1N/A
1N/ALIBRARY = libcmd.a
1N/AVERS = .1
1N/AOBJECTS = \
1N/A asa.o \
1N/A basename.o \
1N/A cat.o \
1N/A chgrp.o \
1N/A cksum.o \
1N/A chmod.o \
1N/A chown.o \
1N/A cmdinit.o \
1N/A cmp.o \
1N/A comm.o \
1N/A cp.o \
1N/A cut.o \
1N/A date.o \
1N/A dirname.o \
1N/A expr.o \
1N/A grep.o \
1N/A fds.o \
1N/A find.o \
1N/A fmt.o \
1N/A fold.o \
1N/A fts_fix.o \
1N/A getconf.o \
1N/A head.o \
1N/A id.o \
1N/A join.o \
1N/A lib.o \
1N/A line.o \
1N/A ln.o \
1N/A logname.o \
1N/A ls.o \
1N/A md5sum.o \
1N/A mkdir.o \
1N/A mkfifo.o \
1N/A mktemp.o \
1N/A od.o \
1N/A mv.o \
1N/A paste.o \
1N/A pathchk.o \
1N/A pids.o \
1N/A pr.o \
1N/A readlink.o \
1N/A rev.o \
1N/A revlib.o \
1N/A rm.o \
1N/A rmdir.o \
1N/A strings.o \
1N/A stty.o \
1N/A sum.o \
1N/A sync.o \
1N/A tail.o \
1N/A tee.o \
1N/A tr.o \
1N/A tty.o \
1N/A uname.o \
1N/A uniq.o \
1N/A vmstate.o \
1N/A wc.o \
1N/A wclib.o \
1N/A who.o \
1N/A xargs.o
1N/A
1N/Ainclude ../../Makefile.astmsg
1N/A
1N/Ainclude ../../Makefile.lib
1N/A
1N/A# Use -KPIC as libcmd is too big for -Kpic on sparcv9 with gcc
1N/A$(__GNUC)sparcv9_C_PICFLAGS= $(sparcv9_C_BIGPICFLAGS)
1N/A
1N/A# mapfile-vers does not live with the sources in in common/ to make
1N/A# automated code updates easier.
1N/AMAPFILES= ../mapfile-vers
1N/A
1N/A# Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
1N/Ainclude ../../../Makefile.ast
1N/A
1N/ALIBS = $(DYNLIB) $(LINTLIB)
1N/A
1N/A$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
1N/A
1N/ALDLIBS += \
1N/A -lsum \
1N/A -last \
1N/A -lsocket \
1N/A -lnsl \
1N/A -lc
1N/A
1N/ASRCDIR = ../common
1N/A
1N/A# We use "=" here since using $(CPPFLAGS.master) is very tricky in our
1N/A# case - it MUST come as the last element but future changes in -D options
1N/A# may then cause silent breakage in the AST sources because the last -D
1N/A# option specified overrides previous -D options so we prefer the current
1N/A# way to explicitly list each single flag.
1N/A# Notes:
1N/A# - "-D_BLD_DLL" comes from ${mam_cc_DLL} in Mamfile
1N/ACPPFLAGS = \
1N/A $(DTEXTDOM) $(DTS_ERRNO) \
1N/A -I../common \
1N/A -Isrc/lib/libcmd \
1N/A -I$(ROOT)/usr/include/ast \
1N/A -I$(ROOT)/usr/include \
1N/A -D_BLD_cmd \
1N/A -D_PACKAGE_ast \
1N/A -D_BLD_DLL \
1N/A '-DERROR_CATALOG="libcmd"' \
1N/A '-DUSAGE_LICENSE=\
1N/A "[-author?Glenn Fowler <gsf@research.att.com>]"\
1N/A "[-author?David Korn <dgk@research.att.com>]"\
1N/A "[-copyright?Copyright (c) 1992-2011 AT&T Intellectual Property]"\
1N/A "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
1N/A "[--catalog?libcmd]"'
1N/A
1N/ACFLAGS += \
1N/A $(ASTCFLAGS)
1N/ACFLAGS64 += \
1N/A $(ASTCFLAGS64)
1N/A
1N/Apics/cut.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
1N/Apics/sync.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
1N/Apics/vmstate.o := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
1N/A
1N/A.KEEP_STATE:
1N/A
1N/Aall: stub $(LIBS)
1N/A
1N/A#
1N/A# libcmd is not lint-clean yet; fake up a target. (You can use
1N/A# "make lintcheck" to actually run lint; please send all lint fixes
1N/A# upstream (to AT&T) so the next update will pull them into ON.)
1N/A#
1N/Alint:
1N/A @ print "usr/src/lib/libcmd is not lint-clean: skipping"
1N/A
1N/Ainclude ../../Makefile.targ