xref: /titanic_50/usr/src/cmd/dfs.cmds/sharemgr/Makefile.com (revision 5359815feb11a102a85ff1b899512fa9553b8c25)
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#
226185db85Sdougm# ident	"%Z%%M%	%I%	%E% SMI"
236185db85Sdougm#
246185db85Sdougm# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
256185db85Sdougm# Use is subject to license terms.
266185db85Sdougm#
276185db85Sdougm
286185db85Sdougminclude ../../../Makefile.cmd
296185db85Sdougm
306185db85SdougmCOMMON = ..
316185db85Sdougm
326185db85SdougmPROG=		sharemgr
336185db85Sdougm
346185db85SdougmLINK_SRCS = libshare_nfs.c
356185db85SdougmLINK_OBJS = libshare_nfs.o
366185db85SdougmLINK_MODS = libshare_nfs.so
376185db85Sdougm
386185db85SdougmSHAREMGR_MOD	= sharemgr
396185db85Sdougm
406185db85SdougmCOMMONSRC	= sharemgr_main.c commands.c shareutil.c
416185db85Sdougm
426185db85SdougmSHAREMGR_SRC	= $(COMMONSRC:%=$(COMMON)/%)
436185db85Sdougm
446185db85SdougmSHAREMGR_OBJ	= $(COMMONSRC:%.c=%.o)
456185db85Sdougm
466185db85SdougmROOTLINKS = $(ROOTUSRSBIN)/share $(ROOTUSRSBIN)/unshare
476185db85Sdougm
486185db85SdougmMYCPPFLAGS = -I../../../../lib/libfsmgt/common -I/usr/include/libxml2 \
496185db85Sdougm		-I../..
506185db85SdougmCPPFLAGS += $(MYCPPFLAGS)
51*5359815fSdougmLDLIBS += -lshare -lscf -lsecdb -lumem
52*5359815fSdougmall install := LDLIBS += -lxml2
536185db85SdougmLINTFLAGS	+= -u
546185db85Sdougm
556185db85SdougmSRCS = $(SHAREMGR_SRC)
566185db85SdougmOBJS = $(SHAREMGR_OBJ)
576185db85SdougmMODS = $(SHAREMGR_MOD)
586185db85Sdougm
596185db85SdougmCLOBBERFILES = $(MODS)
606185db85Sdougm
616185db85SdougmPOFILES = $(SHAREMGR_SRC:.c=.po)
626185db85SdougmPOFILE  = sharemgr.po
636185db85Sdougm
646185db85Sdougmall :=		TARGET= all
656185db85Sdougminstall :=	TARGET= install
666185db85Sdougmclean :=	TARGET= clean
676185db85Sdougmclobber :=	TARGET= clobber
686185db85Sdougmlint :=		TARGET= lint
696185db85Sdougm_msg:=		TARGET= catalog
706185db85Sdougm
716185db85Sdougm.KEEP_STATE:
726185db85Sdougm
736185db85Sdougmall: $(MODS)
746185db85Sdougm
756185db85Sdougmcatalog: $(POFILE)
766185db85Sdougm
776185db85Sdougm$(PROG): $(OBJS)
786185db85Sdougm	$(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
796185db85Sdougm	$(POST_PROCESS)
806185db85Sdougm
816185db85Sdougminstall: all $(ROOTUSRSBINPROG) $(ROOTLINKS)
826185db85Sdougm
836185db85Sdougm$(ROOTLINKS): $(ROOTUSRSBINPROG)
846185db85Sdougm	$(RM) $@
856185db85Sdougm	$(LN) $(ROOTUSRSBINPROG) $@
866185db85Sdougm
876185db85Sdougmlint:	$(SHAREMGR_MOD).ln $(SHAREMGR_SRC:.c=.ln)
886185db85Sdougm
896185db85Sdougmclean:
906185db85Sdougm	$(RM) $(OBJS)
916185db85Sdougm
926185db85Sdougmcheck:		$(CHKMANIFEST)
936185db85Sdougm
946185db85Sdougm%.ln: FRC
956185db85Sdougm	$(LINT.c) $(SHAREMGR_SRC) $(LDLIBS)
966185db85Sdougm
976185db85Sdougminclude ../../../Makefile.targ
986185db85Sdougm
996185db85Sdougm$(POFILE):      $(POFILES)
1006185db85Sdougm	$(RM) $@; cat $(POFILES) > $@
1016185db85Sdougm
1026185db85Sdougm%.o: $(COMMON)/%.c
1036185db85Sdougm	$(COMPILE.c) -o $@ $<
1046185db85Sdougm
1056185db85SdougmFRC:
106