17c478bdstevel@tonic-gate# 27c478bdstevel@tonic-gate# CDDL HEADER START 37c478bdstevel@tonic-gate# 47c478bdstevel@tonic-gate# The contents of this file are subject to the terms of the 56185db8dougm# Common Development and Distribution License (the "License"). 66185db8dougm# You may not use this file except in compliance with the License. 77c478bdstevel@tonic-gate# 87c478bdstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bdstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bdstevel@tonic-gate# See the License for the specific language governing permissions 117c478bdstevel@tonic-gate# and limitations under the License. 127c478bdstevel@tonic-gate# 137c478bdstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bdstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bdstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bdstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bdstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bdstevel@tonic-gate# 197c478bdstevel@tonic-gate# CDDL HEADER END 207c478bdstevel@tonic-gate# 217c478bdstevel@tonic-gate# 223afe87eRoger A. Faulkner# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 236185db8dougm# Use is subject to license terms. 247c478bdstevel@tonic-gate# 257c478bdstevel@tonic-gate 266185db8dougmMANIFEST = group.xml 277c478bdstevel@tonic-gate 28ead1f93Liane PrazaPROG= sharemgr 29ead1f93Liane Praza 307c478bdstevel@tonic-gateinclude ../../Makefile.cmd 317c478bdstevel@tonic-gate 326185db8dougm# 33ead1f93Liane Praza# To build sharemgr as both 32- and 64-bit objects, using isaexec, set 34ead1f93Liane Praza# SHAREMGR64= in your build environment. 35ead1f93Liane Praza# 36ead1f93Liane PrazaSHAREMGR64= $(POUND_SIGN) 37ead1f93Liane Praza 38ead1f93Liane Praza# 396185db8dougm# One for each ISA. 406185db8dougm# 41549ec3fdougmSUBDIRS = $(MACH) 42ead1f93Liane Praza$(SHAREMGR64)$(BUILD64)SUBDIRS += $(MACH64) 43ead1f93Liane Praza 44ead1f93Liane PrazaLINKS= share unshare 45ead1f93Liane PrazaROOTLINKS= $(LINKS:%=$(ROOTUSRSBIN)/%) 46ead1f93Liane PrazaROOTLINKS32= $(LINKS:%=$(ROOTUSRSBIN32)/%) 47ead1f93Liane PrazaROOTLINKS64= $(LINKS:%=$(ROOTUSRSBIN64)/%) 48ead1f93Liane Praza$(SHAREMGR64)ROOTLINKS += $(ROOTLINKS32) $(ROOTLINKS64) 497c478bdstevel@tonic-gate 506185db8dougmROOTMANIFESTDIR = $(ROOTSVCNETWORKSHARES) 516185db8dougm$(ROOTMANIFEST) := FILEMODE= 444 527c478bdstevel@tonic-gate 536185db8dougmall := TARGET= all 546185db8dougminstall := TARGET= install 556185db8dougmclean := TARGET= clean 566185db8dougmclobber := TARGET= clobber 576185db8dougm_msg := TARGET= _msg 586185db8dougmlint := TARGET= lint 596185db8dougm 606185db8dougm.KEEP_STATE: 617c478bdstevel@tonic-gate 626185db8dougmall clean clobber lint _msg: $(SUBDIRS) 637c478bdstevel@tonic-gate 64ead1f93Liane Prazainstall: $(SUBDIRS) $(ROOTMANIFEST) .WAIT $(ROOTLINKS) 65ead1f93Liane Praza 66ead1f93Liane Praza$(ROOTLINKS): FRC 67ead1f93Liane Praza -$(RM) $@ 68ead1f93Liane Praza -$(LN) $(@D)/$(PROG) $@ 697c478bdstevel@tonic-gate 703afe87eRoger A. Faulknercheck: $(CHKMANIFEST) 713afe87eRoger A. Faulkner 72ead1f93Liane Praza$(SUBDIRS): FRC 736185db8dougm @cd $@; pwd; $(MAKE) $(TARGET) 747c478bdstevel@tonic-gate 756185db8dougmFRC: 76