xref: /illumos-gate/usr/src/cmd/vntsd/Makefile (revision 1ae08745)
1*1ae08745Sheppo#
2*1ae08745Sheppo# CDDL HEADER START
3*1ae08745Sheppo#
4*1ae08745Sheppo# The contents of this file are subject to the terms of the
5*1ae08745Sheppo# Common Development and Distribution License (the "License").
6*1ae08745Sheppo# You may not use this file except in compliance with the License.
7*1ae08745Sheppo#
8*1ae08745Sheppo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*1ae08745Sheppo# or http://www.opensolaris.org/os/licensing.
10*1ae08745Sheppo# See the License for the specific language governing permissions
11*1ae08745Sheppo# and limitations under the License.
12*1ae08745Sheppo#
13*1ae08745Sheppo# When distributing Covered Code, include this CDDL HEADER in each
14*1ae08745Sheppo# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*1ae08745Sheppo# If applicable, add the following below this CDDL HEADER, with the
16*1ae08745Sheppo# fields enclosed by brackets "[]" replaced with your own identifying
17*1ae08745Sheppo# information: Portions Copyright [yyyy] [name of copyright owner]
18*1ae08745Sheppo#
19*1ae08745Sheppo# CDDL HEADER END
20*1ae08745Sheppo#
21*1ae08745Sheppo#
22*1ae08745Sheppo#ident	"%Z%%M%	%I%	%E% SMI"
23*1ae08745Sheppo#
24*1ae08745Sheppo# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25*1ae08745Sheppo# Use is subject to license terms.
26*1ae08745Sheppo#
27*1ae08745Sheppo
28*1ae08745SheppoPROG =	vntsd
29*1ae08745SheppoSRCS =	cmd.c common.c console.c listen.c queue.c read.c vntsd.c vntsdvcc.c \
30*1ae08745Sheppo        write.c
31*1ae08745SheppoOBJS = $(SRCS:.c=.o)
32*1ae08745Sheppo
33*1ae08745Sheppoinclude ../Makefile.cmd
34*1ae08745Sheppo
35*1ae08745SheppoPOFILES = $(SRCS:.c=.po)
36*1ae08745SheppoPOFILE = $(PROG)_msg.po
37*1ae08745Sheppo
38*1ae08745SheppoMANIFEST = vntsd.xml
39*1ae08745SheppoSVCMETHOD = svc-vntsd
40*1ae08745Sheppo
41*1ae08745SheppoCFLAGS += $(CCVERBOSE)
42*1ae08745Sheppo
43*1ae08745SheppoLDLIBS += -lsocket -lnsl
44*1ae08745Sheppo
45*1ae08745SheppoROOTCMDDIR =	$(ROOTLIB)/ldoms
46*1ae08745SheppoROOTMANIFESTDIR = $(ROOTSVCPLATFORMSUN4V)
47*1ae08745Sheppo$(ROOTMANIFEST) := FILEMODE = 0444
48*1ae08745Sheppo
49*1ae08745Sheppo
50*1ae08745Sheppo.KEEP_STATE:
51*1ae08745Sheppo
52*1ae08745Sheppoall: $(PROG)
53*1ae08745Sheppo
54*1ae08745Sheppoinstall: all		\
55*1ae08745Sheppo	$(ROOTCMD)	\
56*1ae08745Sheppo	$(ROOTMANIFEST) \
57*1ae08745Sheppo	$(ROOTSVCMETHOD)
58*1ae08745Sheppo
59*1ae08745Sheppo$(PROG): $(OBJS)
60*1ae08745Sheppo	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
61*1ae08745Sheppo	$(POST_PROCESS)
62*1ae08745Sheppo
63*1ae08745Sheppo$(POFILE): $(POFILES)
64*1ae08745Sheppo	$(RM) $@
65*1ae08745Sheppo	$(CAT) $(POFILES) > $@
66*1ae08745Sheppo
67*1ae08745Sheppocheck: $(CHKMANIFEST)
68*1ae08745Sheppo
69*1ae08745Sheppolint: lint_SRCS
70*1ae08745Sheppo
71*1ae08745Sheppoclean:
72*1ae08745Sheppo	$(RM) $(OBJS)
73*1ae08745Sheppo
74*1ae08745Sheppoinclude ../Makefile.targ
75