1*74e20cfeSnh# 2*74e20cfeSnh# CDDL HEADER START 3*74e20cfeSnh# 4*74e20cfeSnh# The contents of this file are subject to the terms of the 5*74e20cfeSnh# Common Development and Distribution License (the "License"). 6*74e20cfeSnh# You may not use this file except in compliance with the License. 7*74e20cfeSnh# 8*74e20cfeSnh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*74e20cfeSnh# or http://www.opensolaris.org/os/licensing. 10*74e20cfeSnh# See the License for the specific language governing permissions 11*74e20cfeSnh# and limitations under the License. 12*74e20cfeSnh# 13*74e20cfeSnh# When distributing Covered Code, include this CDDL HEADER in each 14*74e20cfeSnh# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*74e20cfeSnh# If applicable, add the following below this CDDL HEADER, with the 16*74e20cfeSnh# fields enclosed by brackets "[]" replaced with your own identifying 17*74e20cfeSnh# information: Portions Copyright [yyyy] [name of copyright owner] 18*74e20cfeSnh# 19*74e20cfeSnh# CDDL HEADER END 20*74e20cfeSnh# 21*74e20cfeSnh# 22*74e20cfeSnh# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*74e20cfeSnh# Use is subject to license terms. 24*74e20cfeSnh# 25*74e20cfeSnh# ident "%Z%%M% %I% %E% SMI" 26*74e20cfeSnh 27*74e20cfeSnhPROG = sdpadm 28*74e20cfeSnh 29*74e20cfeSnhOBJS = sdpadm.o 30*74e20cfeSnhSRCS = $(OBJS:.o=.c) 31*74e20cfeSnhMSGFILES = $(SRCS:%.c=%.i) 32*74e20cfeSnhETCFILES = sdp.conf 33*74e20cfeSnhROOTETC = $(ROOT)/etc 34*74e20cfeSnh 35*74e20cfeSnhLINTFLAGS += -mx 36*74e20cfeSnh 37*74e20cfeSnhinclude ../Makefile.cmd 38*74e20cfeSnh 39*74e20cfeSnhCFLAGS += $(CCVERBOSE) 40*74e20cfeSnhPOFILE = sdpadm_msg.po 41*74e20cfeSnhXGETFLAGS = -a 42*74e20cfeSnhFILEMODE = 0555 43*74e20cfeSnhOWNER = root 44*74e20cfeSnhGROUP = bin 45*74e20cfeSnh 46*74e20cfeSnhROOTETCFILES= $(ETCFILES:%=$(ROOTETC)/%) 47*74e20cfeSnh$(ROOTETCFILES) := FILEMODE= 644 48*74e20cfeSnh 49*74e20cfeSnhLINT_OBJS = $(OBJS:%.o=%.ln) 50*74e20cfeSnh 51*74e20cfeSnh.KEEP_STATE: 52*74e20cfeSnh 53*74e20cfeSnhall: $(PROG) $(ETCFILES) 54*74e20cfeSnh 55*74e20cfeSnh$(PROG): $(OBJS) 56*74e20cfeSnh $(LINK.c) -o $@ $(OBJS) 57*74e20cfeSnh $(POST_PROCESS) 58*74e20cfeSnh 59*74e20cfeSnhinstall: all $(ROOTUSRSBINPROG) $(ROOTETCFILES) 60*74e20cfeSnh 61*74e20cfeSnh$(POFILE): $(MSGFILES) 62*74e20cfeSnh $(BUILDPO.msgfiles) 63*74e20cfeSnh 64*74e20cfeSnh_msg: $(MSGDOMAINPOFILE) 65*74e20cfeSnh 66*74e20cfeSnhclean: 67*74e20cfeSnh $(RM) $(OBJS) 68*74e20cfeSnh 69*74e20cfeSnhclobber: clean 70*74e20cfeSnh $(RM) $(PROG) $(MSGFILES) $(POFILE) 71*74e20cfeSnh 72*74e20cfeSnhlint: $(LINT_OBJS) 73*74e20cfeSnh $(LINT.c) $(LINTFLAGS) $(LINT_OBJS) 74*74e20cfeSnh 75*74e20cfeSnhinclude $(SRC)/Makefile.msg.targ 76