Makefile revision a1e9eea083a8f257157edb8a1efb5bbd300eb4bf
6325N/A# CDDL HEADER START
6325N/A#
6325N/A# The contents of this file are subject to the terms of the
6325N/A# Common Development and Distribution License (the "License").
6325N/A# You may not use this file except in compliance with the License.
6325N/A#
6325N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6325N/A# or http://www.opensolaris.org/os/licensing.
6325N/A# See the License for the specific language governing permissions
6325N/A# and limitations under the License.
6325N/A#
6325N/A# When distributing Covered Code, include this CDDL HEADER in each
6325N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6325N/A# If applicable, add the following below this CDDL HEADER, with the
6325N/A# fields enclosed by brackets "[]" replaced with your own identifying
6325N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6325N/A#
6325N/A# CDDL HEADER END
6325N/A#
6325N/A#
6325N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
6325N/A# Use is subject to license terms.
6325N/A#
6325N/A#
6325N/A
6325N/ADYNPROG = dsstat
6325N/A
6325N/Ainclude ../../Makefile.cmd
6325N/Ainclude ../Makefile.com
6325N/A
6325N/APROG = $(DYNPROG)
6325N/A
6325N/ASUBDIRS=
6325N/A
6325N/Adsstat := POBJS = dsstat.o ii_stats.o sndr_stats.o \
6325N/A sdbc_stats.o multi_stats.o common.o report.o
6325N/A
6372N/AOBJS= dsstat.o ii_stats.o sndr_stats.o sdbc_stats.o \
6372N/A multi_stats.o common.o report.o
6372N/ASRCS= $(OBJS:%.o=%.c)
6372N/A
6372N/ACFLAGS += -v
6372N/ALDLIBS += -L/usr/lib -lkstat
6372N/ALINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user
6325N/ALINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
6325N/ALINTDIR = $(KBASE)/lintdir
6325N/APOFILE = dsstat_all.po
6325N/APOFILES = $(OBJS:%.o=%.po)
6325N/ALFILE = $(LINTDIR)/dsstat.ln
6325N/AROOTLINK = $(ROOTUSRSBIN)/$(PROG)
6325N/A
all := TARGET= all
install := TARGET= install
clean := TARGET= clean
clobber := TARGET= clobber
lint := TARGET= lint
.KEEP_STATE:
.PARALLEL: $(OBJS)
all: $(SUBDIRS) $(PROG)
install: $(SUBDIRS) all $(ROOTPROG) $(ROOTLINK)
lint: $(SUBDIRS) lint_SRCS
clean: $(SUBDIRS)
$(RM) *.o
$(PROG): $$(POBJS)
$(LINK.c) $(POBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
$(POFILE): $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
$(ROOTLINK): $(ROOTUSRSBIN) $(ROOTPROG)
-$(RM) $@; $(LN) $(ROOTPROG) $@
FRC:
include ../../Makefile.targ