xref: /illumos-gate/usr/src/cmd/tsol/tnd/Makefile (revision 5661bb7641e85c46713da7a3002b29ecd2c3daf0)
1f875b4ebSrica#
2f875b4ebSrica# CDDL HEADER START
3f875b4ebSrica#
4f875b4ebSrica# The contents of this file are subject to the terms of the
5f875b4ebSrica# Common Development and Distribution License (the "License").
6f875b4ebSrica# You may not use this file except in compliance with the License.
7f875b4ebSrica#
8f875b4ebSrica# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9f875b4ebSrica# or http://www.opensolaris.org/os/licensing.
10f875b4ebSrica# See the License for the specific language governing permissions
11f875b4ebSrica# and limitations under the License.
12f875b4ebSrica#
13f875b4ebSrica# When distributing Covered Code, include this CDDL HEADER in each
14f875b4ebSrica# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15f875b4ebSrica# If applicable, add the following below this CDDL HEADER, with the
16f875b4ebSrica# fields enclosed by brackets "[]" replaced with your own identifying
17f875b4ebSrica# information: Portions Copyright [yyyy] [name of copyright owner]
18f875b4ebSrica#
19f875b4ebSrica# CDDL HEADER END
20f875b4ebSrica#
21f875b4ebSrica#
223afe87ebSRoger A. Faulkner# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23f875b4ebSrica# Use is subject to license terms.
24f875b4ebSrica#
25*5661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc.
263afe87ebSRoger A. Faulkner
27f875b4ebSricaPROG= tnd
28f875b4ebSricaOBJS= tnd.o
29f875b4ebSrica
30f875b4ebSricaSRCS= $(OBJS:.o=.c)
31f875b4ebSrica
32f875b4ebSricaHDRS= tnd.h
33f875b4ebSrica
34f875b4ebSricaPOFILES = tnd.po
35f875b4ebSrica
36f875b4ebSricainclude ../../Makefile.cmd
37f875b4ebSrica
38f875b4ebSricaMANIFEST= tnd.xml
39f875b4ebSricaROOTMANIFESTDIR = $(ROOTSVCNETWORK)
40f875b4ebSricaSVCMETHOD= svc-tnd
41f875b4ebSrica$(ROOTMANIFEST) :=	FILEMODE= 444
42f875b4ebSrica
43f875b4ebSricaIFLAGS += -I.
44f875b4ebSricaLDLIBS += -lnsl -ltsnet
45f875b4ebSricaCPPFLAGS += $(IFLAGS)
46f875b4ebSricaCPPFLAGS += -DDEBUG
47f875b4ebSrica
487014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-value
497014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
507014882cSRichard Lowe
51*5661bb76SJohn LevonSMOFF += no_if_block
52*5661bb76SJohn Levon
53f875b4ebSrica.KEEP_STATE:
54f875b4ebSrica
55f875b4ebSricaall:	$(PROG)
56f875b4ebSrica
57f875b4ebSricainstall:	all $(ROOTTSOLPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD) \
58f875b4ebSrica		$(ROOTUSRSBIN)/$(PROG)
59f875b4ebSrica
603afe87ebSRoger A. Faulknercheck:	$(CHKMANIFEST)
613afe87ebSRoger A. Faulkner
62f875b4ebSricaclean:
63f875b4ebSrica	$(RM) $(OBJS) tags
64f875b4ebSrica
65f875b4ebSricalint:	lint_SRCS
66f875b4ebSrica
67f875b4ebSricainclude	../Makefile.targ
68