xref: /titanic_50/usr/src/lib/libsmbfs/Makefile.com (revision 015a6ef6781cc3ceba8ad3bfbae98449b6002a1f)
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 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27#
28# lib/libsmbfs/Makefile.com
29#
30
31LIBRARY=	libsmbfs.a
32VERS=		.1
33
34# leaving out: kiconv.o
35
36OBJECTS=\
37	acl_api.o \
38	acl_conv.o \
39	acl_print.o \
40	charsets.o \
41	cfopt.o \
42	connect.o \
43	crypt.o \
44	ctx.o \
45	derparse.o \
46	file.o \
47	findvc.o \
48	getaddr.o \
49	iod_cl.o \
50	iod_wk.o \
51	keychain.o \
52	krb5ssp.o \
53	mbuf.o \
54	nb.o \
55	nb_name.o \
56	nb_net.o \
57	nb_ssn.o \
58	nbns_rq.o \
59	negprot.o \
60	netshareenum.o \
61	newvc.o \
62	nls.o \
63	ntlm.o \
64	ntlmssp.o \
65	print.o \
66	rap.o \
67	rcfile.o \
68	rq.o \
69	signing.o \
70	spnego.o \
71	spnegoparse.o \
72	ssnsetup.o \
73	ssp.o \
74	subr.o \
75	ui-sun.o \
76	utf_str.o
77
78include $(SRC)/lib/Makefile.lib
79
80LIBS =		$(DYNLIB) $(LINTLIB)
81
82SRCDIR=		../smb
83
84SRCS=		$(OBJECTS:%.o=../smb/%.c)
85
86$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
87
88C99MODE=	$(C99_ENABLE)
89
90LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap
91
92# normal warnings...
93CFLAGS	+=	$(CCVERBOSE)
94
95CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
96	-I$(SRCDIR) -I.. -I$(SRC)/uts/common
97
98# Debugging
99${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
100
101# uncomment these for dbx debugging
102#COPTFLAG = -g
103#CTF_FLAGS =
104#CTFCONVERT_O=
105#CTFMERGE_LIB=
106
107# disable some of the less important lint
108LINTCHECKFLAGS	+= -erroff=E_FUNC_RET_ALWAYS_IGNOR2
109LINTCHECKFLAGS	+= -erroff=E_FUNC_RET_MAYBE_IGNORED2
110LINTCHECKFLAGS	+= -DDEBUG
111
112all:	$(LIBS)
113
114lint:	lintcheck
115
116include ../../Makefile.targ
117
118.KEEP_STATE:
119