13034Sdougm# 23034Sdougm# CDDL HEADER START 33034Sdougm# 43034Sdougm# The contents of this file are subject to the terms of the 53034Sdougm# Common Development and Distribution License (the "License"). 63034Sdougm# You may not use this file except in compliance with the License. 73034Sdougm# 83034Sdougm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 93034Sdougm# or http://www.opensolaris.org/os/licensing. 103034Sdougm# See the License for the specific language governing permissions 113034Sdougm# and limitations under the License. 123034Sdougm# 133034Sdougm# When distributing Covered Code, include this CDDL HEADER in each 143034Sdougm# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 153034Sdougm# If applicable, add the following below this CDDL HEADER, with the 163034Sdougm# fields enclosed by brackets "[]" replaced with your own identifying 173034Sdougm# information: Portions Copyright [yyyy] [name of copyright owner] 183034Sdougm# 193034Sdougm# CDDL HEADER END 203034Sdougm# 213034Sdougm# 22*11838SLiane.Praza@Sun.COM 233034Sdougm# 24*11838SLiane.Praza@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 253034Sdougm# Use is subject to license terms. 263034Sdougm# 273034Sdougm 283034Sdougminclude ../../../Makefile.cmd 293034Sdougm 30*11838SLiane.Praza@Sun.COMSHAREMGR64= $(POUND_SIGN) 31*11838SLiane.Praza@Sun.COM$(SHAREMGR64)SHAREMGRNO64= $(POUND_SIGN) 323034Sdougm 333034SdougmPROG= sharemgr 343034Sdougm 35*11838SLiane.Praza@Sun.COMOBJS = sharemgr_main.o commands.o shareutil.o 36*11838SLiane.Praza@Sun.COMSRCS = $(OBJS:%.o=../%.c) 373034Sdougm 383034SdougmMYCPPFLAGS = -I../../../../lib/libfsmgt/common -I/usr/include/libxml2 \ 393034Sdougm -I../.. 403034SdougmCPPFLAGS += $(MYCPPFLAGS) 413053SdougmLDLIBS += -lshare -lscf -lsecdb -lumem 423053Sdougmall install := LDLIBS += -lxml2 433034SdougmLINTFLAGS += -u 443034Sdougm 45*11838SLiane.Praza@Sun.COMPOFILES = $(SRCS:.c=.po) 463034SdougmPOFILE = sharemgr.po 473034Sdougm 48*11838SLiane.Praza@Sun.COMLN_ISAEXEC= \ 49*11838SLiane.Praza@Sun.COM $(RM) $(ROOTUSRSBINPROG); \ 50*11838SLiane.Praza@Sun.COM $(LN) $(ISAEXEC) $(ROOTUSRSBINPROG) 513034Sdougm 523034Sdougm.KEEP_STATE: 533034Sdougm 54*11838SLiane.Praza@Sun.COMall: $(PROG) 553034Sdougm 563034Sdougm$(PROG): $(OBJS) 573034Sdougm $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) 583034Sdougm $(POST_PROCESS) 593034Sdougm 603910Sdougminstall: all 613034Sdougm 62*11838SLiane.Praza@Sun.COM$(SHAREMGRNO64)install: $(ROOTUSRSBINPROG) 633034Sdougm 64*11838SLiane.Praza@Sun.COMlint: lint_SRCS 653034Sdougm 663034Sdougmclean: 673034Sdougm $(RM) $(OBJS) 683034Sdougm 693034Sdougminclude ../../../Makefile.targ 703034Sdougm 713034Sdougm$(POFILE): $(POFILES) 723034Sdougm $(RM) $@; cat $(POFILES) > $@ 733034Sdougm 74*11838SLiane.Praza@Sun.COM%.o: ../%.c 75*11838SLiane.Praza@Sun.COM $(COMPILE.c) $(OUTPUT_OPTION) $< $(CTFCONVERT_HOOK) 76*11838SLiane.Praza@Sun.COM $(POST_PROCESS_O) 773034Sdougm 783034SdougmFRC: 79