xref: /titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/Makefile (revision 6185db853e024a486ff8837e6784dd290d866112)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27#ident	"%Z%%M%	%I%	%E% SMI"
28
29#
30# cmd/cmd-inet/usr.sbin/ipqosconf/Makefile
31
32PROG=		ipqosconf
33OBJS=		ipqosconf.o
34SRCS=		$(OBJS:%.o=%.c)
35HDRS=		ipqosconf.h
36
37MODS=		dlcosmk		\
38		flowacct	\
39		ipgpc		\
40		dscpmk		\
41		tokenmt		\
42		tswtclmt
43
44TYPES=		$(MODS:%=%.types)
45
46ROOTLIBIPQOSCONF=	$(ROOTLIB)/ipqosconf
47ROOTLIBIPQOSCONFTYPES =	$(TYPES:%=$(ROOTLIBIPQOSCONF)/%)
48
49include	../../../Makefile.cmd
50include	../../Makefile.cmd-inet
51
52$(ROOTUSRSBIN)/$(PROG)	:=	FILEMODE= 0755
53$(ROOTUSRSBIN)/$(PROG)	:=	OWNER= root
54$(ROOTUSRSBIN)/$(PROG)	:=	GROUP= bin
55
56$(ROOTLIBIPQOSCONFTYPES)	:=	FILEMODE= 0444
57$(ROOTLIBIPQOSCONFTYPES)	:=	OWNER= root
58$(ROOTLIBIPQOSCONFTYPES)	:=	GROUP= bin
59
60#pull in prototype for strtok_r
61CPPFLAGS +=	-D__EXTENSIONS__
62
63LDLIBS +=	-lsocket -lnsl -lnvpair -lipp
64
65.KEEP_STATE:
66
67.INIT:	$(HDRS)
68
69all:	$(PROG)
70
71$(PROG):	$(OBJS) $(HDRS)
72	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
73	$(POST_PROCESS)
74
75install:	all $(ROOTUSRSBINPROG) $(ROOTLIBIPQOSCONF) .WAIT \
76		$(ROOTLIBIPQOSCONFTYPES)
77
78$(ROOTLIBIPQOSCONF):
79	$(INS.dir)
80
81$(ROOTLIBIPQOSCONF)/%:	%
82	$(INS.file)
83
84clean:
85	$(RM) $(OBJS)
86
87lint:	lint_SRCS
88
89include ../../../Makefile.targ
90