Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
f743002678eb67b99bbc29fee116b65d9530fec0wrowe#
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
15890c9306ba98f6fc243e15a3c4778ddc7d773erpluem#
8491e0600f69b0405e156ea8a419653c065c645bcovener# The contents of this file are subject to the terms of the
8491e0600f69b0405e156ea8a419653c065c645bcovener# Common Development and Distribution License (the "License").
8491e0600f69b0405e156ea8a419653c065c645bcovener# You may not use this file except in compliance with the License.
8491e0600f69b0405e156ea8a419653c065c645bcovener#
8491e0600f69b0405e156ea8a419653c065c645bcovener# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8491e0600f69b0405e156ea8a419653c065c645bcovener# or http://www.opensolaris.org/os/licensing.
8491e0600f69b0405e156ea8a419653c065c645bcovener# See the License for the specific language governing permissions
8741bcaa5df21e109bde21c01093d3991fcf1471jailletc# and limitations under the License.
8741bcaa5df21e109bde21c01093d3991fcf1471jailletc#
8741bcaa5df21e109bde21c01093d3991fcf1471jailletc# When distributing Covered Code, include this CDDL HEADER in each
8741bcaa5df21e109bde21c01093d3991fcf1471jailletc# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2bf8c1f02b954a6b272f1708aabcc273fc318249covener# If applicable, add the following below this CDDL HEADER, with the
2bf8c1f02b954a6b272f1708aabcc273fc318249covener# fields enclosed by brackets "[]" replaced with your own identifying
2bf8c1f02b954a6b272f1708aabcc273fc318249covener# information: Portions Copyright [yyyy] [name of copyright owner]
7512a6fac1f0e24ba550706a6c8e0c874c23aa7bcovener#
c9e4fbd1d56136bd92983a4fca184c28b92eade7rjung# CDDL HEADER END
c9e4fbd1d56136bd92983a4fca184c28b92eade7rjung#
c9e4fbd1d56136bd92983a4fca184c28b92eade7rjung#
63b9f1f5880391261705f696d7d65507bbe9ace3covener# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
63b9f1f5880391261705f696d7d65507bbe9ace3covener# Use is subject to license terms.
63b9f1f5880391261705f696d7d65507bbe9ace3covener#
87a26948305eab2bab8a4fb3f2a21f6725055790covener
87a26948305eab2bab8a4fb3f2a21f6725055790covenerPROG = cpustat
87a26948305eab2bab8a4fb3f2a21f6725055790covenerOBJS = $(PROG).o caps.o time.o setgrp.o strtoset.o
4efd27d2bd53a819a194f8a942f8881c1927755eylavicSRCS = $(OBJS:%.o=../common/%.c)
4efd27d2bd53a819a194f8a942f8881c1927755eylavic
4efd27d2bd53a819a194f8a942f8881c1927755eylavicinclude ../../Makefile.cmd
4efd27d2bd53a819a194f8a942f8881c1927755eylavic
983528026996668ea295be95aedb9c7a346af470ylavicSTATCOMMONDIR = $(SRC)/cmd/stat/common
983528026996668ea295be95aedb9c7a346af470ylavic
983528026996668ea295be95aedb9c7a346af470ylavicSTAT_COMMON_OBJS = timestamp.o
249ab52ef73a2b33446ae07904e3526b57251411ylavicSTAT_COMMON_SRCS = $(STAT_COMMON_OBJS:%.o=$(STATCOMMONDIR)/%.c)
249ab52ef73a2b33446ae07904e3526b57251411ylavicSRCS += $(STAT_COMMON_SRCS)
249ab52ef73a2b33446ae07904e3526b57251411ylavic
1f0836d4b1a203c7b375daae691beb95f6036205ylavicCFLAGS += $(CCVERBOSE) $(CTF_FLAGS)
1f0836d4b1a203c7b375daae691beb95f6036205ylavicCERRWARN += -_gcc=-Wno-uninitialized
1f0836d4b1a203c7b375daae691beb95f6036205ylavicCPPFLAGS += -D_REENTRANT -I$(SRC)/lib/libcpc/common -I$(STATCOMMONDIR)
3b11e6ec1c5273d6a8968460db650e7ca99c49c0ylavicLDLIBS += -lcpc -lkstat
3b11e6ec1c5273d6a8968460db650e7ca99c49c0ylavic
3b11e6ec1c5273d6a8968460db650e7ca99c49c0ylavic.KEEP_STATE:
01402a0fbec8bd11f6c10d8ef9c9cceac68bb787ylavic
01402a0fbec8bd11f6c10d8ef9c9cceac68bb787ylavicall: $(PROG)
01402a0fbec8bd11f6c10d8ef9c9cceac68bb787ylavic
49dacedb6c387b786b7911082ff35121a45f414bcovener$(PROG): $(OBJS) $(STAT_COMMON_OBJS)
49dacedb6c387b786b7911082ff35121a45f414bcovener $(LINK.c) $(OBJS) $(STAT_COMMON_OBJS) -o $@ $(LDLIBS)
49dacedb6c387b786b7911082ff35121a45f414bcovener $(POST_PROCESS)
49dacedb6c387b786b7911082ff35121a45f414bcovener $(CTFMERGE) -L VERSION -o $@ $(OBJS) $(STAT_COMMON_OBJS)
3c990331fc6702119e4f5b8ba9eae3021aea5265jim
3c990331fc6702119e4f5b8ba9eae3021aea5265jiminstall: all $(ROOTUSRSBINPROG)
3c990331fc6702119e4f5b8ba9eae3021aea5265jim
3c990331fc6702119e4f5b8ba9eae3021aea5265jimclean:
fc42512879dd0504532f52fe5d0d0383dda96a1eniq $(RM) $(OBJS) $(STAT_COMMON_OBJS)
fc42512879dd0504532f52fe5d0d0383dda96a1eniq
fc42512879dd0504532f52fe5d0d0383dda96a1eniqlint: lint_SRCS
0451df5dc50fa5d8b3e07d92ee6a92e36a1181a5niq
0451df5dc50fa5d8b3e07d92ee6a92e36a1181a5niqstrip: all
0451df5dc50fa5d8b3e07d92ee6a92e36a1181a5niq $(STRIP) $(PROG)
da0442c0440caef34706e2c2f3af05cb65921cc0jailletc
983528026996668ea295be95aedb9c7a346af470ylavic%.o: ../common/%.c
da0442c0440caef34706e2c2f3af05cb65921cc0jailletc $(COMPILE.c) $<
da0442c0440caef34706e2c2f3af05cb65921cc0jailletc $(CTFCONVERT_O)
06b8f183140c8e02e0974e938a05078b511d1603covener
06b8f183140c8e02e0974e938a05078b511d1603covener%.o: $(STATCOMMONDIR)/%.c
06b8f183140c8e02e0974e938a05078b511d1603covener $(COMPILE.c) $<
15890c9306ba98f6fc243e15a3c4778ddc7d773erpluem $(CTFCONVERT_O)
259878293a997ff49f5ddfc53d3739cbdc25444ecovener
259878293a997ff49f5ddfc53d3739cbdc25444ecovenerPOFILES = ../common/$(PROG).po ../common/caps.po
259878293a997ff49f5ddfc53d3739cbdc25444ecovenerPOFILE = $(PROG)_cmd.po
259878293a997ff49f5ddfc53d3739cbdc25444ecovener
15890c9306ba98f6fc243e15a3c4778ddc7d773erpluem$(POFILE): $(POFILES)
b54b024c06a19926832d77d40ba35ad8c41e4d3dminfrin $(RM) $@
b54b024c06a19926832d77d40ba35ad8c41e4d3dminfrin cat $(POFILES) > $@
b54b024c06a19926832d77d40ba35ad8c41e4d3dminfrin
65967d05f839dbf27cf91d91fa79585eeae19660minfrininclude ../../Makefile.targ
65967d05f839dbf27cf91d91fa79585eeae19660minfrin