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*ead1f93eSLiane Praza 236185db85Sdougm# 24*ead1f93eSLiane Praza# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 256185db85Sdougm# Use is subject to license terms. 266185db85Sdougm# 276185db85Sdougm 286185db85Sdougminclude ../../../Makefile.cmd 296185db85Sdougm 30*ead1f93eSLiane PrazaSHAREMGR64= $(POUND_SIGN) 31*ead1f93eSLiane Praza$(SHAREMGR64)SHAREMGRNO64= $(POUND_SIGN) 326185db85Sdougm 336185db85SdougmPROG= sharemgr 346185db85Sdougm 35*ead1f93eSLiane PrazaOBJS = sharemgr_main.o commands.o shareutil.o 36*ead1f93eSLiane 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*ead1f93eSLiane PrazaPOFILES = $(SRCS:.c=.po) 466185db85SdougmPOFILE = sharemgr.po 476185db85Sdougm 48*ead1f93eSLiane PrazaLN_ISAEXEC= \ 49*ead1f93eSLiane Praza $(RM) $(ROOTUSRSBINPROG); \ 50*ead1f93eSLiane Praza $(LN) $(ISAEXEC) $(ROOTUSRSBINPROG) 516185db85Sdougm 526185db85Sdougm.KEEP_STATE: 536185db85Sdougm 54*ead1f93eSLiane Prazaall: $(PROG) 556185db85Sdougm 566185db85Sdougm$(PROG): $(OBJS) 576185db85Sdougm $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) 586185db85Sdougm $(POST_PROCESS) 596185db85Sdougm 60549ec3ffSdougminstall: all 616185db85Sdougm 62*ead1f93eSLiane Praza$(SHAREMGRNO64)install: $(ROOTUSRSBINPROG) 636185db85Sdougm 64*ead1f93eSLiane Prazalint: lint_SRCS 656185db85Sdougm 666185db85Sdougmclean: 676185db85Sdougm $(RM) $(OBJS) 686185db85Sdougm 696185db85Sdougminclude ../../../Makefile.targ 706185db85Sdougm 716185db85Sdougm$(POFILE): $(POFILES) 726185db85Sdougm $(RM) $@; cat $(POFILES) > $@ 736185db85Sdougm 74*ead1f93eSLiane Praza%.o: ../%.c 75*ead1f93eSLiane Praza $(COMPILE.c) $(OUTPUT_OPTION) $< $(CTFCONVERT_HOOK) 76*ead1f93eSLiane Praza $(POST_PROCESS_O) 776185db85Sdougm 786185db85SdougmFRC: 79