1d62bc4baSyz147064# 2d62bc4baSyz147064# CDDL HEADER START 3d62bc4baSyz147064# 4d62bc4baSyz147064# The contents of this file are subject to the terms of the 5d62bc4baSyz147064# Common Development and Distribution License (the "License"). 6d62bc4baSyz147064# You may not use this file except in compliance with the License. 7d62bc4baSyz147064# 8d62bc4baSyz147064# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d62bc4baSyz147064# or http://www.opensolaris.org/os/licensing. 10d62bc4baSyz147064# See the License for the specific language governing permissions 11d62bc4baSyz147064# and limitations under the License. 12d62bc4baSyz147064# 13d62bc4baSyz147064# When distributing Covered Code, include this CDDL HEADER in each 14d62bc4baSyz147064# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d62bc4baSyz147064# If applicable, add the following below this CDDL HEADER, with the 16d62bc4baSyz147064# fields enclosed by brackets "[]" replaced with your own identifying 17d62bc4baSyz147064# information: Portions Copyright [yyyy] [name of copyright owner] 18d62bc4baSyz147064# 19d62bc4baSyz147064# CDDL HEADER END 20d62bc4baSyz147064# 21d62bc4baSyz147064# 2224fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23d62bc4baSyz147064# Use is subject to license terms. 24d62bc4baSyz147064# 25d62bc4baSyz147064 26d62bc4baSyz147064PROG= dlmgmtd 27d62bc4baSyz147064OBJS= dlmgmt_main.o dlmgmt_door.o dlmgmt_util.o dlmgmt_db.o 28d62bc4baSyz147064SRCS= $(OBJS:.o=.c) 29d62bc4baSyz147064SVCMETHOD= svc-dlmgmtd 30d62bc4baSyz147064MANIFEST= dlmgmt.xml 31d62bc4baSyz147064CFGFILES= datalink.conf 32d62bc4baSyz147064 33d62bc4baSyz147064include ../Makefile.cmd 34d62bc4baSyz147064 35d62bc4baSyz147064ROOTMANIFESTDIR= $(ROOTSVCNETWORK) 36d62bc4baSyz147064ROOTCFGDIR= $(ROOTETC)/dladm 37d62bc4baSyz147064ROOTCFGFILES= $(CFGFILES:%=$(ROOTCFGDIR)/%) 38d62bc4baSyz147064 39d62bc4baSyz147064$(ROOTCFGDIR)/datalink.conf := FILEMODE= 644 40d62bc4baSyz147064 412b24ab6bSSebastien RoyLDLIBS += -ldladm -ldlpi -lavl -lnvpair -lsysevent -lcontract 422b24ab6bSSebastien Roy 43*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 44*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 45*7014882cSRichard Lowe 462b24ab6bSSebastien Roy# 472b24ab6bSSebastien Roy# Instrument dlmgmtd with CTF data to ease debugging. 482b24ab6bSSebastien Roy# 492b24ab6bSSebastien RoyCTFCONVERT_HOOK = && $(CTFCONVERT_O) 502b24ab6bSSebastien RoyCTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS) 512b24ab6bSSebastien Roy$(OBJS) := CFLAGS += $(CTF_FLAGS) 522b24ab6bSSebastien Roy 53d62bc4baSyz147064 54d62bc4baSyz147064.KEEP_STATE: 55d62bc4baSyz147064 56b9e076dcSyz147064all: $(PROG) 57d62bc4baSyz147064 58d62bc4baSyz147064$(PROG): $(OBJS) 592b24ab6bSSebastien Roy $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(CTFMERGE_HOOK) 60d62bc4baSyz147064 $(POST_PROCESS) 61d62bc4baSyz147064 62b9e076dcSyz147064install: all $(ROOTSBINPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD) $(ROOTCFGDIR) \ 63b9e076dcSyz147064 $(ROOTCFGFILES) 64d62bc4baSyz147064 65d62bc4baSyz147064check: $(CHKMANIFEST) 66d62bc4baSyz147064 67d62bc4baSyz147064clean: 68d62bc4baSyz147064 $(RM) $(OBJS) 69d62bc4baSyz147064 70d62bc4baSyz147064lint: lint_SRCS 71d62bc4baSyz147064 72d62bc4baSyz147064$(ROOTCFGDIR): 73d62bc4baSyz147064 $(INS.dir) 74d62bc4baSyz147064 75d62bc4baSyz147064$(ROOTCFGDIR)/%: $(ROOTCFGDIR) % 76d62bc4baSyz147064 $(INS.file) 77d62bc4baSyz147064 78d62bc4baSyz147064include ../Makefile.targ 79