1d62bc4baSyz# 2d62bc4baSyz# CDDL HEADER START 3d62bc4baSyz# 4d62bc4baSyz# The contents of this file are subject to the terms of the 5d62bc4baSyz# Common Development and Distribution License (the "License"). 6d62bc4baSyz# You may not use this file except in compliance with the License. 7d62bc4baSyz# 8d62bc4baSyz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d62bc4baSyz# or http://www.opensolaris.org/os/licensing. 10d62bc4baSyz# See the License for the specific language governing permissions 11d62bc4baSyz# and limitations under the License. 12d62bc4baSyz# 13d62bc4baSyz# When distributing Covered Code, include this CDDL HEADER in each 14d62bc4baSyz# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d62bc4baSyz# If applicable, add the following below this CDDL HEADER, with the 16d62bc4baSyz# fields enclosed by brackets "[]" replaced with your own identifying 17d62bc4baSyz# information: Portions Copyright [yyyy] [name of copyright owner] 18d62bc4baSyz# 19d62bc4baSyz# CDDL HEADER END 20d62bc4baSyz# 21d62bc4baSyz# 22d62bc4baSyz# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23d62bc4baSyz# Use is subject to license terms. 24d62bc4baSyz# 25d62bc4baSyz# ident "%Z%%M% %I% %E% SMI" 26d62bc4baSyz# 27d62bc4baSyz 28d62bc4baSyzPROG= dlmgmtd 29d62bc4baSyzOBJS= dlmgmt_main.o dlmgmt_door.o dlmgmt_util.o dlmgmt_db.o 30d62bc4baSyzSRCS= $(OBJS:.o=.c) 31d62bc4baSyzSVCMETHOD= svc-dlmgmtd 32d62bc4baSyzMANIFEST= dlmgmt.xml 33d62bc4baSyzCFGFILES= datalink.conf 34d62bc4baSyz 35d62bc4baSyzinclude ../Makefile.cmd 36d62bc4baSyz 37d62bc4baSyzROOTMANIFESTDIR= $(ROOTSVCNETWORK) 38d62bc4baSyzROOTCFGDIR= $(ROOTETC)/dladm 39d62bc4baSyzROOTCFGFILES= $(CFGFILES:%=$(ROOTCFGDIR)/%) 40d62bc4baSyz 41d62bc4baSyz$(ROOTCFGFILES) := OWNER= dladm 42d62bc4baSyz$(ROOTCFGFILES) := GROUP= sys 43d62bc4baSyz$(ROOTCFGDIR)/datalink.conf := FILEMODE= 644 44d62bc4baSyz 45d62bc4baSyzLDLIBS += -ldladm -ldlpi -lavl 46d62bc4baSyz 47d62bc4baSyz.KEEP_STATE: 48d62bc4baSyz 49*b9e076dcSyzall: $(PROG) 50d62bc4baSyz 51d62bc4baSyz$(PROG): $(OBJS) 52d62bc4baSyz $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 53d62bc4baSyz $(POST_PROCESS) 54d62bc4baSyz 55*b9e076dcSyzinstall: all $(ROOTSBINPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD) $(ROOTCFGDIR) \ 56*b9e076dcSyz $(ROOTCFGFILES) 57d62bc4baSyz 58d62bc4baSyzcheck: $(CHKMANIFEST) 59d62bc4baSyz 60d62bc4baSyzclean: 61d62bc4baSyz $(RM) $(OBJS) 62d62bc4baSyz 63d62bc4baSyzlint: lint_SRCS 64d62bc4baSyz 65d62bc4baSyz$(ROOTCFGDIR): 66d62bc4baSyz $(INS.dir) 67d62bc4baSyz 68d62bc4baSyz$(ROOTCFGDIR)/%: $(ROOTCFGDIR) % 69d62bc4baSyz $(INS.file) 70d62bc4baSyz 71d62bc4baSyzinclude ../Makefile.targ 72