Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# CDDL HEADER START
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# The contents of this file are subject to the terms of the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# Common Development and Distribution License (the "License").
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You may not use this file except in compliance with the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# or http://www.opensolaris.org/os/licensing.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# See the License for the specific language governing permissions
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# and limitations under the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# CDDL HEADER END
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews#
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews#
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews# Use is subject to license terms.
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews#
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews#
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews# cmd/cmd-inet/usr.sbin/ipqosconf/Makefile
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark AndrewsPROG= ipqosconf
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark AndrewsOBJS= ipqosconf.o
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark AndrewsSRCS= $(OBJS:%.o=%.c)
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark AndrewsHDRS= ipqosconf.h
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark AndrewsMODS= dlcosmk \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews flowacct \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews ipgpc \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews dscpmk \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews tokenmt \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews tswtclmt
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark AndrewsTYPES= $(MODS:%=%.types)
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark AndrewsROOTLIBIPQOSCONF= $(ROOTLIB)/ipqosconf
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark AndrewsROOTLIBIPQOSCONFTYPES = $(TYPES:%=$(ROOTLIBIPQOSCONF)/%)
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews
include ../../../Makefile.cmd
include ../../Makefile.cmd-inet
$(ROOTUSRSBIN)/$(PROG) := FILEMODE= 0755
$(ROOTLIBIPQOSCONFTYPES) := FILEMODE= 0444
#pull in prototype for strtok_r
CPPFLAGS += -D__EXTENSIONS__
LDLIBS += -lsocket -lnsl -lnvpair -lipp
.KEEP_STATE:
.INIT: $(HDRS)
all: $(PROG)
$(PROG): $(OBJS) $(HDRS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
install: all $(ROOTUSRSBINPROG) $(ROOTLIBIPQOSCONF) .WAIT \
$(ROOTLIBIPQOSCONFTYPES)
$(ROOTLIBIPQOSCONF):
$(INS.dir)
$(ROOTLIBIPQOSCONF)/%: %
$(INS.file)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
include ../../../Makefile.targ