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