Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# CDDL HEADER START
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# The contents of this file are subject to the terms of the
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# Common Development and Distribution License, Version 1.0 only
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# (the "License"). You may not use this file except in compliance
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# with the License.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# or http://www.opensolaris.org/os/licensing.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# See the License for the specific language governing permissions
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# and limitations under the License.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# When distributing Covered Code, include this CDDL HEADER in each
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# If applicable, add the following below this CDDL HEADER, with the
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# fields enclosed by brackets "[]" replaced with your own identifying
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# information: Portions Copyright [yyyy] [name of copyright owner]
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# CDDL HEADER END
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# Use is subject to license terms.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# ident "%Z%%M% %I% %E% SMI"
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# Makefile to support tools used for linker development. GEXECS are those
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# tools that the installed for distribution in the SUNWonld package.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# o `c' programs are built from the $(MACH)/Makefile
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
# o info: summarizes relocation overhead, and a sorted string listing.
#
# o proto: creates a proto directory structure suitable for sgs make
# installs (basically a subset of Targetdirs).
#
# cmd/sgs/tools/Makefile
include $(SRC)/Makefile.master
LSSRCS= info.sh \
proto.sh
SRCS= $(LSSRCS)
LEXECS= $(LSSRCS:%.sh=%)
ROOTDIR = $(ROOT)/opt/SUNWonld/bin
ROOTPROGS = $(GEXECS:%=$(ROOTDIR)/%)
ROOTPROGS += $(PSRCS:%=$(ROOTDIR)/%)
$(ROOTPROGS) := FILEMODE=755
SUBDIRS= $(MACH) man
all:= TARGET= all
install:= TARGET= install
clean:= TARGET= clean
clobber:= TARGET= clobber
lint:= TARGET= lint
.KEEP_STATE:
all: $(EXECS) $(SUBDIRS)
install: all $(ROOTPROGS) $(SUBDIRS)
clean clobber: $(SUBDIRS)
$(RM) $(RMFLAGS) $(EXECS)
delete:
lint: $(SUBDIRS)
%: %.pl
$(RM) $@
cat $< > $@
chmod +x $@
%: %.ksh
$(RM) $@
cat $< > $@
chmod +x $@
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
$(ROOTDIR)/%: %
$(INS.file)
$(ROOTDIR)/%: scoping/%
$(INS.file)
FRC:
execs: $(EXECS)