xref: /titanic_51/usr/src/cmd/vntsd/Makefile (revision a192e900f6d2b0e1a822e3252c0dfd795ed49d76)
11ae08745Sheppo#
21ae08745Sheppo# CDDL HEADER START
31ae08745Sheppo#
41ae08745Sheppo# The contents of this file are subject to the terms of the
51ae08745Sheppo# Common Development and Distribution License (the "License").
61ae08745Sheppo# You may not use this file except in compliance with the License.
71ae08745Sheppo#
81ae08745Sheppo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91ae08745Sheppo# or http://www.opensolaris.org/os/licensing.
101ae08745Sheppo# See the License for the specific language governing permissions
111ae08745Sheppo# and limitations under the License.
121ae08745Sheppo#
131ae08745Sheppo# When distributing Covered Code, include this CDDL HEADER in each
141ae08745Sheppo# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151ae08745Sheppo# If applicable, add the following below this CDDL HEADER, with the
161ae08745Sheppo# fields enclosed by brackets "[]" replaced with your own identifying
171ae08745Sheppo# information: Portions Copyright [yyyy] [name of copyright owner]
181ae08745Sheppo#
191ae08745Sheppo# CDDL HEADER END
201ae08745Sheppo#
211ae08745Sheppo#
221ae08745Sheppo#ident	"%Z%%M%	%I%	%E% SMI"
231ae08745Sheppo#
241ae08745Sheppo# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
251ae08745Sheppo# Use is subject to license terms.
261ae08745Sheppo#
271ae08745Sheppo
281ae08745SheppoPROG =	vntsd
291ae08745SheppoSRCS =	cmd.c common.c console.c listen.c queue.c read.c vntsd.c vntsdvcc.c \
301ae08745Sheppo        write.c
311ae08745SheppoOBJS = $(SRCS:.c=.o)
321ae08745Sheppo
33*a192e900SamaguireMANIFEST = vntsd.xml
34*a192e900SamaguireSVCMETHOD = svc-vntsd
35*a192e900Samaguire
361ae08745Sheppoinclude ../Makefile.cmd
371ae08745Sheppo
381ae08745SheppoPOFILES = $(SRCS:.c=.po)
391ae08745SheppoPOFILE = $(PROG)_msg.po
401ae08745Sheppo
411ae08745SheppoCFLAGS += $(CCVERBOSE)
421ae08745Sheppo
431ae08745SheppoLDLIBS += -lsocket -lnsl
441ae08745Sheppo
451ae08745SheppoROOTCMDDIR =	$(ROOTLIB)/ldoms
461ae08745SheppoROOTMANIFESTDIR = $(ROOTSVCPLATFORMSUN4V)
471ae08745Sheppo
481ae08745Sheppo.KEEP_STATE:
491ae08745Sheppo
501ae08745Sheppoall: $(PROG)
511ae08745Sheppo
521ae08745Sheppoinstall: all		\
531ae08745Sheppo	$(ROOTCMD)	\
541ae08745Sheppo	$(ROOTMANIFEST) \
551ae08745Sheppo	$(ROOTSVCMETHOD)
561ae08745Sheppo
571ae08745Sheppo$(PROG): $(OBJS)
581ae08745Sheppo	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
591ae08745Sheppo	$(POST_PROCESS)
601ae08745Sheppo
611ae08745Sheppo$(POFILE): $(POFILES)
621ae08745Sheppo	$(RM) $@
631ae08745Sheppo	$(CAT) $(POFILES) > $@
641ae08745Sheppo
651ae08745Sheppocheck: $(CHKMANIFEST)
661ae08745Sheppo
671ae08745Sheppolint: lint_SRCS
681ae08745Sheppo
691ae08745Sheppoclean:
701ae08745Sheppo	$(RM) $(OBJS)
711ae08745Sheppo
721ae08745Sheppoinclude ../Makefile.targ
73