xref: /titanic_41/usr/src/lib/libshare/smb/Makefile.com (revision 0b42f15ac52b077791d4ba079e8c163c592c3fda)
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 2010 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# Copyright 2012 Nexenta Systems, Inc.  All rights reserved.
26#
27
28LIBRARY =	libshare_smb.a
29VERS =		.1
30SMBMLSVC_DIR	= $(SRC)/lib/smbsrv/libmlsvc/common
31SMBBASE_DIR	= $(SRC)/lib/smbsrv/libsmb/common
32SMBCOMMON_DIR	= $(SRC)/common/smbsrv
33
34LIBOBJS =	libshare_smb.o smb_share_doorclnt.o
35SMBCOMMON_OBJ =	smb_door_legacy.o
36SMBBASE_OBJ =	smb_cfg.o smb_scfutil.o
37OBJECTS =	$(LIBOBJS) $(SMBCOMMON_OBJ) $(SMBBASE_OBJ)
38
39include ../../../Makefile.lib
40
41ROOTLIBDIR =	$(ROOT)/usr/lib/fs/smb
42ROOTLIBDIR64 =	$(ROOT)/usr/lib/fs/smb/$(MACH64)
43
44LIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c)
45lintcheck := SRCS = $(LIBSRCS)
46
47LIBS =		$(DYNLIB)
48LDLIBS +=	-lshare -ldlpi -lnsl -lnvpair -lscf -lumem -lc
49all install := LDLIBS += -lxml2
50
51CFLAGS +=	$(CCVERBOSE)
52CERRWARN +=	-_gcc=-Wno-char-subscripts
53CERRWARN +=	-_gcc=-Wno-switch
54CPPFLAGS +=	-D_REENTRANT -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
55  		-I$(SRCDIR)/../common
56$(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS
57
58.KEEP_STATE:
59
60all: $(LIBS)
61
62install: all
63
64lint: lintcheck
65
66pics/smb_door_client.o:       $(SMBBASE_DIR)/smb_door_client.c
67	$(COMPILE.c) -o $@ $(SMBBASE_DIR)/smb_door_client.c
68	$(POST_PROCESS_O)
69
70pics/smb_door_legacy.o:       $(SMBCOMMON_DIR)/smb_door_legacy.c
71	$(COMPILE.c) -o $@ $(SMBCOMMON_DIR)/smb_door_legacy.c
72	$(POST_PROCESS_O)
73
74pics/smb_cfg.o:       $(SMBBASE_DIR)/smb_cfg.c
75	$(COMPILE.c) -o $@ $(SMBBASE_DIR)/smb_cfg.c
76	$(POST_PROCESS_O)
77
78pics/smb_scfutil.o:       $(SMBBASE_DIR)/smb_scfutil.c
79	$(COMPILE.c) -o $@ $(SMBBASE_DIR)/smb_scfutil.c
80	$(POST_PROCESS_O)
81
82include ../../../Makefile.targ
83