xref: /titanic_44/usr/src/lib/libsmbfs/Makefile.com (revision 5679c89fcd2facbb4334df8870d3d7a4d2b11673)
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 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# lib/libsmbfs/Makefile.com
26
27LIBRARY=	libsmbfs.a
28VERS=		.1
29
30# leaving out: kiconv.o
31
32OBJECTS=\
33	acl_api.o \
34	acl_conv.o \
35	acl_print.o \
36	charsets.o \
37	cfopt.o \
38	ctx.o \
39	derparse.o \
40	file.o \
41	keychain.o \
42	mbuf.o \
43	nb.o \
44	nb_name.o \
45	nb_net.o \
46	nbns_rq.o \
47	netshareenum.o \
48	nls.o \
49	print.o \
50	rap.o \
51	rcfile.o \
52	rq.o \
53	spnego.o \
54	spnegoparse.o \
55	subr.o \
56	ui-sun.o \
57	utf_str.o
58
59include $(SRC)/lib/Makefile.lib
60
61LIBS =		$(DYNLIB) $(LINTLIB)
62
63SRCDIR=		../smb
64
65SRCS=		$(OBJECTS:%.o=../smb/%.c)
66
67$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
68
69C99MODE=	$(C99_ENABLE)
70
71LDLIBS += -lsocket -lnsl -lc -lkrb5 -lsec -lidmap
72
73# normal warnings...
74CFLAGS	+=	$(CCVERBOSE)
75
76CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
77	-I$(SRCDIR) -I.. -I$(SRC)/uts/common
78
79# uncomment these if you want to use dbx
80#COPTFLAG = -g
81#CTF_FLAGS =
82#CTFCONVERT_O=
83#CTFMERGE_LIB=
84
85# disable some of the less important lint
86LINTCHECKFLAGS	+= -erroff=E_FUNC_ARG_UNUSED
87LINTCHECKFLAGS	+= -erroff=E_FUNC_RET_ALWAYS_IGNOR2
88LINTCHECKFLAGS	+= -erroff=E_FUNC_RET_MAYBE_IGNORED2
89LINTCHECKFLAGS	+= -erroff=E_FUNC_VAR_UNUSED
90LINTCHECKFLAGS	+= -erroff=E_STATIC_UNUSED
91LINTCHECKFLAGS	+= -erroff=E_CONSTANT_CONDITION
92LINTCHECKFLAGS	+= -erroff=E_TRUE_LOGICAL_EXPR
93
94.KEEP_STATE:
95
96all:	$(LIBS)
97
98lint:	lintcheck
99
100include ../../Makefile.targ
101