Home | History | Annotate | Download | only in mpstat
      1      0  stevel #
      2      0  stevel # CDDL HEADER START
      3      0  stevel #
      4      0  stevel # The contents of this file are subject to the terms of the
      5   5957  wroche # Common Development and Distribution License (the "License").
      6   5957  wroche # You may not use this file except in compliance with the License.
      7      0  stevel #
      8      0  stevel # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9      0  stevel # or http://www.opensolaris.org/os/licensing.
     10      0  stevel # See the License for the specific language governing permissions
     11      0  stevel # and limitations under the License.
     12      0  stevel #
     13      0  stevel # When distributing Covered Code, include this CDDL HEADER in each
     14      0  stevel # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15      0  stevel # If applicable, add the following below this CDDL HEADER, with the
     16      0  stevel # fields enclosed by brackets "[]" replaced with your own identifying
     17      0  stevel # information: Portions Copyright [yyyy] [name of copyright owner]
     18      0  stevel #
     19      0  stevel # CDDL HEADER END
     20      0  stevel #
     21      0  stevel #
     22  10207   James # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     23      0  stevel # Use is subject to license terms.
     24      0  stevel #
     25      0  stevel 
     26      0  stevel PROG = mpstat
     27      0  stevel OBJS = mpstat.o
     28      0  stevel SRCS =$(OBJS:%.o=%.c) $(COMMON_SRCS)
     29      0  stevel 
     30      0  stevel include $(SRC)/cmd/Makefile.cmd
     31      0  stevel include $(SRC)/cmd/stat/Makefile.stat
     32      0  stevel 
     33   5957  wroche LDLIBS += -ldevinfo -lkstat -lavl
     34      0  stevel CFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR}
     35      0  stevel FILEMODE= 0555
     36      0  stevel 
     37      0  stevel lint := LINTFLAGS = -muxs -I$(STATCOMMONDIR)
     38      0  stevel 
     39      0  stevel .KEEP_STATE:
     40      0  stevel 
     41      0  stevel all: $(PROG)
     42      0  stevel 
     43      0  stevel install: all $(ROOTPROG)
     44      0  stevel 
     45      0  stevel $(PROG): $(OBJS) $(COMMON_OBJS)
     46      0  stevel 	$(LINK.c) -o $(PROG) $(OBJS) $(COMMON_OBJS) $(LDLIBS)
     47      0  stevel 	$(POST_PROCESS)
     48  10207   James 
     49      0  stevel %.o : $(STATCOMMONDIR)/%.c
     50      0  stevel 	$(COMPILE.c) -o $@ $<
     51      0  stevel 	$(POST_PROCESS_O)
     52      0  stevel 
     53      0  stevel clean:
     54      0  stevel 	-$(RM) $(OBJS) $(COMMON_OBJS)
     55      0  stevel 
     56      0  stevel lint: lint_SRCS
     57      0  stevel 
     58      0  stevel include $(SRC)/cmd/Makefile.targ
     59