Makefile revision 0209230bf1261579beab4f55226bb509e6b850cb
e07d9cb85217949d497b02d7211de8a197d2f2ebzf#
1a932f2eab9b00d713acc4205d96ca2485bf2712Quaker Fang# CDDL HEADER START
e07d9cb85217949d497b02d7211de8a197d2f2ebzf#
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# The contents of this file are subject to the terms of the
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# Common Development and Distribution License (the "License").
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# You may not use this file except in compliance with the License.
e07d9cb85217949d497b02d7211de8a197d2f2ebzf#
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# or http://www.opensolaris.org/os/licensing.
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# See the License for the specific language governing permissions
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# and limitations under the License.
e07d9cb85217949d497b02d7211de8a197d2f2ebzf#
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# When distributing Covered Code, include this CDDL HEADER in each
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# If applicable, add the following below this CDDL HEADER, with the
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# fields enclosed by brackets "[]" replaced with your own identifying
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# information: Portions Copyright [yyyy] [name of copyright owner]
e07d9cb85217949d497b02d7211de8a197d2f2ebzf#
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# CDDL HEADER END
e07d9cb85217949d497b02d7211de8a197d2f2ebzf#
e07d9cb85217949d497b02d7211de8a197d2f2ebzf#
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
e07d9cb85217949d497b02d7211de8a197d2f2ebzf# Use is subject to license terms.
e07d9cb85217949d497b02d7211de8a197d2f2ebzf#
e07d9cb85217949d497b02d7211de8a197d2f2ebzf#ident "%Z%%M% %I% %E% SMI"
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzf.KEEP_STATE:
e07d9cb85217949d497b02d7211de8a197d2f2ebzf.SUFFIXES:
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzfinclude ../../Makefile.cmd
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
1a932f2eab9b00d713acc4205d96ca2485bf2712Quaker FangCOMMON_DIR= ../common # for Makefile.com
e07d9cb85217949d497b02d7211de8a197d2f2ebzfSRCS = rcapstat.c \
e07d9cb85217949d497b02d7211de8a197d2f2ebzf utils.c
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzfLINTSRCS = $(COMMON_DIR)/utils.c \
e07d9cb85217949d497b02d7211de8a197d2f2ebzf rcapstat.c
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzf$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
e07d9cb85217949d497b02d7211de8a197d2f2ebzfCPPFLAGS += -I$(COMMON_DIR)
da14cebe459d3275048785f25bd869cb09b5307fEric ChengLDLIBS += -lumem -ll -lzonecfg
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzfLINTFLAGS += $(LDLIBS) -mnu
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzfPROG = rcapstat
e07d9cb85217949d497b02d7211de8a197d2f2ebzfOBJS = $(SRCS:%.c=%.o) rcapd_conf.o
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzfPOFILES = $(OBJS:%.o=%.po)
e07d9cb85217949d497b02d7211de8a197d2f2ebzfPOFILE = p$(PROG).po
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzfCLOBBERFILES += rcapd_conf.c $(POFILES) $(POFILE)
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzf.NO_PARALLEL:
e07d9cb85217949d497b02d7211de8a197d2f2ebzf.PARALLEL: $(OBJS) $(LINTFILES)
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzfall: $(PROG)
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzfinclude ../Makefile.com
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzf$(PROG): $(OBJS)
e07d9cb85217949d497b02d7211de8a197d2f2ebzf $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
e07d9cb85217949d497b02d7211de8a197d2f2ebzf $(POST_PROCESS)
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzf$(POFILE): $(POFILES)
e07d9cb85217949d497b02d7211de8a197d2f2ebzf $(RM) $@
e07d9cb85217949d497b02d7211de8a197d2f2ebzf $(CAT) $(POFILES) > $@
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzfclean:
e07d9cb85217949d497b02d7211de8a197d2f2ebzf $(RM) $(OBJS)
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzflint:
e07d9cb85217949d497b02d7211de8a197d2f2ebzf $(LINT.c) $(LINTSRCS)
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzf$(ROOTBIN):
e07d9cb85217949d497b02d7211de8a197d2f2ebzf $(MKDIR) -p $(ROOTBIN)
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzfinstall: all $(ROOTBIN) $(ROOTPROG)
e07d9cb85217949d497b02d7211de8a197d2f2ebzf
e07d9cb85217949d497b02d7211de8a197d2f2ebzfinclude ../../Makefile.targ
e07d9cb85217949d497b02d7211de8a197d2f2ebzf