Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
99N/A#
99N/A# CDDL HEADER START
99N/A#
99N/A# The contents of this file are subject to the terms of the
99N/A# Common Development and Distribution License, Version 1.0 only
99N/A# (the "License"). You may not use this file except in compliance
99N/A# with the License.
99N/A#
99N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99N/A# or http://www.opensolaris.org/os/licensing.
99N/A# See the License for the specific language governing permissions
99N/A# and limitations under the License.
99N/A#
99N/A# When distributing Covered Code, include this CDDL HEADER in each
99N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
99N/A# If applicable, add the following below this CDDL HEADER, with the
99N/A# fields enclosed by brackets "[]" replaced with your own identifying
99N/A# information: Portions Copyright [yyyy] [name of copyright owner]
99N/A#
99N/A# CDDL HEADER END
2302N/A#
99N/A#
127N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
99N/A# Use is subject to license terms.
99N/A#
99N/A# ident "%Z%%M% %I% %E% SMI"
99N/A#
3023N/A
618N/APROG = cpustat
99N/AOBJS = $(PROG).o caps.o time.o setgrp.o strtoset.o
99N/ASRCS = $(OBJS:%.o=../common/%.c)
844N/A
3023N/Ainclude ../../Makefile.cmd
99N/A
3533N/ACFLAGS += $(CCVERBOSE) $(CTF_FLAGS)
1258N/ACPPFLAGS += -D_REENTRANT -I$(SRC)/lib/libcpc/common
99N/ALDLIBS += -lcpc -lposix4 -lkstat
2818N/A
2818N/A#
2818N/A# CPC commands include CTF data so they must not be stripped with '-s'. This
99N/A# overrides the "-s" switch in the default link flags.
99N/A#
99N/ASTRIPFLAG=
99N/A
783N/A.KEEP_STATE:
783N/A
783N/Aall: $(PROG)
99N/A
99N/A$(PROG): $(OBJS)
196N/A $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
196N/A $(POST_PROCESS)
196N/A $(CTFMERGE) -L VERSION -o $@ $(OBJS)
196N/A
99N/Ainstall: all $(ROOTUSRSBINPROG)
3353N/A
3353N/Aclean:
3353N/A $(RM) $(OBJS)
3353N/A
3353N/Alint: lint_SRCS
3353N/A
3353N/Astrip: all
3353N/A $(STRIP) $(PROG)
3353N/A
3353N/A%.o: ../common/%.c
3353N/A $(COMPILE.c) $<
3353N/A $(CTFCONVERT_O)
3353N/A
3353N/APOFILES = ../common/$(PROG).po ../common/caps.po
3353N/APOFILE = $(PROG)_cmd.po
3353N/A
3353N/A$(POFILE): $(POFILES)
1938N/A $(RM) $@
1938N/A cat $(POFILES) > $@
2302N/A
2302N/Ainclude ../../Makefile.targ
2302N/A