16185db85Sdougm# 26185db85Sdougm# CDDL HEADER START 36185db85Sdougm# 46185db85Sdougm# 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. 76185db85Sdougm# 86185db85Sdougm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 96185db85Sdougm# or http://www.opensolaris.org/os/licensing. 106185db85Sdougm# See the License for the specific language governing permissions 116185db85Sdougm# and limitations under the License. 126185db85Sdougm# 136185db85Sdougm# When distributing Covered Code, include this CDDL HEADER in each 146185db85Sdougm# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 156185db85Sdougm# If applicable, add the following below this CDDL HEADER, with the 166185db85Sdougm# fields enclosed by brackets "[]" replaced with your own identifying 176185db85Sdougm# information: Portions Copyright [yyyy] [name of copyright owner] 186185db85Sdougm# 196185db85Sdougm# CDDL HEADER END 206185db85Sdougm# 216185db85Sdougm# 223afe87ebSRoger A. Faulkner# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 236185db85Sdougm# Use is subject to license terms. 246185db85Sdougm# 256185db85Sdougm 266185db85SdougmMANIFEST = group.xml 276185db85Sdougm 28*ead1f93eSLiane PrazaPROG= sharemgr 29*ead1f93eSLiane Praza 306185db85Sdougminclude ../../Makefile.cmd 316185db85Sdougm 326185db85Sdougm# 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 38*ead1f93eSLiane Praza# 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) 496185db85Sdougm 506185db85SdougmROOTMANIFESTDIR = $(ROOTSVCNETWORKSHARES) 516185db85Sdougm$(ROOTMANIFEST) := FILEMODE= 444 526185db85Sdougm 536185db85Sdougmall := TARGET= all 546185db85Sdougminstall := TARGET= install 556185db85Sdougmclean := TARGET= clean 566185db85Sdougmclobber := TARGET= clobber 576185db85Sdougm_msg := TARGET= _msg 586185db85Sdougmlint := TARGET= lint 596185db85Sdougm 606185db85Sdougm.KEEP_STATE: 616185db85Sdougm 626185db85Sdougmall clean clobber lint _msg: $(SUBDIRS) 636185db85Sdougm 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) $@ 696185db85Sdougm 703afe87ebSRoger A. Faulknercheck: $(CHKMANIFEST) 713afe87ebSRoger A. Faulkner 72*ead1f93eSLiane Praza$(SUBDIRS): FRC 736185db85Sdougm @cd $@; pwd; $(MAKE) $(TARGET) 746185db85Sdougm 756185db85SdougmFRC: 76