xref: /illumos-gate/usr/src/lib/libshare/Makefile (revision e4f7ccbe1e17940fdbde623116bcc8cd761d9ffc)
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
49
50.KEEP_STATE:
51
52all clean clobber install: $(SUBDIRS)
53
54install_h:	$(ROOTHDRS)
55
56check:		$(CHECKHDRS)
57
58$(POFILE):	$(MSGFILES)
59	$(BUILDPO.msgfiles)
60
61$(SUBDIRS): FRC
62	@cd $@; pwd; $(MAKE) $(TARGET)
63
64_msg:	$(MSGDOMAINPOFILE)
65
66
67FRC:
68
69include ../Makefile.targ
70include ../../Makefile.msg.targ
71