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 38*494f7e12SKeith M WesolowskiMYCPPFLAGS = -I../../../../lib/libfsmgt/common \ 39*494f7e12SKeith M Wesolowski -I$(ADJUNCT_PROTO)/usr/include/libxml2 \ 406185db85Sdougm -I../.. 416185db85SdougmCPPFLAGS += $(MYCPPFLAGS) 425359815fSdougmLDLIBS += -lshare -lscf -lsecdb -lumem 435359815fSdougmall install := LDLIBS += -lxml2 446185db85SdougmLINTFLAGS += -u 456185db85Sdougm 467014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 477014882cSRichard Lowe 48ead1f93eSLiane PrazaPOFILES = $(SRCS:.c=.po) 496185db85SdougmPOFILE = sharemgr.po 506185db85Sdougm 51ead1f93eSLiane PrazaLN_ISAEXEC= \ 52ead1f93eSLiane Praza $(RM) $(ROOTUSRSBINPROG); \ 53ead1f93eSLiane Praza $(LN) $(ISAEXEC) $(ROOTUSRSBINPROG) 546185db85Sdougm 556185db85Sdougm.KEEP_STATE: 566185db85Sdougm 57ead1f93eSLiane Prazaall: $(PROG) 586185db85Sdougm 596185db85Sdougm$(PROG): $(OBJS) 606185db85Sdougm $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) 616185db85Sdougm $(POST_PROCESS) 626185db85Sdougm 63549ec3ffSdougminstall: all 646185db85Sdougm 65ead1f93eSLiane Praza$(SHAREMGRNO64)install: $(ROOTUSRSBINPROG) 666185db85Sdougm 67ead1f93eSLiane Prazalint: lint_SRCS 686185db85Sdougm 696185db85Sdougmclean: 706185db85Sdougm $(RM) $(OBJS) 716185db85Sdougm 726185db85Sdougminclude ../../../Makefile.targ 736185db85Sdougm 746185db85Sdougm$(POFILE): $(POFILES) 756185db85Sdougm $(RM) $@; cat $(POFILES) > $@ 766185db85Sdougm 77ead1f93eSLiane Praza%.o: ../%.c 78ead1f93eSLiane Praza $(COMPILE.c) $(OUTPUT_OPTION) $< $(CTFCONVERT_HOOK) 79ead1f93eSLiane Praza $(POST_PROCESS_O) 806185db85Sdougm 816185db85SdougmFRC: 82