xref: /illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/Makefile (revision 888cdcce412c4564892695498708992a5c310cce)
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#
22*888cdcceSToomas Soome
23*888cdcceSToomas Soome#
243afe87ebSRoger A. Faulkner# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
256185db85Sdougm# Use is subject to license terms.
266185db85Sdougm#
276185db85Sdougm
286185db85Sdougminclude ../../Makefile.cmd
29*888cdcceSToomas Soomeinclude ../../Makefile.ctf
306185db85Sdougm
31*888cdcceSToomas SoomeMANIFEST=	group.xml
32*888cdcceSToomas SoomePROG=		sharemgr
33ead1f93eSLiane Praza
34ead1f93eSLiane PrazaLINKS=		share unshare
35ead1f93eSLiane PrazaROOTLINKS=	$(LINKS:%=$(ROOTUSRSBIN)/%)
36*888cdcceSToomas Soome$(ROOTLINKS)	:= INSLINKTARGET = $(ROOTUSRSBINPROG)
376185db85SdougmROOTMANIFESTDIR	= $(ROOTSVCNETWORKSHARES)
386185db85Sdougm$(ROOTMANIFEST)	:= FILEMODE= 444
396185db85Sdougm
40*888cdcceSToomas SoomeOBJS	= sharemgr_main.o commands.o shareutil.o
41*888cdcceSToomas Soome
42*888cdcceSToomas SoomeCPPFLAGS += -I../../../lib/libfsmgt/common
43*888cdcceSToomas SoomeCPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include/libxml2
44*888cdcceSToomas SoomeLDLIBS += -lshare -lscf -lsecdb -lumem -lxml2
45*888cdcceSToomas SoomeNATIVE_LIBS += libxml2.so
46*888cdcceSToomas Soome
47*888cdcceSToomas SoomePOFILES = $(OBJS:.o=.po)
48*888cdcceSToomas SoomePOFILE  = sharemgr.po
496185db85Sdougm
506185db85Sdougm.KEEP_STATE:
516185db85Sdougm
52*888cdcceSToomas Soomeall: $(PROG)
536185db85Sdougm
54*888cdcceSToomas Soome$(PROG): $(OBJS)
55*888cdcceSToomas Soome	$(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
56*888cdcceSToomas Soome	$(POST_PROCESS)
57ead1f93eSLiane Praza
58*888cdcceSToomas Soome$(ROOTLINKS): $(ROOTUSRSBINPROG)
59*888cdcceSToomas Soome	$(INS.link)
60*888cdcceSToomas Soome
61*888cdcceSToomas Soomeinstall: all $(ROOTUSRSBINPROG) $(ROOTMANIFEST) $(ROOTLINKS)
626185db85Sdougm
633afe87ebSRoger A. Faulknercheck:	$(CHKMANIFEST)
643afe87ebSRoger A. Faulkner
65*888cdcceSToomas Soomeclean:
66*888cdcceSToomas Soome	$(RM) $(OBJS)
676185db85Sdougm
68*888cdcceSToomas Soomeinclude ../../Makefile.targ
69*888cdcceSToomas Soome
70*888cdcceSToomas Soome$(POFILE):      $(POFILES)
71*888cdcceSToomas Soome	$(RM) $@; cat $(POFILES) > $@
72