xref: /illumos-gate/usr/src/lib/libshare/Makefile (revision 96c8483a3fb53529bbf410957b0ad69cfb5d9229)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22#
23# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24#
25
26include ../Makefile.lib
27
28HDRS =		libshare.h libshare_impl.h scfutil.h
29HDRDIR =	common
30
31MACHS = $(MACH)
32$(BUILD64)MACHS += $(MACH64)
33
34# Add plugin module directories here. They need to build after the libshare
35# objects are built.
36PLUGINS =	nfs smb smbfs autofs
37$(PLUGINS):	$(MACHS)
38
39SUBDIRS =	$(MACHS) $(PLUGINS)
40
41MSGFILES=	common/libshare.c common/libsharecore.c common/scfutil.c \
42		common/plugin.c common/parser.c common/libshare_zfs.c
43POFILE=		libshare.po
44
45all :=		TARGET = all
46clean :=	TARGET = clean
47clobber	:=	TARGET = clobber
48install	:=	TARGET = install
49lint :=		TARGET = lint
50
51.KEEP_STATE:
52
53all clean clobber install lint: $(SUBDIRS)
54
55install_h:	$(ROOTHDRS)
56
57check:		$(CHECKHDRS)
58
59$(POFILE):	$(MSGFILES)
60	$(BUILDPO.msgfiles)
61
62$(SUBDIRS): FRC
63	@cd $@; pwd; $(MAKE) $(TARGET)
64
65_msg:	$(MSGDOMAINPOFILE)
66
67
68FRC:
69
70include ../Makefile.targ
71include ../../Makefile.msg.targ
72