Makefile revision 74e20cfe817b82802b16fac8690dadcda76f54f5
74e20cfe817b82802b16fac8690dadcda76f54f5nh#
74e20cfe817b82802b16fac8690dadcda76f54f5nh# CDDL HEADER START
74e20cfe817b82802b16fac8690dadcda76f54f5nh#
74e20cfe817b82802b16fac8690dadcda76f54f5nh# The contents of this file are subject to the terms of the
74e20cfe817b82802b16fac8690dadcda76f54f5nh# Common Development and Distribution License (the "License").
74e20cfe817b82802b16fac8690dadcda76f54f5nh# You may not use this file except in compliance with the License.
74e20cfe817b82802b16fac8690dadcda76f54f5nh#
74e20cfe817b82802b16fac8690dadcda76f54f5nh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
74e20cfe817b82802b16fac8690dadcda76f54f5nh# or http://www.opensolaris.org/os/licensing.
74e20cfe817b82802b16fac8690dadcda76f54f5nh# See the License for the specific language governing permissions
74e20cfe817b82802b16fac8690dadcda76f54f5nh# and limitations under the License.
74e20cfe817b82802b16fac8690dadcda76f54f5nh#
74e20cfe817b82802b16fac8690dadcda76f54f5nh# When distributing Covered Code, include this CDDL HEADER in each
74e20cfe817b82802b16fac8690dadcda76f54f5nh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
74e20cfe817b82802b16fac8690dadcda76f54f5nh# If applicable, add the following below this CDDL HEADER, with the
74e20cfe817b82802b16fac8690dadcda76f54f5nh# fields enclosed by brackets "[]" replaced with your own identifying
74e20cfe817b82802b16fac8690dadcda76f54f5nh# information: Portions Copyright [yyyy] [name of copyright owner]
74e20cfe817b82802b16fac8690dadcda76f54f5nh#
74e20cfe817b82802b16fac8690dadcda76f54f5nh# CDDL HEADER END
74e20cfe817b82802b16fac8690dadcda76f54f5nh#
74e20cfe817b82802b16fac8690dadcda76f54f5nh#
74e20cfe817b82802b16fac8690dadcda76f54f5nh# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
74e20cfe817b82802b16fac8690dadcda76f54f5nh# Use is subject to license terms.
74e20cfe817b82802b16fac8690dadcda76f54f5nh#
74e20cfe817b82802b16fac8690dadcda76f54f5nh# ident "%Z%%M% %I% %E% SMI"
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nhPROG = sdpadm
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nhOBJS = sdpadm.o
74e20cfe817b82802b16fac8690dadcda76f54f5nhSRCS = $(OBJS:.o=.c)
74e20cfe817b82802b16fac8690dadcda76f54f5nhMSGFILES = $(SRCS:%.c=%.i)
74e20cfe817b82802b16fac8690dadcda76f54f5nhETCFILES = sdp.conf
74e20cfe817b82802b16fac8690dadcda76f54f5nhROOTETC = $(ROOT)/etc
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nhLINTFLAGS += -mx
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nhinclude ../Makefile.cmd
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nhCFLAGS += $(CCVERBOSE)
74e20cfe817b82802b16fac8690dadcda76f54f5nhPOFILE = sdpadm_msg.po
74e20cfe817b82802b16fac8690dadcda76f54f5nhXGETFLAGS = -a
74e20cfe817b82802b16fac8690dadcda76f54f5nhFILEMODE = 0555
74e20cfe817b82802b16fac8690dadcda76f54f5nhOWNER = root
74e20cfe817b82802b16fac8690dadcda76f54f5nhGROUP = bin
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nhROOTETCFILES= $(ETCFILES:%=$(ROOTETC)/%)
74e20cfe817b82802b16fac8690dadcda76f54f5nh$(ROOTETCFILES) := FILEMODE= 644
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nhLINT_OBJS = $(OBJS:%.o=%.ln)
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nh.KEEP_STATE:
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nhall: $(PROG) $(ETCFILES)
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nh$(PROG): $(OBJS)
74e20cfe817b82802b16fac8690dadcda76f54f5nh $(LINK.c) -o $@ $(OBJS)
74e20cfe817b82802b16fac8690dadcda76f54f5nh $(POST_PROCESS)
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nhinstall: all $(ROOTUSRSBINPROG) $(ROOTETCFILES)
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nh$(POFILE): $(MSGFILES)
74e20cfe817b82802b16fac8690dadcda76f54f5nh $(BUILDPO.msgfiles)
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nh_msg: $(MSGDOMAINPOFILE)
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nhclean:
74e20cfe817b82802b16fac8690dadcda76f54f5nh $(RM) $(OBJS)
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nhclobber: clean
74e20cfe817b82802b16fac8690dadcda76f54f5nh $(RM) $(PROG) $(MSGFILES) $(POFILE)
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nhlint: $(LINT_OBJS)
74e20cfe817b82802b16fac8690dadcda76f54f5nh $(LINT.c) $(LINTFLAGS) $(LINT_OBJS)
74e20cfe817b82802b16fac8690dadcda76f54f5nh
74e20cfe817b82802b16fac8690dadcda76f54f5nhinclude $(SRC)/Makefile.msg.targ