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