xref: /titanic_50/usr/src/cmd/dfs.cmds/sharemgr/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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#
22ead1f93eSLiane Praza
236185db85Sdougm#
24ead1f93eSLiane Praza# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
256185db85Sdougm# Use is subject to license terms.
266185db85Sdougm#
276185db85Sdougm
286185db85Sdougminclude ../../../Makefile.cmd
296185db85Sdougm
30ead1f93eSLiane PrazaSHAREMGR64= $(POUND_SIGN)
31ead1f93eSLiane Praza$(SHAREMGR64)SHAREMGRNO64= $(POUND_SIGN)
326185db85Sdougm
336185db85SdougmPROG=		sharemgr
346185db85Sdougm
35ead1f93eSLiane PrazaOBJS	= sharemgr_main.o commands.o shareutil.o
36ead1f93eSLiane PrazaSRCS	= $(OBJS:%.o=../%.c)
376185db85Sdougm
386185db85SdougmMYCPPFLAGS = -I../../../../lib/libfsmgt/common -I/usr/include/libxml2 \
396185db85Sdougm		-I../..
406185db85SdougmCPPFLAGS += $(MYCPPFLAGS)
415359815fSdougmLDLIBS += -lshare -lscf -lsecdb -lumem
425359815fSdougmall install := LDLIBS += -lxml2
436185db85SdougmLINTFLAGS	+= -u
446185db85Sdougm
45*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
46*7014882cSRichard Lowe
47ead1f93eSLiane PrazaPOFILES = $(SRCS:.c=.po)
486185db85SdougmPOFILE  = sharemgr.po
496185db85Sdougm
50ead1f93eSLiane PrazaLN_ISAEXEC= \
51ead1f93eSLiane Praza	$(RM) $(ROOTUSRSBINPROG); \
52ead1f93eSLiane Praza	$(LN) $(ISAEXEC) $(ROOTUSRSBINPROG)
536185db85Sdougm
546185db85Sdougm.KEEP_STATE:
556185db85Sdougm
56ead1f93eSLiane Prazaall: $(PROG)
576185db85Sdougm
586185db85Sdougm$(PROG): $(OBJS)
596185db85Sdougm	$(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
606185db85Sdougm	$(POST_PROCESS)
616185db85Sdougm
62549ec3ffSdougminstall: all
636185db85Sdougm
64ead1f93eSLiane Praza$(SHAREMGRNO64)install: $(ROOTUSRSBINPROG)
656185db85Sdougm
66ead1f93eSLiane Prazalint:	lint_SRCS
676185db85Sdougm
686185db85Sdougmclean:
696185db85Sdougm	$(RM) $(OBJS)
706185db85Sdougm
716185db85Sdougminclude ../../../Makefile.targ
726185db85Sdougm
736185db85Sdougm$(POFILE):      $(POFILES)
746185db85Sdougm	$(RM) $@; cat $(POFILES) > $@
756185db85Sdougm
76ead1f93eSLiane Praza%.o: ../%.c
77ead1f93eSLiane Praza	$(COMPILE.c) $(OUTPUT_OPTION) $< $(CTFCONVERT_HOOK)
78ead1f93eSLiane Praza	$(POST_PROCESS_O)
796185db85Sdougm
806185db85SdougmFRC:
81