6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# CDDL HEADER START
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# The contents of this file are subject to the terms of the
6185db853e024a486ff8837e6784dd290d866112dougm# Common Development and Distribution License (the "License").
6185db853e024a486ff8837e6784dd290d866112dougm# You may not use this file except in compliance with the License.
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6185db853e024a486ff8837e6784dd290d866112dougm# or http://www.opensolaris.org/os/licensing.
6185db853e024a486ff8837e6784dd290d866112dougm# See the License for the specific language governing permissions
6185db853e024a486ff8837e6784dd290d866112dougm# and limitations under the License.
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# When distributing Covered Code, include this CDDL HEADER in each
6185db853e024a486ff8837e6784dd290d866112dougm# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6185db853e024a486ff8837e6784dd290d866112dougm# If applicable, add the following below this CDDL HEADER, with the
6185db853e024a486ff8837e6784dd290d866112dougm# fields enclosed by brackets "[]" replaced with your own identifying
6185db853e024a486ff8837e6784dd290d866112dougm# information: Portions Copyright [yyyy] [name of copyright owner]
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# CDDL HEADER END
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
6185db853e024a486ff8837e6784dd290d866112dougm#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
6185db853e024a486ff8837e6784dd290d866112dougm# Use is subject to license terms.
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougminclude ../../../Makefile.cmd
6185db853e024a486ff8837e6784dd290d866112dougm
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaSHAREMGR64= $(POUND_SIGN)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza$(SHAREMGR64)SHAREMGRNO64= $(POUND_SIGN)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmPROG= sharemgr
6185db853e024a486ff8837e6784dd290d866112dougm
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaOBJS = sharemgr_main.o commands.o shareutil.o
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaSRCS = $(OBJS:%.o=../%.c)
6185db853e024a486ff8837e6784dd290d866112dougm
494f7e12a62129ef191a15f9dfde6b7abe3bf510Keith M WesolowskiMYCPPFLAGS = -I../../../../lib/libfsmgt/common \
494f7e12a62129ef191a15f9dfde6b7abe3bf510Keith M Wesolowski -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
6185db853e024a486ff8837e6784dd290d866112dougm -I../..
6185db853e024a486ff8837e6784dd290d866112dougmCPPFLAGS += $(MYCPPFLAGS)
5359815feb11a102a85ff1b899512fa9553b8c25dougmLDLIBS += -lshare -lscf -lsecdb -lumem
5359815feb11a102a85ff1b899512fa9553b8c25dougmall install := LDLIBS += -lxml2
6185db853e024a486ff8837e6784dd290d866112dougmLINTFLAGS += -u
6185db853e024a486ff8837e6784dd290d866112dougm
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaPOFILES = $(SRCS:.c=.po)
6185db853e024a486ff8837e6784dd290d866112dougmPOFILE = sharemgr.po
6185db853e024a486ff8837e6784dd290d866112dougm
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaLN_ISAEXEC= \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(RM) $(ROOTUSRSBINPROG); \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(LN) $(ISAEXEC) $(ROOTUSRSBINPROG)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm.KEEP_STATE:
6185db853e024a486ff8837e6784dd290d866112dougm
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazaall: $(PROG)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm$(PROG): $(OBJS)
6185db853e024a486ff8837e6784dd290d866112dougm $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
6185db853e024a486ff8837e6784dd290d866112dougm $(POST_PROCESS)
6185db853e024a486ff8837e6784dd290d866112dougm
549ec3fff108310966327d1dc9004551b63210b7dougminstall: all
6185db853e024a486ff8837e6784dd290d866112dougm
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza$(SHAREMGRNO64)install: $(ROOTUSRSBINPROG)
6185db853e024a486ff8837e6784dd290d866112dougm
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazalint: lint_SRCS
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmclean:
6185db853e024a486ff8837e6784dd290d866112dougm $(RM) $(OBJS)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougminclude ../../../Makefile.targ
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm$(POFILE): $(POFILES)
6185db853e024a486ff8837e6784dd290d866112dougm $(RM) $@; cat $(POFILES) > $@
6185db853e024a486ff8837e6784dd290d866112dougm
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza%.o: ../%.c
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(COMPILE.c) $(OUTPUT_OPTION) $< $(CTFCONVERT_HOOK)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(POST_PROCESS_O)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmFRC: