xref: /onnv-gate/usr/src/lib/libshare/Makefile (revision 13080:fcc1e406c13f)
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#
223034Sdougm#
23*13080SPavan.Mettu@Oracle.COM# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
243034Sdougm#
253034Sdougm
263034Sdougminclude ../Makefile.lib
273034Sdougm
283910SdougmHDRS =		libshare.h libshare_impl.h scfutil.h
293034SdougmHDRDIR =	common
303910Sdougm
313910SdougmMACHS = $(MACH)
323910Sdougm$(BUILD64)MACHS += $(MACH64)
333910Sdougm
343910Sdougm# Add plugin module directories here. They need to build after the libshare
353910Sdougm# objects are built.
36*13080SPavan.Mettu@Oracle.COMPLUGINS =	nfs smb smbfs autofs
373910Sdougm$(PLUGINS):	$(MACHS)
383910Sdougm
393910SdougmSUBDIRS =	$(MACHS) $(PLUGINS)
403034Sdougm
413034SdougmMSGFILES=	common/libshare.c common/libsharecore.c common/scfutil.c \
423407Sdougm		common/plugin.c common/parser.c common/libshare_zfs.c
433034SdougmPOFILE=		libshare.po
443034Sdougm
453034Sdougmall :=		TARGET = all
463034Sdougmclean :=	TARGET = clean
473034Sdougmclobber	:=	TARGET = clobber
483034Sdougminstall	:=	TARGET = install
493034Sdougmlint :=		TARGET = lint
503034Sdougm
513034Sdougm.KEEP_STATE:
523034Sdougm
533034Sdougmall clean clobber install lint: $(SUBDIRS)
543034Sdougm
553034Sdougminstall_h:	$(ROOTHDRS)
563034Sdougm
573034Sdougmcheck:		$(CHECKHDRS)
583034Sdougm
593034Sdougm$(POFILE):	$(MSGFILES)
603034Sdougm	$(BUILDPO.msgfiles)
613034Sdougm
623034Sdougm$(SUBDIRS): FRC
633034Sdougm	@cd $@; pwd; $(MAKE) $(TARGET)
643034Sdougm
653034Sdougm_msg:	$(MSGDOMAINPOFILE)
663034Sdougm
673034Sdougm
683034SdougmFRC:
693034Sdougm
703034Sdougminclude ../Makefile.targ
713034Sdougminclude ../../Makefile.msg.targ
72