4416N/A#
4416N/A# CDDL HEADER START
4416N/A#
4416N/A# The contents of this file are subject to the terms of the
4416N/A# Common Development and Distribution License (the "License").
4416N/A# You may not use this file except in compliance with the License.
4416N/A#
4416N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4416N/A# or http://www.opensolaris.org/os/licensing.
4416N/A# See the License for the specific language governing permissions
4416N/A# and limitations under the License.
4416N/A#
4416N/A# When distributing Covered Code, include this CDDL HEADER in each
4416N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4416N/A# If applicable, add the following below this CDDL HEADER, with the
4416N/A# fields enclosed by brackets "[]" replaced with your own identifying
4416N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4416N/A#
4416N/A# CDDL HEADER END
4416N/A#
4416N/A#
4416N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
4416N/A# Use is subject to license terms.
4416N/A#
4416N/A
4416N/APROG= dladm
4416N/ACFGFILES= secobj.conf
4416N/A
4416N/AROOTFS_PROG= $(PROG)
4416N/AROOTCFGDIR= $(ROOTETC)/dladm
4416N/AROOTCFGFILES= $(CFGFILES:%=$(ROOTCFGDIR)/%)
4416N/A
4416N/Ainclude ../Makefile.cmd
4416N/A
4416N/AXGETFLAGS += -a -x $(PROG).xcl
4416N/ALDLIBS += -L$(ROOT)/lib -lsocket
4416N/ALDLIBS += -ldladm -ldlpi -lkstat -lsecdb -lbsm -linetutil -ldevinfo
4416N/ALDLIBS += $(ZLAZYLOAD) -lrstp $(ZNOLAZYLOAD)
4416N/A
4416N/ACERRWARN += -_gcc=-Wno-switch
4416N/ACERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-uninitialized
# For headers from librstp.
LINTFLAGS += -erroff=E_TRAILING_COMMA_IN_ENUM
$(ROOTCFGDIR)/secobj.conf := FILEMODE= 660
lint := ZLAZYLOAD=
lint := ZNOLAZYLOAD=
.KEEP_STATE:
all: $(ROOTFS_PROG)
install: all $(ROOTSBINPROG) $(ROOTCFGDIR) $(ROOTCFGFILES)
$(RM) $(ROOTUSRSBINPROG)
-$(SYMLINK) ../../sbin/$(PROG) $(ROOTUSRSBINPROG)
clean:
lint: lint_PROG
$(ROOTCFGDIR):
$(INS.dir)
$(ROOTCFGDIR)/%: $(ROOTCFGDIR) %
$(INS.file)
include ../Makefile.targ