xref: /titanic_50/usr/src/lib/libsmbfs/Makefile (revision dcf1eb702aeeccc639446ab5c5e8d725ce20cd76)
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# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26#
27# lib/libsmbfs/Makefile
28#
29
30include $(SRC)/lib/Makefile.lib
31
32HDRS=		smbfs_acl.h smbfs_api.h
33HDRDIR=		netsmb
34
35ROOTHDRDIR=	$(ROOT)/usr/include/netsmb
36ROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
37
38# ISA targets
39SUBDIRS = $(MACH)
40$(BUILD64)SUBDIRS += $(MACH64)
41
42# conditional assignments
43all :=		TARGET= all
44install :=	TARGET= install
45clean :=	TARGET= clean
46clobber :=	TARGET= clobber
47lint :=		TARGET= lint
48
49MSGFILES =	`$(GREP) -l gettext smb/*.[ch]`
50POFILE =	libsmbfs.po
51
52.KEEP_STATE:
53
54all install clean clobber lint:  $(SUBDIRS)
55
56_msg: $(MSGDOMAINPOFILE)
57
58$(POFILE):	pofile_MSGFILES
59
60install_h: $(ROOTHDRDIR) $(ROOTHDRS)
61
62check: $(CHECKHDRS)
63
64$(ROOTHDRDIR)/%: %
65	$(INS.file)
66
67$(ROOTHDRDIR):
68	$(INS.dir)
69
70$(SUBDIRS): FRC
71	@cd $@; pwd; $(MAKE) $(TARGET)
72
73FRC:
74
75include $(SRC)/lib/Makefile.targ
76include $(SRC)/Makefile.msg.targ
77