xref: /titanic_41/usr/src/lib/libshare/smb/Makefile.com (revision c7158ae983f5a04c4a998f468ecefba6d23ba721)
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# ident	"%Z%%M%	%I%	%E% SMI"
23#
24# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
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_share_door_decode.o smb_common_door_decode.o
36SMBBASE_OBJ =	smb_cfg.o smb_scfutil.o
37SMBMLSVC_OBJ =	smb_share_util.o
38OBJECTS =	$(LIBOBJS) $(SMBCOMMON_OBJ) $(SMBBASE_OBJ) $(SMBMLSVC_OBJ)
39
40include ../../../Makefile.lib
41
42ROOTLIBDIR =	$(ROOT)/usr/lib/fs/smb
43ROOTLIBDIR64 =	$(ROOT)/usr/lib/fs/smb/$(MACH64)
44
45LIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c)
46lintcheck := SRCS = $(LIBSRCS)
47
48LIBS =		$(DYNLIB)
49LDLIBS +=	-lshare -lnsl -lscf -lumem -lc
50all install := LDLIBS += -lxml2
51
52CFLAGS +=	$(CCVERBOSE)
53CPPFLAGS +=	-D_REENTRANT -I/usr/include/libxml2 \
54		-I$(SRCDIR)/../common
55
56.KEEP_STATE:
57
58all: $(LIBS)
59
60install: all
61
62lint: lintcheck
63
64pics/smb_door_client.o:       $(SMBBASE_DIR)/smb_door_client.c
65	$(COMPILE.c) -o $@ $(SMBBASE_DIR)/smb_door_client.c
66	$(POST_PROCESS_O)
67
68pics/smb_share_door_decode.o:       $(SMBCOMMON_DIR)/smb_share_door_decode.c
69	$(COMPILE.c) -o $@ $(SMBCOMMON_DIR)/smb_share_door_decode.c
70	$(POST_PROCESS_O)
71
72pics/smb_common_door_decode.o:       $(SMBCOMMON_DIR)/smb_common_door_decode.c
73	$(COMPILE.c) -o $@ $(SMBCOMMON_DIR)/smb_common_door_decode.c
74	$(POST_PROCESS_O)
75
76pics/smb_cfg.o:       $(SMBBASE_DIR)/smb_cfg.c
77	$(COMPILE.c) -o $@ $(SMBBASE_DIR)/smb_cfg.c
78	$(POST_PROCESS_O)
79
80pics/smb_scfutil.o:       $(SMBBASE_DIR)/smb_scfutil.c
81	$(COMPILE.c) -o $@ $(SMBBASE_DIR)/smb_scfutil.c
82	$(POST_PROCESS_O)
83
84pics/smb_share_util.o:       $(SMBMLSVC_DIR)/smb_share_util.c
85	$(COMPILE.c) -o $@ $(SMBMLSVC_DIR)/smb_share_util.c
86	$(POST_PROCESS_O)
87
88include ../../../Makefile.targ
89