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