Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
883N/A#
883N/A# CDDL HEADER START
883N/A#
883N/A# The contents of this file are subject to the terms of the
883N/A# Common Development and Distribution License (the "License").
883N/A# You may not use this file except in compliance with the License.
883N/A#
883N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
883N/A# or http://www.opensolaris.org/os/licensing.
883N/A# See the License for the specific language governing permissions
883N/A# and limitations under the License.
883N/A#
883N/A# When distributing Covered Code, include this CDDL HEADER in each
883N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
883N/A# If applicable, add the following below this CDDL HEADER, with the
883N/A# fields enclosed by brackets "[]" replaced with your own identifying
883N/A# information: Portions Copyright [yyyy] [name of copyright owner]
883N/A#
883N/A# CDDL HEADER END
883N/A#
883N/A#
883N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3996N/A# Use is subject to license terms.
883N/A#
883N/A
883N/APROG = cpustat
883N/AOBJS = $(PROG).o caps.o time.o setgrp.o strtoset.o
883N/ASRCS = $(OBJS:%.o=../common/%.c)
883N/A
883N/Ainclude ../../Makefile.cmd
883N/A
883N/ASTATCOMMONDIR = $(SRC)/cmd/stat/common
1273N/A
883N/ASTAT_COMMON_OBJS = timestamp.o
883N/ASTAT_COMMON_SRCS = $(STAT_COMMON_OBJS:%.o=$(STATCOMMONDIR)/%.c)
883N/ASRCS += $(STAT_COMMON_SRCS)
883N/A
883N/ACFLAGS += $(CCVERBOSE) $(CTF_FLAGS)
883N/ACERRWARN += -_gcc=-Wno-uninitialized
883N/ACPPFLAGS += -D_REENTRANT -I$(SRC)/lib/libcpc/common -I$(STATCOMMONDIR)
883N/ALDLIBS += -lcpc -lkstat
1653N/A
883N/A.KEEP_STATE:
956N/A
883N/Aall: $(PROG)
883N/A
883N/A$(PROG): $(OBJS) $(STAT_COMMON_OBJS)
883N/A $(LINK.c) $(OBJS) $(STAT_COMMON_OBJS) -o $@ $(LDLIBS)
883N/A $(POST_PROCESS)
883N/A $(CTFMERGE) -L VERSION -o $@ $(OBJS) $(STAT_COMMON_OBJS)
883N/A
883N/Ainstall: all $(ROOTUSRSBINPROG)
1574N/A
1574N/Aclean:
1574N/A $(RM) $(OBJS) $(STAT_COMMON_OBJS)
883N/A
883N/Alint: lint_SRCS
883N/A
883N/Astrip: all
883N/A $(STRIP) $(PROG)
883N/A
883N/A%.o: ../common/%.c
883N/A $(COMPILE.c) $<
883N/A $(CTFCONVERT_O)
883N/A
887N/A%.o: $(STATCOMMONDIR)/%.c
887N/A $(COMPILE.c) $<
887N/A $(CTFCONVERT_O)
913N/A
913N/APOFILES = ../common/$(PROG).po ../common/caps.po
913N/APOFILE = $(PROG)_cmd.po
913N/A
883N/A$(POFILE): $(POFILES)
3996N/A $(RM) $@
cat $(POFILES) > $@
include ../../Makefile.targ